Search the Community
Showing results for tags 'statement'.
-
Hi all, I'm working on a website where some products have attributes which will vary in price. So for example, a bag of dog food at 1kg may be £10. A 2kg bag may be £18. These would be variations/attributes of one product. So as not to mislead customers, on the product list, we'd like to introduce an if statement which detects whether the product has attributes. If the item has variations and can be altered, then on the product list, we'd like it to say 'From:' next to the price. I have tried things like {if ($product.id_product_attribute == 0 )}From {/if} but that yields nothing. Any help would be greatly appreciated. Thanks!
- 5 replies
-
- attributes
- if
-
(and 5 more)
Tagged with:
-
Hello everyone. i'm trying to make an if statement in the product-list.tpl and i made this code {if ($category->name|escape:'htmlall':'UTF-8' = "Xbox 360 Games") || ($category->name|escape:'htmlall':'UTF-8' = "Playstation 3 Games") } do this if is true {/if} but is not working. what i'm doing wrong? thank you