Developer forum

Forum » Ecommerce - Standard features » Loop Products inside ProductGroups

Loop Products inside ProductGroups

Daniel Williams
Reply

I am having this problem, which is actually or should be pretty basic.
In a eCommerce Module I select the top categorys "Jeans, Shorts", in the subcategory of Jeans there is "Blue, Green"
- And in here, i wan't to output the products that is Blue Jeans.

<!--@LoopStart(ProductGroups)-->
    <strong><!--@Ecom:Group.Name--></strong>
    <!--@LoopStart(Childgroups)-->
        <strong><!--@Ecom:Group.Name--></strong>
        <!--@LoopStart(Products)-->
            PRODUCTS TO LOOP
        <!--@LoopEnd(Products)-->
    <!--@LoopEnd(Childgroups)-->
<!--@LoopEnd(ProductGroups)-->

I believe the code says itself, but what i wan't is my eCommerce structure to be my navigation in a megamenu.
How can i do this the best way, or any way for that matter?


Replies

 
Nicolai Høeg Pedersen
Reply

You cannot have products in the navigation as it is now. You can have all the groups easily though, see this thread:

http://developer.dynamicweb-cms.com/forum/templates/layoutbased-design-and-ecom-menus.aspx

 

If you want products in the navigation, you would need to do a Navigation Provider, see this article:

http://devierkoeden.com/articles/extending-the-sitemap-with-dynamicweb-content.aspx

 

BR Nicolai

 

You must be logged in to post in the forum