| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
If statement for help sections? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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
|
|||||||||
|
|||||||||
![]() The variable is passed through help.php as $section but is assigned to smarty as help_section
{if $help_section eq "contactus"} |
|||||||||
#3
|
|||||||
|
|||||||
![]() Ahhh...perfectly clear once you see it
![]()
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
|
|||
X-Cart forums © 2001-2020
|