| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | Mark Forums Read | User manuals | Login |
{if} {else} statement tweaking | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
{if} {else} statement tweaking
I am using a {if} {else} statement to show or hide a Free Shipping graphic on certain items on our shop.
Code:
Also, maybe this can be used as a reference for someone else looking to do this |
|||||||
#2
|
|||||||||
|
|||||||||
Re: {if} {else} statement tweaking
Quote:
You may want to check this condition in PHP code (in_array() function will be useful) and then assign result to a boolean flag in $product array. It will allow you to check the same condition as something like this in Smarty: HTML Code:
Guess, it looks more elegant. |
|||||||||
#3
|
|||||||
|
|||||||
Re: {if} {else} statement tweaking
Thanks for the response. That actually makes me think... maybe we can use the "extra fields" functionality to do something like this? I don't really know how to implement your suggestion without more explicit instructions.
|
|||||||
|
Thread Tools | Search this Thread |
|
|
|
|||
X-Cart forums © 2001-2020
|