X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   which variable to use? (https://forum.x-cart.com/showthread.php?t=13535)

gbanse 04-21-2005 09:29 AM

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.

balinor 04-21-2005 09:43 AM

I always use this:

{if $main eq "catalog" and $current_category.category eq ""}

gbanse 04-21-2005 09:48 AM

Smashing! Works like a champ. Thank you very much.

ecommerce 08-08-2006 08:58 PM

good one and easy too :)


All times are GMT -8. The time now is 05:50 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.