Page 1 of 1

2 product templates, but I can only assign 1 product templat

PostPosted: Mon May 24, 2004 2:05 pm
by Frank Tan
I created 2 product templates, product list template, product detail
template,
because each product needs to be shown in product list page and also product
detail page.

but for each product, I can only assign 1 product template to it.
Does that mean I have to generate product list pages first, then edit
product (replace product list template with product detail template) in
order to generate product detail pages?

or I have to create 2 products with 2 templates for each product in
shopsite?

we have 500 products. What is the best way to do this?
Please advise. Thanks a lot.

Frank Tan

Re: 2 product templates, but I can only assign 1 product tem

PostPosted: Mon May 24, 2004 2:51 pm
by loren_d_c
If you have ShopSite v7, you can override the product template used by
the products on a page via a custom page template. See 'Product Loop
Example 2' on the following documentation screen:
http://www.shopsite.com/templates/examp ... ducts.html

Since the More Info Page will be generated using the template the
product is being generated with first (and who knows which that would
be), it's probably best if you make your More Info Page section the same
for both product templates.

An option to this in pre-v7 versions of ShopSite (or even v7 if you
think it is easier this was) is to set a VAR in your page templates,
then in the single product template, do an IF test on that VAR and if
the var is set to one thing, do one layout, if set to another, do the
other layout.

Also note that you may be able to use the More Info Page as the 'product
detail page' you are speaking of rather than creating a separate Page
record for the product detail. The More Info Page is defined in the
custom product template in a DEFINE MORE_INFO section.

-Loren



Frank Tan wrote:
I created 2 product templates, product list template, product detail
template,
because each product needs to be shown in product list page and also product
detail page.

but for each product, I can only assign 1 product template to it.
Does that mean I have to generate product list pages first, then edit
product (replace product list template with product detail template) in
order to generate product detail pages?

or I have to create 2 products with 2 templates for each product in
shopsite?

we have 500 products. What is the best way to do this?
Please advise. Thanks a lot.

Frank Tan