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 Meta Description not working
Author « Topic »  

Marshall
Ecommerce Template Guru

USA
1916 Posts

Posted - 09/09/2021 :  09:03:46  
PHP v7.3.5

The title and meta description is not being generated. It is a static page.
Above the <html> tag
<?php
session_cache_limiter('none');
session_start();
ob_start();
include "vsadmin/db_conn_open.php";
include "vsadmin/inc/languagefile.php";
include "vsadmin/includes.php";
include "vsadmin/inc/incfunctions.php";
?><!DOCTYPE html><html>

In the <head>
<?php
$explicitid='SP358';
$prodid='SP358';
?>
<?php include "vsadmin/inc/metainfo.php" ?>
<title><?php
if(!empty($pagetitle)) {print $pagetitle;}
else if(!empty($productname)) {print $productname . ", " . $sectionname;}
?></title>
<meta name="description" content="<?php print str_replace('"','"',$productdescription)?>">

In body
<?php include "vsadmin/inc/incproddetail.php"?>

The page content is being generated with no problem and it is working on the dynamically generated pages.

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

Vince
Administrator

42874 Posts

Posted - 09/09/2021 :  09:20:57  
Hi Marshall
It may be that you are using the product name for the detail links in which case can you try changing the $prodid to the name of the product instead of the product id? Really, if the $explicitid is set it should use that so I'll look into that now, but at present the explicitid isn't used for the metainfo page.

Vince

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

Vince
Administrator

42874 Posts

Posted - 09/09/2021 :  09:45:06  
Hi Marshall
I've made the changes now (that was a quick one ) so that the metainfo.php file will take note of the $explicitid if it is set. I've added the change to the v7.4 updater.

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 - 09/09/2021 :  10:09:04  
Thanks Vince.

Marshall
CENLYT Productions - ms designs
Affordable Web Design
Custom Ecommerce Designs
Responsive Websites
Cenlyt.com
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.03 seconds. Snitz Forums 2000