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

if specific category

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-30-2005, 07:46 AM
 
pablo pablo is offline
 

Member
  
Join Date: Aug 2005
Posts: 27
 

Default if specific category

Hi,

Can anyone help me achieve the following?

When a certain category is chosen, I want to display my products in a different format.

So I am going to create a different products.tpl that is called when that specific category is selected.

I am stuck trying to figure out what if statement to use in categories.tpl or subcategories.tpl

I would have thought that I could either have it so that it chooses if category ID = my category, or if category = position.

Any pointers or ideas however well founded would be great as they may just get me moving in the right direction.

Thanks in advance
__________________
Version 5.3
Reply With Quote
  #2  
Old 08-30-2005, 07:55 PM
  Dongan's Avatar 
Dongan Dongan is offline
 

X-Wizard
  
Join Date: Jul 2005
Location: www.mercuryminds.com
Posts: 1,531
 

Default

{if $cat eq "101"}
code
{else}
code
{/if}
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 05:56 PM.

   

 
X-Cart forums © 2001-2020