| ||||||||||
| Shopping cart software Solutions for online shops and malls | ||||||||||
|
|
||||||||||
| X-Cart Home |
smarty question | |||
![]() |
|
||
|
|
Thread Tools | Search this Thread |
|
#1
|
|||||||||
|
|||||||||
|
Ok so I can't find the info on smarty opernads.
Does xcart use its own set? what is gt ne eq? eq I guess means == ne means not equal? gt greater than? pleae shed some light on this for me.
__________________
xcart 5.1.2 |
|||||||||
|
#2
|
|||||||
|
|||||||
|
Quote:
you are correct!
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
|
#3
|
|||||||
|
|||||||
|
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
|
#4
|
|||||||||
|
|||||||||
|
so are the normal PHP operand ok to use in smarty? is == ok or <=?
__________________
xcart 5.1.2 |
|||||||||
|
#5
|
|||||||
|
|||||||
|
Quote:
The way I read it: use the 1st column. 2nd column is optional/alternate method.
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4 |
|||||||
|
#6
|
|||||||||
|
|||||||||
|
Quote:
Pertaining to the == condition. I'm not sure if the rule still applies with Smarty but I recall if you wrote it (like me with PHP) with no spaces then Smarty failed the statement. ie... (with spaces works) {if $name == 'Fred' || $name == 'Wilma'} (without spaces doesn't) {if $name=='Fred' || $name=='Wilma'} I thought I got that from carpeperdiem's source at smarty.net - but it doesn't seem to be there any more?? Has it changed then?
__________________
Doms kube v4.1.9 |
|||||||||
|
#7
|
|||||||
|
|||||||
|
Moving to Template Editing
__________________
Padraic Ryan Ryan Design Studio Professional E-Commerce Development |
|||||||
|
|
|||
|
X-Cart forums © 2001-2020
|
|||