Subproduct Template problem

This is an archive of old posting to the User Forum

Subproduct Template problem

Postby David Chiu » Wed Nov 06, 2002 6:16 pm

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
David Chiu
 

Re: Subproduct Template problem

Postby loren_d_c » Wed Nov 06, 2002 6:35 pm

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
loren_d_c
 
Posts: 2571
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Re: Subproduct Template problem

Postby David Chiu » Wed Nov 06, 2002 6:38 pm

Hi Loren,
Thank you for your reply.

All of the subproduct field that I used, which is a descendant of the
product properties, are displaying fine when I loop it except the
MoreInfoURL. However this specific field, PRODUCT.MoreInfoURL, is not giving
me anything when I pull it from the subproduct definition. Furthermore, the
subproduct that are listed have more information page. Thus, it should have
printed the URL instead of giving nothing.

Has anybody tried using the PRODUCT.MoreInfoURL on the subproduct
definition in Shopsite v.6?

David
David Chiu
 

Found the right field

Postby David Chiu » Thu Nov 07, 2002 6:20 pm

Well, I guess I was using the wrong field name. Find the right one:
PRODUCT.MoreInformationFileName .

Thanks for all the help.


"Loren" <loren_d_c@yahoo.com> wrote in message
news:3DC9B562.F670C4DB@yahoo.com...
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
David Chiu
 

Re: Subproduct Template problem

Postby co2 design » Mon Dec 09, 2002 1:24 pm

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

co2 design
 


Return to User Forum Archive

Who is online

Users browsing this forum: No registered users and 57 guests