Re: if/else for a specific category in the <head> section?
Jon,
{if $product.productid eq "X}Include{/if}
worked great. thank you.
I guess the "single product in a category" code kills the subcat relationship -- so I must use a direct product var.
Now a question to anyone reading this far:
Does having a bunch of these if/elses in home.tpl slow my site down?
{if $product.productid eq "1" || $product.productid eq "11" || $product.productid eq "21"}
How much overhead does smarty use when parsing a list of if/else(s) ?
Should I be concerned? I see lists of if/elses in home_main.tpl and other templates... does this take a bite out of performance?
Thanks!
Jeremy
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
|