iAreku Posted June 9, 2014 Share Posted June 9, 2014 Hi!Any clues how can i compare a particular category ID to check if a product is associated with it or not? I mentioned product-list.tpl but I'd actually like this to work "store-wide", ie. also on "New products", "Specials", "Featured", "homepage", etc. Thanks! Link to comment Share on other sites More sharing options...
vekia Posted June 9, 2014 Share Posted June 9, 2014 you can use something like {foreach from=Product::getProductCategoriesFull(ID_PRODUCT_HERE) item=cat} {if $cat.id_category==5} PRODUCT ASSOCIATED WITH CATEGORY 5 !!! {/if} {/foreach} Link to comment Share on other sites More sharing options...
Recommended Posts