Re: common if/then modifications I make to x-cart...
Hey guys, what if I want to remove the header on ONLY one page? I tried something like {if $cat != 249} {include file="head_customer.tpl" } {/if} but it won't work. Maybe because it's in the customer/home.tpl?
Nevermind...I figured it out. I was able to add:
{if $main eq "product" and $cat eq "294"}
{else}
{include file="head_customer.tpl" }
{/if}
And now the header loads on all the pages except category 294.
__________________
x-cart 4.2.2
|