| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
If statement for help sections? | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
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?
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#2
|
|||||||||
|
|||||||||
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"} |
|||||||||
#3
|
|||||||
|
|||||||
Re: If statement for help sections?
Ahhh...perfectly clear once you see it Thanks Jon!
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
|
|||
X-Cart forums © 2001-2020
|