![]() |
Help with meta description conditionals
Hi All,
I am trying to change my meta description code so that if I am on a product page it will just automatically use the $product.descr information. Right now it is using the site wide meta-description. I've found the code that I need to alter, but my skills are limited so I could use some help. The Meta Code: Code:
{if $printable}Code:
{if $main eq 'products'}Any help? X-Cart GoldPlus: 4.6.4 |
Agreed this is not the best behavior. We found it simpler to adjust the code in include/func/func.product.php after:
Code:
$product['meta_description'] = trim($product['meta_description']);Code:
if (empty($product['meta_description'])) |
| All times are GMT +8. The time now is 11:00 AM. |
Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.