Hello,
Can someone help me with a php statement to use in tpl_product_info_display.php, something like
if a product belongs to a categorie do this else do something different
Thanks
Hello,
Can someone help me with a php statement to use in tpl_product_info_display.php, something like
if a product belongs to a categorie do this else do something different
Thanks
you could try
changing 478 to the category you requirePHP Code:
$current_category_id = zen_get_products_category_id((int)$_GET['products_id']);
if ($current_category_id == '478')
{
echo 'category match';
} else {
echo 'category not matched';
}
bn
Works perfect. Thanks
Bookmarks