Developer forum

Forum » Rapido » Product list with title above each new group of products

Product list with title above each new group of products

Martin Grønbekk Moen
Martin Grønbekk Moen
Reply

Looking at this site https://www.magpul.com/featured/new-products which is made with DW as far as I can see.

How did they manage to add group titles above each new group of products in the list?
Is this a custom feature, or is it possible with default DW/Rapido?

COMMING SOON
<Products>

NEW RELEASES
<Products>


Replies

 
Nicolai Pedersen
Reply

Hi Martin

That page is pretty simple - it is just 2 paragraphs with a title and a product catalog app showing a list of products in one group each.

An alternative is to look at the loop of products. Each product has tag for the group they are in, Ecom:Product.PrimaryOrFirstGroupID. Group your list of products by that ID and when the ID changes in the list, insert a heading looking for the name of the group using the API: Dynamicweb.Ecommerce.Services.ProductGroups.GetGroup(PrimaryOrFirstGroupID).Name.

Remember that this will only make sense if you remember to sort by group as the first sort option or have search results that are short enough to be in one page.

BR Nicolai

 

You must be logged in to post in the forum