Custom Templates More info / If Then Question
Posted: Fri Feb 14, 2003 3:44 pm
I have a quick question. I am running 6.1 pro. Is it possible to use the If
/Else statement with subproducts to do the following.
If subproducts then do the subproducts loop, else regular product info in
the more info page.
or is it necessary to build a product template for products with subproducts
and another template for products without?
Example:
[--IF SUBPRODUCTS --]
[-- LOOP SUBPRODUCTS --]
[--SUBPRODUCTS--]
[-- END_LOOP SUBPRODUCTS--]
[--ELSE--]
[--PRODUCT.NAME--]
[-- PRODUCT.SKU--]
[-- End_IF--]
Thanks for the help.
Justin
/Else statement with subproducts to do the following.
If subproducts then do the subproducts loop, else regular product info in
the more info page.
or is it necessary to build a product template for products with subproducts
and another template for products without?
Example:
[--IF SUBPRODUCTS --]
[-- LOOP SUBPRODUCTS --]
[--SUBPRODUCTS--]
[-- END_LOOP SUBPRODUCTS--]
[--ELSE--]
[--PRODUCT.NAME--]
[-- PRODUCT.SKU--]
[-- End_IF--]
Thanks for the help.
Justin