Kogkalidis Posted May 15, 2013 Share Posted May 15, 2013 the product belongs ONLY to a specific category? Thanx! Link to comment Share on other sites More sharing options...
Carlsen Posted May 15, 2013 Share Posted May 15, 2013 (edited) Hi, {if $category->id == 8} <p>This content only showed if product is in category ID 8.</p> {/if} Edited May 15, 2013 by Carlsen (see edit history) Link to comment Share on other sites More sharing options...
Kogkalidis Posted May 15, 2013 Author Share Posted May 15, 2013 (edited) On 5/15/2013 at 6:43 AM, Carlsen said: Hi, {if $category->id == 8} <p>This content only showed if product is in category ID 8.</p> {/if} Thank you so much!! And how can I make one similar command that will AUTOMATICALLY take the product's id and compare this record's default with the specified one? like this {if default_category=8 where product_id=xx} show something {/if} Edited May 15, 2013 by Λόχος Ορεινών Καταδρομών (see edit history) Link to comment Share on other sites More sharing options...
Carlsen Posted May 15, 2013 Share Posted May 15, 2013 (edited) Hi again, This should do the trick: {if $category->id == 8 && $product->id == 18} <p>This content is showed if category ID is 8 and product ID is 18</p> {/if} Edited May 15, 2013 by Carlsen (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts