Jump to content

Smarty Syntax


Recommended Posts

Hi there,

Would anyone know the correct Smarty syntax for adding more than one category id in an {if} statement?

For example:
{if $product->id_category_default == 6} is for category id that equals 6, but what if I wanted to target other specific ids as well such as:

{if $product->id_category_default == 6 5 3 27}

I've googled but I dont know enough to describe the problem, so haven't found how. I've tried commas and colons just guessing but of course the page doesnt load so I need to know the correct syntax.

Any help would be appreciated,
Regards,
Rob.

Link to comment
Share on other sites

×
×
  • Create New...