View Single Post
  #47  
Old 04-10-2007, 09:03 AM
  HWT's Avatar 
HWT HWT is offline
 

eXpert
  
Join Date: Jan 2005
Location: Massachusetts, USA
Posts: 392
 

Default Re: common if/then modifications I make to x-cart...

I have a quick question in regards to #8

Quote:
Originally Posted by instinctual
8. Similar to the above - what about if you want to show something specific to the category you're on? Well, similar situation:


Code:
{if $cat eq "9"}show this{/if}


Can this be set to a range of categories instead of one specific category?

example:

I want categories 250 - 290 to use a different subcategories.tpl

in customer/home_main.tpl I have:

Code:
{elseif $cat eq "250" or $cat eq "251" or $cat eq "252" or $cat eq "253" or $cat eq "254" or $cat eq "255" etc... } {include file="customer/main/subcategories_2.tpl" cat=$cat}

is there any way to shorten that {elseif . . .} up to include the whole range?

TIA
__________________
x-cart 4.0.13 and 4.1.7 and 4.1.10
Reply With Quote