Developer forum

Forum » Development » Get ecom product groups (tree) sorted on relations sorting

Get ecom product groups (tree) sorted on relations sorting

Sander
Reply

How do I get the product groups sorted by the relations sorting defined in the tables EcomShopGroupRelation and EcomGroupRelations?
I basically want to retrieve the same tree that's displayed in the admin ecommerce tree from a template.

I looked through the service Dynamicweb.Ecommerce.Services.ProductGroups, but these methods only seem to get flat lists from the EcomGroups table.


Replies

 
Morten Bengtson Dynamicweb Employee
Morten Bengtson
Reply

Hi Sander,

See this: https://doc.dynamicweb.com/forum/development/development/get-groups-sorted-via-api-ecom

Best regards,
Morten

 

You must be logged in to post in the forum