I need an {if} statement that shows my subheads (or tabs)
based on the
root, or
parent category selected
and continues to display them all the way to checkout
unless another root category is selected.
I looked at the {if} statement post by Instinctual
http://forum.x-cart.com/viewtopic.php?t=12234
and it was very helpful but it didn't answer my question.
I have it working for when the root category is clicked, but it disappears as soon as a sub category is selected. The following code is in my head.tpl
Code:
{ if $cat eq "289" }
{ include file="head_shop.tpl" }
{elseif $cat eq "267"}
{ include file="head_view.tpl" }
{elseif $cat eq "268"}
{ include file="head_trade.tpl" }
{/if}
I need a code that says
for as long as the patent or root ...
or
until another parent or root category ...
is selected
Thank you!