I was wondering if this problem ever got resolved. I too am trying to
link subproducts from the products page. I have all of the information
Loren stated below formatted correctly, however when I click on the
"subproduct" link from my product page, the MoreInfoURL it's pointing to
is itself, so in turn, the page is simply refreshing. I definitely have
a MoreInfoPage set for my subproduct. This is the code that comes just
before my [-- DEFINE PRODUCT--] in my Product template:
[--DEFINE SUBPRODUCT--]
<A href="[--PRODUCT.MoreInfoURL--]">[--PRODUCT.Graphic--]</A>
[--END_DEFINE SUBPRODUCT--]
[--DEFINE MORE_INFO_PAGE--]
<HTML>
<HEAD>
<TITLE>Online Sample Sale</TITLE>
<BODY>
<!-- content here -->
</BODY>
</HTML>
[--END_DEFINE MORE_INFO_PAGE--]
I have tried it with and without the define moreinfopage. Any help would
be appreciated..
Thanks,
Coco
Loren wrote:
Couple of points that you may or may not be aware of:
1) You need at least ShopSite 6.1 in order to use subproducts in custom
templates..
2) The DEFINE SUBPRODUCT section must be a part of a whole custom product
template, it is not it's own file.
3) The DEFINE SUBPRODUCT section must be the top section of the product
template.
4) Your code below assumes that there is a MoreInfoURL for the subproduct. If
there is not a More Info Page setup for a particular subproduct, then you may
get <!-- empty field --> or something similar as the results for that tag.
5) You must use the LOOP SUBPRODUCTS section inside the DEFINE PRODUCT section
at some point in order for the subproducts to appear. By the same token, you
actually need to have subproducts assigned to the product that is using this
custom template.
Taking all that into consideration, your code should work.
-Loren
David Chiu wrote:
I am having problem defining a subproduct template on Shopsite version 6.
Here is my definition below.
[-- DEFINE SUBPRODUCT --]
a href="[-- PRODUCT.MoreInfoURL --]">[--PRODUCT.Name--]</a
[-- END_DEFINE SUBPRODUCT --]
I read the help on Shopsite documentation and I am not sure if I can use the
PRODUCT.MoreInfoURL on the subproduct template to retrieve the URL of the
product More Information Page. In my opinion, I should be able to do that so
that when a customer click on a subproduct, the customer will be able to
view the product in more detail through the More Information Page.
Any help will be appreciated.
Sincerely,
David