- We are using custom page and product templates in ShopSite 10.
- Here is a link to one of our website pages. The name in the green bar is the product, the names under "Item Description" are the subproducts, which are what I'd like to link to their More Info pages. (ie. I do NOT want to link "Lowel Pro Light" in the green bar, I DO want to link subproduct "Pro Bar" under Item Description.)
- Here is the code for our custom product template:
- Code: Select all
[-- DEFINE SUBPRODUCT --]
<td align="center" class="bold" width="20%">[-- PRODUCT.SKU --]</td>
<td class="text2" width="50%">[-- PRODUCT.Name --]</td>
<td align="center" class="text2">[-- PRODUCT.Field1 --]</td>
<td class="bold" align="center" width="20%">
[-- IF PRODUCT.QuantityPricing --]
[-- PRODUCT.QuantityPricing --]
[-- ELSE_IF PRODUCT.Price $0.00 --]
Call for price
[-- ELSE --]
[-- PRODUCT.Price --]
[-- END_IF --]</td>
[-- IF PRODUCT.Field2 "no" --]
<td class="bold" aligh="center" width="30">Call for best pricing</td>
[-- ELSE --]
<td class="bold" align="center" bgcolor="#66cc33" width="30">
<a href="[-- PRODUCT.AddToCartURL --]">
<i>Buy</i></a></td>
[-- END_IF --]
[-- END_DEFINE SUBPRODUCT --]
[-- DEFINE PRODUCT --]
<table border="0" cellspacing="2" cellpadding="2" width="100%">
<tr>
<td bgcolor="#66cc33" colspan="5" class="title2" align="center"><a name="etc"></a>[-- PRODUCT.Name --]</td>
</tr>
<tr>
<td class="text2" colspan="2">[-- PRODUCT.ProductDescription --]
</td>
<td colspan="3">[-- PRODUCT.Graphic --]</td>
</tr>
<tr>
<td bgcolor="#ffff66" align="center" class="bold" width="20%">Item #</td>
<td class="bold" bgcolor="#ffff66" width="50%">Item Description</td>
<td class="bold" align="center" bgcolor="#ffff66" width="15%">List Price</td>
<td class="bold" align="center" bgcolor="#ffff66" width="20%">Internet Price</td>
<td bgcolor="#ffff66" align="center" class="bold"></td>
</tr>
[-- LOOP SUBPRODUCTS --]
<tr>
[-- SUBPRODUCTS --]
</tr>
[-- END_LOOP SUBPRODUCTS --]
</table>
[-- END_DEFINE PRODUCT --]
- And here is an example of a product template I've tried with the More Info tags and code:
- Code: Select all
[-- DEFINE SUBPRODUCT --]
<td align="center" class="bold" width="20%">[-- PRODUCT.SKU --]</td>
<td class="text2" width="50%">
[-- IF PRODUCT.DisplayName --]
[-- IF PRODUCT.DisplayMoreInformationPage --]
<a href="[-- PRODUCT.MoreInfoURL --]">[-- PRODUCT.Name --]</a>
[-- ELSE --]
[-- PRODUCT.Name --]
[-- END_IF --]
[-- END_IF --]</td>
<td align="center" class="text2">[-- PRODUCT.Field1 --]</td>
<td class="bold" align="center" width="20%">
[-- IF PRODUCT.QuantityPricing --]
[-- PRODUCT.QuantityPricing --]
[-- ELSE_IF PRODUCT.Price $0.00 --]
Call for price
[-- ELSE --]
[-- PRODUCT.Price --]
[-- END_IF --]</td>
[-- IF PRODUCT.Field2 "no" --]
<td class="bold" aligh="center" width="30">Call for best pricing</td>
[-- ELSE --]
<td class="bold" align="center" bgcolor="#66cc33" width="30">
<a href="[-- PRODUCT.AddToCartURL --]">
<i>Buy</i></a></td>
[-- END_IF --]
[-- END_DEFINE SUBPRODUCT --]
[-- DEFINE PRODUCT --]
<table border="0" cellspacing="2" cellpadding="2" width="100%">
<tr>
<td bgcolor="#66cc33" colspan="5" class="title2" align="center"><a name="etc"></a>[-- PRODUCT.Name --]</td>
</tr>
<tr>
<td class="text2" colspan="2">[-- PRODUCT.ProductDescription --]
</td>
<td colspan="3">[-- PRODUCT.Graphic --]</td>
</tr>
<tr>
<td bgcolor="#ffff66" align="center" class="bold" width="20%">Item #</td>
<td class="bold" bgcolor="#ffff66" width="50%">Item Description<td>
<td class="bold" align="center" bgcolor="#ffff66" width="15%">List Price</td>
<td class="bold" align="center" bgcolor="#ffff66" width="20%">Internet Price</td>
<td bgcolor="#ffff66" align="center" class="bold"></td>
</tr>
[-- LOOP SUBPRODUCTS --]
<tr>
[-- SUBPRODUCTS --]
</tr>
[-- END_LOOP SUBPRODUCTS --]
</table>
[-- END_DEFINE PRODUCT --]
[-- DEFINE MORE_INFO_PAGE --]
<html>
<head>
<title>[-- PRODUCT.Name --]</title>
</head>
<body
text="#[-- MORE_INFO.TextColor --]"
link=#[-- MORE_INFO.LinkColor --]"
vlink=#[-- MORE_INFO.VisitedLinkColor --]"
alink=#[-- MORE_INFO.ActiveLinkColor --]"
>
[-- IF MORE_INFO.DisplayPageHeader --]
[-- HEADER --]
[-- END_IF --]
<div style="width:600px; margin-left:auto; margin-right:auto">
<h1>[-- PRODUCT.Name --]</h1>
<img [-- PRODUCT.MoreInformationGraphic Remove_HTML --] align="left">
<br>[-- PRODUCT.MoreInformationText --]
</div>
[-- IF MORE_INFO.DisplayPageFooter --]
[-- FOOTER --]
[-- END_IF --]
</body>
</html>
[-- END_DEFINE MORE_INFO_PAGE --]
What am I doing wrong?