![]() |
Using extra_fields as a "flag"
I'm trying to extra fields as a "y/n" flag to determine whether a special image is displayed on the product.tpl page.
I know I'm formatting the field wrong but I'm not sure how it should be formatted. can someone help? Code:
{if $product.extra_fields[1].field_value eq "y"} |
Can't get no love?
|
Make sure that variable actually contains what you think it does do a
{$product.extra_fields[1].field_value} on the page so it prints it so you can see if it's the right field for starters |
Thanks Groovico,
That's just what I needed (a good wack on the head) when accessing by row everything starts at zero, "0" :oops: I also got rid of the $product, so the winning answer is: Code:
{if $extra_fields[0].field_value eq "y"} Thanks again :D |
All times are GMT -8. The time now is 06:48 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.