Perhaps someone can more elegantly put this in the showMETA function like the rest of the mod, but I couldn't get it to work.
In the setup instructions that were provided, Randelia may have forgotten to provide the code for the 'product_info' case in his ShowMETA function. Install as instructed per Randelia's "Installation.html".
Finally, modify: /includes/functions/general.php
REPLACE:
case 'product_info':
case 'product_review':
$product_info_query = tep_db_query("select products_keywords, products_metadescription, products_pagetitle from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . $id . "' and language_id = '" . (int)$languages_id . "'");
$product_info = tep_db_fetch_array($product_info_query);
if (tep_not_null($product_info['products_keywords'])){$Keywords=$product_info['products_keywords'];}
if (tep_not_null($product_info['products_metadescription'])){$Description=$product_info['products_metadescription'];}
if (tep_not_null($product_info['products_pagetitle'])){$Pagetitle=$product_info['products_pagetitle'];}
break;
WITH:
case 'product_info':
$product_info_query = tep_db_query("select products_keywords, products_metadescription, products_pagetitle from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . $id . "' and language_id = '" . (int)$languages_id . "'");
$product_info = tep_db_fetch_array($product_info_query);
if (tep_not_null($product_info['products_keywords'])){$Keywords=$product_info['products_keywords'];}
if (tep_not_null($product_info['products_metadescription'])){$Description=$product_info['products_metadescription'];}
if (tep_not_null($product_info['products_pagetitle'])){$Pagetitle=$product_info['products_pagetitle'];}
break;
case 'product_review':
$product_info_query = tep_db_query("select products_keywords, products_metadescription, products_pagetitle from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . $id . "' and language_id = '" . (int)$languages_id . "'");
$product_info = tep_db_fetch_array($product_info_query);
if (tep_not_null($product_info['products_keywords'])){$Keywords=$product_info['products_keywords'];}
if (tep_not_null($product_info['products_metadescription'])){$Description=$product_info['products_metadescription'];}
if (tep_not_null($product_info['products_pagetitle'])){$Pagetitle=$product_info['products_pagetitle'];}
break;
You can now also revert to the default META, TITLE values when blank.
[contribution support] Custom META Tags per ITEM
in General Add-Ons Support
Posted · Edited by ilocanosc
In the setup instructions that were provided, Randelia may have forgotten to provide the code for the 'product_info' case in his ShowMETA function. Install as instructed per Randelia's "Installation.html".
Finally, modify: /includes/functions/general.php
REPLACE:
WITH:
You can now also revert to the default META, TITLE values when blank.