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

If Condition in Template

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 03-13-2007, 06:07 AM
 
reefland reefland is offline
 

Member
  
Join Date: Apr 2005
Posts: 16
 

Default If Condition in Template

I want to change the subcategory layout on a category page, but I only want the layout to be different for one particular category. Is there a way within the category template to do something like this:

if current category == 34 {
THIS HTML HERE
} else { //for all other categories
DEFAULT HTML HERE
}
__________________
4.0.19
Reply With Quote
  #2  
Old 03-13-2007, 06:11 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default Re: If Condition in Template

Have you read through this thread?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 03-13-2007, 06:59 AM
 
reefland reefland is offline
 

Member
  
Join Date: Apr 2005
Posts: 16
 

Default Re: If Condition in Template

Perfect, thanks!
__________________
4.0.19
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 08:17 AM.

   

 
X-Cart forums © 2001-2020