IF tag to test for SubProducts?
Posted: Mon Mar 10, 2003 6:50 am
All -
I'm writing a custom product template (for my first ShopSite store) and I've
been trying to use an IF tag to test for the presence of subproducts on a
More Info page.
The store has several products that come in various colors and/or sizes.
I've set these products up to act as "master" products, with the different
size/color variants as a subproducts.
Each subproduct has its own SKU and often a different price from other
subproducts in the group.
What I'm trying to accomplish is to have the master product's price and "Add
to Cart" button appear on the More Info page only if there are no
subproducts, and to eliminate them if there are.
My attempts to use the tag [--IF SUBPRODUCTS--] have left me frustrated.
I hope I've described the situation clearly enough. I would definitely be
grateful for any help.
- Allen
I'm writing a custom product template (for my first ShopSite store) and I've
been trying to use an IF tag to test for the presence of subproducts on a
More Info page.
The store has several products that come in various colors and/or sizes.
I've set these products up to act as "master" products, with the different
size/color variants as a subproducts.
Each subproduct has its own SKU and often a different price from other
subproducts in the group.
What I'm trying to accomplish is to have the master product's price and "Add
to Cart" button appear on the More Info page only if there are no
subproducts, and to eliminate them if there are.
My attempts to use the tag [--IF SUBPRODUCTS--] have left me frustrated.
I hope I've described the situation clearly enough. I would definitely be
grateful for any help.
- Allen