I would like the subproduct definition to mimic the product definition. But... cutting and pasting the contents of the [-- DEFINE PRODUCT --] section into the [-- DEFINE SUBPRODUCT --] and removing the subproduct references (since this is now a subprocudt itself), isn't working.
This is from the product template. It was copied from the default template. I added the description and image sections but they don't seem to work.
- Code: Select all
# Tab Product Template
#########################
[-- DEFINE SUBPRODUCT --]
#########################
[-- VAR.SubForm no --]
[-- VAR.SubOptions no --]
[-- VAR.SubQuantity no --]
#######################
# Subproduct Name #
#######################
[-- IF PRODUCT.DisplayMoreInformationPage --]
<font size="4" color="[-- VAR.HexColor --]"></font> <a href="[-- OUTPUT_DIRECTORY_URL --]/[-- PRODUCT.MoreInformationFileName --]">[-- PRODUCT.Name --]</a>
[-- ELSE --]
<font size="4" color="[-- VAR.HexColor --]"></font> <strong>[-- PRODUCT.Name --]</strong>
[-- END_IF --]
#######################
# Subproduct Price #
#######################
[-- IF PRODUCT.SaleOn --]
[-- IF PRODUCT.SaleAmount --]
<strike>[-- PRODUCT.Price --]</strike> [-- PRODUCT.PriceSize Begin --][-- PRODUCT.PriceStyle Begin --][-- PRODUCT.SaleAmount --][-- PRODUCT.PriceSize End --][-- PRODUCT.PriceStyle End --] [-- STORE.OnSaleText --]
[-- IF PRODUCT.AltPrice --]
<strike>[-- PRODUCT.AltPrice --]</strike> [-- PRODUCT.PriceSize Begin --][-- PRODUCT.PriceStyle Begin --][-- PRODUCT.AltSaleAmount --][-- PRODUCT.PriceSize End --][-- PRODUCT.PriceStyle End --] [-- STORE.OnSaleText --]
[-- END_IF --]
[-- END_IF --]
[-- Else --]
# product is not on sale, so just display price
[-- PRODUCT.PriceSize Begin --][-- PRODUCT.PriceStyle Begin --]
<span style="color:#ee0000">[-- PRODUCT.Price --]</span>
[-- IF PRODUCT.AltPrice --]
[-- PRODUCT.AltPrice --]
[-- END_IF --]
[-- PRODUCT.PriceSize End --][-- PRODUCT.PriceStyle End --]
[-- END_IF --]
##########################
# SubProduct Description #
##########################
[-- IF PRODUCT.ProductDescription --]
<br />[-- PRODUCT.ProductDescription --]<br /> <br />
[-- END_IF --]
####################
# subproduct image #
####################
[-- IF PRODUCT.DisplayMoreInformationPage--]
<a href="[-- PRODUCT.MoreInfoURL --]">[-- PRODUCT.Graphic --]</a>
[-- ELSE --]
[-- PRODUCT.Graphic --]
[-- END_IF --]
Advice?