Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Dynamic title and description not working
Author « Topic »  

Marshall
Ecommerce Template Guru

USA
1916 Posts

Posted - 11/09/2021 :  20:18:50  
PHP v 7.4.4 The dynamic page title and meta description is not working for the categories using the category number for the explicitid and catid. I thought this problem was fix.

Marshall
CENLYT Productions - ms designs
Affordable Web Design
Custom Ecommerce Designs
Responsive Websites
Cenlyt.com

Vince
Administrator

42874 Posts

Posted - 11/10/2021 :  03:02:30  
Hi Marshall
I'm trying it here and everything seems to be ok. Can you get another copy of the v7.4 updater and apply that fully and if it doesn't help please send the site FTP login to vince AT ecommercetemplates DOT com along with the page URL that is going wrong.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

Marshall
Ecommerce Template Guru

USA
1916 Posts

Posted - 11/10/2021 :  04:05:05  
Will do Vince.

Marshall
CENLYT Productions - ms designs
Affordable Web Design
Custom Ecommerce Designs
Responsive Websites
Cenlyt.com

Marshall
Ecommerce Template Guru

USA
1916 Posts

Posted - 11/10/2021 :  13:26:31  
I updated the inc/metainfo.php file which showed a date of 10/23/2021 in the download and the problem was not resolved. This is an example of the typical <head> content for static category pages.
<?php include "vsadmin/db_conn_open.php" ?>
<?php include "vsadmin/inc/languagefile.php" ?>
<?php include "vsadmin/includes.php" ?>
<?php include "vsadmin/inc/incfunctions.php" ?>
<?php include "vsadmin/inc/metainfo.php" ?>
<?php
$explicitid=129;
$catid=129;
?>
<title><?php print $pagetitle;?><?php print $TitleTag; ?></title>
<meta name="description" content="<?php print str_replace('"','"',$sectiondescription)?><?php print $DescTag; ?>">



Marshall
CENLYT Productions - ms designs
Affordable Web Design
Custom Ecommerce Designs
Responsive Websites
Cenlyt.com

Vince
Administrator

42874 Posts

Posted - 11/10/2021 :  14:43:20  
Hi Marshall
That could be the problem then as you need the $explicitid before the metainfo include line. You don't need to set the $catid separately either with the new changes.

<?php include "vsadmin/db_conn_open.php" ?>
<?php include "vsadmin/inc/languagefile.php" ?>
<?php include "vsadmin/includes.php" ?>
<?php include "vsadmin/inc/incfunctions.php" ?>
<?php
$explicitid=129;
?>
<?php include "vsadmin/inc/metainfo.php" ?>
<title><?php print $pagetitle;?><?php print $TitleTag; ?></title>
<meta name="description" content="<?php print str_replace('"','"',$sectiondescription)?><?php print $DescTag; ?>">

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

Marshall
Ecommerce Template Guru

USA
1916 Posts

Posted - 11/10/2021 :  16:27:23  
Changed it to this
<?php include "vsadmin/db_conn_open.php" ?>
<?php include "vsadmin/inc/languagefile.php" ?>
<?php include "vsadmin/includes.php" ?>
<?php include "vsadmin/inc/incfunctions.php" ?>
<?php
$explicitid=129;
$catid=129;
?>
<?php include "vsadmin/inc/metainfo.php" ?>

<title><?php print $pagetitle;?><?php print $TitleTag; ?></title>
<meta name="description" content="<?php print str_replace('"','"',$sectiondescription)?><?php print $DescTag; ?>">
and still no joy.

Marshall
CENLYT Productions - ms designs
Affordable Web Design
Custom Ecommerce Designs
Responsive Websites
Cenlyt.com

Vince
Administrator

42874 Posts

Posted - 11/11/2021 :  01:00:13  
Hi Marshall
As I mentioned then please send me the site FTP and I'll take a look.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

Marshall
Ecommerce Template Guru

USA
1916 Posts

Posted - 11/11/2021 :  04:26:46  
Will do.

Marshall
CENLYT Productions - ms designs
Affordable Web Design
Custom Ecommerce Designs
Responsive Websites
Cenlyt.com

Vince
Administrator

42874 Posts

Posted - 11/11/2021 :  11:35:08  
Hi Marshall
I'm afraid there was another problem in the metainfo.php file which I've corrected now. Can you have a look and make sure everything is ok and I'll get the updater updated. Also, the way to set static pages will be to set one of these parameters...

$catid=1; // For a static category page or category of products
$manid=1; // For a static manufacturer page
$prodid='xxx'; // For a static product detail page. The 'xxx' will be the product ID and not the product name

One of the features of an earlier updater was to allow you to set an $explicitid for static pages that would work for both the meta tags and the products / category pages also but that isn't possible. What I've done though is make it so if you set a static $catid, $manid or $prodid before the metainfo include file then the $explicitid is also set so you don't have to set two parameters.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

Marshall
Ecommerce Template Guru

USA
1916 Posts

Posted - 11/11/2021 :  11:48:05  
Cannot check as the site is down.

Marshall
CENLYT Productions - ms designs
Affordable Web Design
Custom Ecommerce Designs
Responsive Websites
Cenlyt.com

Vince
Administrator

42874 Posts

Posted - 11/11/2021 :  12:50:52  
I'm sorry to hear that Marshall and I just checked and I can't even ping the site. The registry is saying, "Last update of whois database: 2021-11-11". Do you know what is causing this?

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

Marshall
Ecommerce Template Guru

USA
1916 Posts

Posted - 11/11/2021 :  19:09:59  
Have no idea what caused the problem but it has been resolved, or it resolved itself. The dynamic titles are working fine now so thank you very much for that. Your work is much appreciated.

Marshall
CENLYT Productions - ms designs
Affordable Web Design
Custom Ecommerce Designs
Responsive Websites
Cenlyt.com

Edited by - Marshall on 11/11/2021 19:10:22
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000