Subproduct Links

General ShopSite user discussion

Subproduct Links

Postby Craig » Wed Aug 09, 2006 10:32 am

Is there a way to output the links of subproducts that share the same
parent product?

I have created Parent Products to act as categories as described in the
Shopsite documentation. On these Parent Product pages are the links to
the subproduct pages which in most cases are the individual product pages.

It is on these individual product pages that I want to include the links
to the product pages that share the same parent product.

Hopefully I have explained what I am trying to accomplish. Thanks in
advance for any help on this.
Craig
 

re:Subproduct Links

Postby loren_d_c » Wed Aug 09, 2006 12:33 pm

There is no way to know during generation of a subproducts More Info Page which other 'parent' products this subproduct is assigned to, it is only possible, really, to know the first one. The More Info Pages are only generated once per-Publish, and the first parent product for any given subproduct that is encountered during the Publish is the one that will trigger the generation of the More Info Pages for its subproducts. You can pass the name and link of that parent product to the subproduct via a VAR.

The only way I can think of to do what you are looking for is to manually put the links to each parent product's page into one of the 5 'extra' product fields for the subproduct, and then call that field via its template tag in the More Info Page template.

-Loren
loren_d_c
 
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere


Return to User Forum

Who is online

Users browsing this forum: No registered users and 34 guests

cron