How i can check if exist category in product.tpl

You can check if exists category in product.tpl


by This code:


{assign var='catproduct' value=Product::getProductCategories($product.id)}
{if in_array(300, $catproduct)}.. following will only be displayed if this product is in category of ID 300
{/if}