how to use IF tags properly in custom templates
Posted: Thu Feb 20, 2003 6:46 pm
I am trying to use the IF tags for a custom 'more info' page that shows when
a product is out of stock by checking the QuanityOnHand value for 0. Using
the code below it always uses the html in the [-- ELSE --] tag even if i set
the QuantityOnHand to 0 for my test product. I 'think' im doing it correctly
based on the Shopsite help docs... but they don't give examples. Here's my
code:
[-- IF PRODUCT.QuantityOnHand 0 --]
html stuff
[-- ELSE --]
different HTML stuff
[-- END_IF --]
Am I using it right?
Thanks in advance for any insight!
Andrew G
a product is out of stock by checking the QuanityOnHand value for 0. Using
the code below it always uses the html in the [-- ELSE --] tag even if i set
the QuantityOnHand to 0 for my test product. I 'think' im doing it correctly
based on the Shopsite help docs... but they don't give examples. Here's my
code:
[-- IF PRODUCT.QuantityOnHand 0 --]
html stuff
[-- ELSE --]
different HTML stuff
[-- END_IF --]
Am I using it right?
Thanks in advance for any insight!
Andrew G