Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Create a range in tpl

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-17-2005, 10:21 AM
 
hudge hudge is offline
 

Advanced Member
  
Join Date: Jun 2004
Posts: 50
 

Default Create a range in tpl

I am looking to do something like this:

Code:
{if $cat eq "14-68"} {include file="customer/main/products_np.tpl" products=$products} {else} {include file="customer/main/products.tpl" products=$products} {/if}

I want anything in cat 14 through 68 not to pull a different tpl file without a price. I am doing this to show case some products that they have to call and order. Thanks for the help.

hudge
__________________
-----www.hudge.com------
X-Cart Pro v4.1.8
X-Cart Gold v4.1.8
Lite Commerce v2.2
Reply With Quote
  #2  
Old 05-17-2005, 11:27 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

i did a similar thing by adding an extra field to the categories table to say what type of category it was and then display the products acordingly. my way you can add extra categories and have them display the right way easily
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #3  
Old 05-17-2005, 11:38 AM
 
hudge hudge is offline
 

Advanced Member
  
Join Date: Jun 2004
Posts: 50
 

Default

I figured it out.

Code:
{if $cat > "13" and $cat < "69"}
__________________
-----www.hudge.com------
X-Cart Pro v4.1.8
X-Cart Gold v4.1.8
Lite Commerce v2.2
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:58 AM.

   

 
X-Cart forums © 2001-2020