ZenCart v1.5.5e
Apache server (Hostmatters)
PHP 5.6.31 (Zend: 2.6.0)
MySQL 5.6.37
About_us page
dbio 1.3.0
MainImageReplacer-v1.0
Image_Handler4_v4.3.2
I am looking for the variable for the catalog. I found a dirty way to do it after searching trial and error on getting the category name. I put $category into the admin developer tool kit and tried ?all? the different ones I could find, but to no avail.
I have this code inserted in the main template (index.php) @ "Load general code run before page closes".
PHP Code:
$this_page = META_TAG_TITLE;
$this_page = substr($this_page, 0, strpos($this_page, ":")-1);
// if there is a product name //
if (isset($products_name))
{
$this_page = $products_name;
}
// if $this_page = 0 //
elseif (!strlen($this_page))
{
$this_page = "Store";
}
echo $this_page; // temporary for troubleshooting //
Just wondering if there is not a better way. (at least it is not as dirty and unstable as my product name code was)
Bookmarks