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
Developer forum
E-mail notifications
eCom Catalog - See all group and sugroup products
Dmitrij Jazel
Replies
Marco Johannesen
Posted on 02/05/2012 15:22:59
Where are you displaying the "group"?
Is it a menu, and if so, what XSLT file are you using? :)
Is it a menu, and if so, what XSLT file are you using? :)
Dmitrij Jazel
Posted on 02/05/2012 18:54:24
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
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
Posted on 03/05/2012 07:50:38
Hi
Have you tried these loops that are available in the product list:
Kind regards,
Merethe
Dmitrij Jazel
Posted on 05/05/2012 13:18:07
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:
But it doesn't seem to give me any of the subgroup products.
Any suggestions? :-)
Kind regards,
Dmitrij
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-->
Any suggestions? :-)
Kind regards,
Dmitrij
Merethe Nielsen
Posted on 08/05/2012 08:43:42
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