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

which variable to use?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-21-2005, 09:29 AM
 
gbanse gbanse is offline
 

Advanced Member
  
Join Date: Mar 2005
Location: Vermont, USA
Posts: 53
 

Default which variable to use?

What's the syntax for checking if I'm on the home page or not? I thought it would be {if $main ne ""} but that didn't work.
__________________
Gregg
XC v4.0.12 (13 and 17) Gold
Reply With Quote
  #2  
Old 04-21-2005, 09:43 AM
 
balinor balinor is offline
 

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

Default

I always use this:

{if $main eq "catalog" and $current_category.category eq ""}
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 04-21-2005, 09:48 AM
 
gbanse gbanse is offline
 

Advanced Member
  
Join Date: Mar 2005
Location: Vermont, USA
Posts: 53
 

Default

Smashing! Works like a champ. Thank you very much.
__________________
Gregg
XC v4.0.12 (13 and 17) Gold
Reply With Quote
  #4  
Old 08-08-2006, 08:58 PM
 
ecommerce ecommerce is offline
 

eXpert
  
Join Date: Jul 2006
Posts: 267
 

Default

good one and easy too
__________________
X-Cart 4.0.18 DBest
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 02:28 AM.

   

 
X-Cart forums © 2001-2020