Hello,
I am using ShopSite Pro 7.1.4, and I am having a problem when trying to
determine if a product has subproducts in my custom template. I have been
successfully using IF ELSE statements to test for all sorts of other items
for quite some time, but now that we're adding subproducts for a client,
this issue has gotten the better of me. I have scoured all documentation I
can find regarding IF tests, subproducts and custom templates to no avail.
Currently, when subproducts exist, the following shopsite code works like a
dream:
--- Begin ---
[-- IF PRODUCT.SUBPRODUCTS --]
<div class="right">
<h4>Related Products</h4>
[-- LOOP SUBPRODUCTS --]
[-- SUBPRODUCTS --]
[-- END_LOOP SUBPRODUCTS --]
</div>
[-- ELSE --]
[-- END_IF --]
[-- IF PRODUCT.Field2 --]
<div class="item_attribute">Dimensions as Shown:<p
class="attribute_value">[-- PRODUCT.Field2 --]</p></div>
[--Else--]
[--End_If--]
--- End ---
Again, the above works fine when subproducts exist. When the do not exist
the div class right and the h4 are in the source and displaying on my page.
Using [-- IF SUBPRODUCTS --] simply doesn't work at all.
It's entirely possible that I'm missing something minute and silly, but I'm
too close to it now. Any insight is appreciated.
Warmest Regards,
Gavin Guest
Graphic Designer
Ebeacon