Developer forum

Forum » Ecommerce - Standard features » Show subgroup of selected group

Show subgroup of selected group

Bo Dudek
Reply

Hi

So, I have setup an Ecom with something like 30 maingroups, which each has got 2-10 subgroups. When the user click one of the maingroups on the website, then I want to show a list of the related subgroups. I have found this very old thread http://developer.dynamicweb.com/forum/development/show-products-or-subgroups-of-selected-group.aspx but it still doesn't seem to be solved. Am I all wrong here? Is it not possible to show a list of Ecom subgroups based on a maingroup GroupID url parameter?

Thanks


Replies

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Hi Bo

There are 2 situations:

  1. You have main groups with products
  2. You have main groups without products

@1: If that is the case, when you click the main group and get a URL with &GroupID=MaingroupID, you get a list of products using the productlist template in the products loop. But you ALSO get a loop called "Subgroups" that will give you the sub groups.

@2: If that is the case, when you click the main group and get a URL with &GroupID=MaingroupID, then DW will use the "No products found" template, and that template can then show you a list of subgroups for the group.

So you basically need the 2 templates to show your sub groups. A bit quirky, but how it works. See http://templates.dynamicweb.com/eCommerce/Dynamicweb-eCommerce-template-tags/Product-Catalog/Product-list/Loops/Subgroups.aspx

BR Nicolai

Votes for this answer: 1
 
Bo Dudek
Reply

Hi

Yes, didn't realise the new(er) Subgroups loop.

Thanks

 

You must be logged in to post in the forum