Developer forum

Forum » Ecommerce - Standard features » eCom Catalog - See all group and sugroup products

eCom Catalog - See all group and sugroup products

Dmitrij Jazel
Reply
Hello Guys,

I wanted to ask you what can I do to solve this one.
I have a 2 level structure in Dynamicweb. (see the attachment) 1st level - Frugt, 
Under Frugt there are 3 subgroups. FG1, FG2, and FG3.

I am using GroupID to request the group. If I request Group1 = I get empty group because no products are in the group.
But subgroups are full of groups I would like to see.

I can see the group products if I ask for that specific Sub GroupID

Is there a possibility to see all the products in the group and all subGroup products?

Kind regards,
Dmitrij
undergroup.png

Replies

 
Marco Johannesen
Reply
Where are you displaying the "group"?
Is it a menu, and if so, what XSLT file are you using? :)
 
Dmitrij Jazel
Reply
Hi Marco,
Sorry, forgot to mention :)))
I am displaying products in Product Catalog (product catalog module on the "products" page).
From above post, I hope there is no need to explain what I am trying to achieve here :)
I think there is relatively easy way to solve this, is it?

Regards,
Dmitrij

 
Merethe Nielsen
Reply

Hi

Have you tried these loops that are available in the product list:

Kind regards,
Merethe
 
Dmitrij Jazel
Reply
Hej Merethe,

Hmm, well I was trying to use them actually, maybe I was using them in wrong place in the template?
This is how I am trying to use it:
<h2><!--@Ecom:Group.Name--></h2>
<!--@DwTemplateTags-->
<!--@LoopStart(Subgroups)--> subgroup product must go here <!--@LoopEnd(Subgroups)-->
	<!--@LoopStart(Products)-->
		<div class="productGalleryItem_cell_descriptionText"><!--@Ecom:Product.Name--></div>                              
    <!--@LoopEnd(Products)-->
<!--DwTemplateTags-->
But it doesn't seem to give me any of the subgroup products.
Any suggestions? :-)

Kind regards,
Dmitrij
 
Merethe Nielsen
Reply

Hi

Use <!--@DwTemplateTags--> in your template to see the available loops (in/outside the different loops).

It works like this:

In the GroupList.html:
<!--@LoopStart(Groups)-->    
	    <!--@LoopStart(Childgroups)-->
			<a href="<!--@Ecom:Group.Link.Clean-->"><!--@Ecom:Group.Name--></a>   
        <!--@LoopEnd(Childgroups)-->
<!--@LoopEnd(Groups)-->

In the Productlink.html:
<!--@LoopStart(Subgroups)-->
	<!--@LoopStart(Childgroups)-->
		<a href="<!--@Ecom:Group.Link.Clean-->"><!--@Ecom:Group.Name--></a>   
	<!--@LoopEnd(Childgroups)-->
<!--@LoopEnd(Subgroups)-->

Kind regards,
Merethe

 

You must be logged in to post in the forum