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)
-   -   If statement for help sections? (https://forum.x-cart.com/showthread.php?t=41285)

balinor 07-22-2008 05:12 PM

If statement for help sections?
 
Here's an odd one - I'm trying to use an {if} statement to display an 'on' state to a tab for the different help sections - contact, main help page, etc. I would have thought it would be:

{if $main eq "help" and $section eq "contactus"}

I've also tried a simple:

{if $section eq "contactus"}

Neither are working. Any ideas?

Jon 07-22-2008 07:55 PM

Re: If statement for help sections?
 
The variable is passed through help.php as $section but is assigned to smarty as help_section

{if $help_section eq "contactus"}

balinor 07-23-2008 04:02 AM

Re: If statement for help sections?
 
Ahhh...perfectly clear once you see it ;) Thanks Jon!


All times are GMT -8. The time now is 03:14 PM.

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