Developer forum

Forum » Ecommerce - Standard features » Output Subgroups in ProductList feed

Output Subgroups in ProductList feed

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

I need to list the Product Subgroups in the product List feed.

I have tried on a standard Rapido 3.3 + DW 9.8.2 installation and it seems that the Subgroups I get are from the PIM instead of the current shop.

GetLoop("Subgroups") renders PIM subgroups

GetLoop("ProductGroups") does not render anything

GetLoop("Groups") does not render anything

GetLoop("NextlevelGroups") does not render anything.

Isn't one of these loops supposed to render the subgroups of the current group or shop?

Is there another way of rendering the Subgroups? Or another setting I am missing?

Thank you,
Adrian


Replies

 
Nicolai Pedersen
Reply

Do you want subgroups of the group you are listing products from - or groups that belong to the product?

Subgroups loop in the 'root' of the product list template, will give you sub groups of the group specified in the GroupID parameter. If you call that parameter bliblablu, it will not give you anything in that loop.

https://doc.dynamicweb.com/template-tags/ecommerce/product-catalog/productlist/subgroups

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Nicolai,

Subgroups of the group specified in the GroupID parameter.

And yes, I have used the loop from the link you mentioned.

And I have used the path that is used for the regular ProductListFeed. That includes a valid value for the GroupID parameter.

Thank you,
Adrian

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Nicolai,

Anything on this subject?

Thank you,
Adrian

 
Nicolai Pedersen
Reply
This post has been marked as an answer

We need to see your template and look at your data to see what happens. URL to the solution and problem please?

Capture.JPG
Votes for this answer: 1
 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Nicolai,

I have tested on a local solution using DW 9.8.2 and Rapido 3.3 in order to avoid any influence from other template code.

I have used the exact syntax posted by you, and I got results, only the results were Subgroups from PIM rather than the shop.

Nothing fancy about the code. Plain old GetLoop. Except that I have used the Loop in the ProductListFeed template.

Does your test show the right Subgroups?

Thank you,
Adrian

 
Nicolai Pedersen
Reply

Yes, it shows the right groups

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Ok.

I will try it again.

Thank you,

Adrian

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Apparently it works on my end as well.

Same code I used before. Just refreshed the page. Weird.

Thank you very much for your help and your patience.

Adrian

 

You must be logged in to post in the forum