![]() |
Need to create an if statement using product IDs...
Hello,
I'd like to add some specific information to the page footer for a few products. In order to do this I need to know what the if statement is. I already know that for categories I would use: Code:
{if $cat eq "301"} What would it be for individual products? Thanks, Jennifer |
|
Great, thanks.
One more question. When I use the category identifier as I mentioned above, it only works for products who have that as the main category. However, I have lots of products that are also assigned to several other categories (for example a baby blanket may have a main category of "baby blankets" but also be included in "baby shower gifts" and "personalized baby gifts"). Is there any way to say I want to do something to ALL products in a secondary category? Thanks, Jennifer |
need to create if etc ...
Hiya
Try something like this Code:
{if $product.categoryid == 4 or $product.categoryid1 == 5 or $product.categoryid2==5 or $product.categoryid3 == 5} if you're referring to the $products array - use $products[product].categoryxx Lee [/b] |
Thanks Lee but that didn't work. It still only displays the text if the product has been assigned to the main category.
Jennifer |
if etc
Jen
Post the code that you're trying to use here and I'll take a look Lee |
use something like
Code:
{if |
How would I specify the category ID though? I need to be able to do this:
{if category1 = 345 or category2 = 345 or category3 = 345} Do something {/if} But I don't know how to refer to category1, category2, category3, etc. Thanks, Jennifer |
Along this same line I'm also having problems specifying ONLY a category page.
I want to change the titles for the category pages so I used: Code:
<TITLE> |
All times are GMT -8. The time now is 10:08 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.