Developer forum

Forum » Templates » Get group
Per Ljung
Reply
Hi!

How can you get the group id of a product inside a product loop? I can't find an attribute Group pointing Product -> Group, just Group -> Product?

Best regards,
P

Replies

 
Nicolai Høeg Pedersen
Reply
Hi Per

A product can be member of more than one group, so you do not have a group ID.

The groups the product is part of can be accessed using this loop:
http://templates.dynamicweb-cms.com/eCommerce/Dynamicweb-eCommerce-template-tags/Product-Catalog/Product-detail/Loops/AssociatedGroups.aspx


 

You must be logged in to post in the forum