Developer forum

Forum » Ecommerce - Standard features » Show name of ecom group on product

Show name of ecom group on product

Per Søgaard
Reply

I have tried to find a tag for this with no success.

I have 15 groups in one alphabetical list and when viewing the details of the product i would like to show the the name of the gruoup the product is in.

Cow can i do that?


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Per

A product can be in more than one group, so there is not tag for the group, but a loop instead:

http://templates.dynamicweb.com/eCommerce/Dynamicweb-eCommerce-template-tags/Product-Catalog/Product-detail/Loops/ProductGroups.aspx

BR Nicolai

 
Per Søgaard
Reply

Thanks Nicolai.

I placed the loop in the item template and it displays alle group names... instead of only the one that the product is placed in.

http://www.danespo.dk/Sorter.aspx?ID=1982&ProductID=PROD147

 
Line lofquist
Reply

Hi Per,


Instead of the ProductGroups loop, that as you found out outputs all groups, you should use the loop AssociatedGroups.


You can read more about the loop here:


http://templates.dynamicweb.com/eCommerce/Dynamicweb-eCommerce-template-tags/Customer-Center/Favorites-list/Loops/FavoriteList/Loops/AssociatedGroups.aspx


Kind Regards,


Line

 

You must be logged in to post in the forum