| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Is Greater Than X but Less Than X Possible with Smarty? | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hello!
I am trying to add a third category section on my site. Following some previous threads I currently have two categories, seperated like this in their respective .tpl files: 1. {foreach from=$categories item=c} {if $c.order_by lt 900} 2. {foreach from=$categories item=c} {if $c.order_by gt 900} I would like to add a third category section, but I can't find if there is a valid way to have order_by gt xx but lt xx. Is this possible? Or is it possible to do something like order_by eq 901, 902, 903. etc? Thanks!
__________________
x-cart 4.1.9 |
|||||||
#2
|
|||||||
|
|||||||
![]() {if $c.order_by lt x and $c.order_by gt y}
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
#3
|
|||||||
|
|||||||
![]() Ah ha! Worked perfectly thank you!
__________________
x-cart 4.1.9 |
|||||||
|
|||
X-Cart forums © 2001-2020
|