Subproduct name won't link to More Info page

General ShopSite user discussion

Subproduct name won't link to More Info page

Postby weez » Thu Feb 18, 2010 4:12 pm

I can't seem to get the subproduct names on our website to link to their corresponding More Info pages. I've tried inputting the More Info tags/code in several different places but so far, it's all a no-go. Can someone please help a relative newbie?

- 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? :oops:
weez
 
Posts: 4
Joined: Thu Feb 18, 2010 3:56 pm
Location: California

Postby Jim » Thu Feb 18, 2010 4:44 pm

The second section of code should do it. If you want a "More Info" text message ou would have to include that too.

Code: Select all
[-- IF PRODUCT.DisplayName --]
  [-- IF PRODUCT.DisplayMoreInformationPage --]
    <a href="[-- PRODUCT.MoreInfoURL --]">[-- PRODUCT.Name --]</a>
  [-- ELSE --]
    [-- PRODUCT.Name --]
  [-- END_IF --]
    [-- END_IF --]</td>


But you need to make sure the IF conditions are met or just the product name will be displayed.
Do you have the option to display the product name checked for the subproducts. Products > Select product > Edit product Info > More Info Page: checkbox
Do you have the option to create a moreinfo page checked for the sub product? Products > Select product > Edit product layout> Name Toggle: checkbox
Jim
Site Admin
 
Posts: 4953
Joined: Fri Aug 04, 2006 1:42 pm
Location: Utah

Postby weez » Thu Feb 18, 2010 4:48 pm

Hi Jim - Yes, both of those are checked for the subproduct. But it's still not linking.
weez
 
Posts: 4
Joined: Thu Feb 18, 2010 3:56 pm
Location: California


Return to User Forum

Who is online

Users browsing this forum: No registered users and 142 guests