Developer forum

Forum » Templates » Custom product attributes, productgroups

Custom product attributes, productgroups

Siv-Renate Hansen
Siv-Renate Hansen
Reply

I'm trying to learn how to implement product group fields in a product. I understand how to create the fields, but when I want to output them, I haven't found a way (yet).

 

In the documentation, this is what I find about Product.Productgroups https://doc.dynamicweb.com/template-tags/ecommerce/product-catalog/grouplist/groups/base-tags-product-productgroups, but I don't think this is the correct ProductGroup (Even if it was, this documentation as flaws).

Could someone please point me in the right direction?


Replies

 
Nicolai Pedersen
Reply

Product group fields are fields that is on the group - and not on the product.

What are you trying to achieve? Then we can guide you.

Thanks, Nicolai

 
Siv-Renate Hansen
Siv-Renate Hansen
Reply

I want to have some product spesific product attributes, and I've been told that I create the attribut field group under Settings->Ecommerce->product catalog ->Productcategories. I have one attribute category called Battery. This one I've assigned to the productgroup (in Ecommerce->product catalog->B2B (my shop)) Batteries, under Product categories (under Group settings).

For all products in my Battery product group, I get the fields (volt, lithium for now), but I don't know how to retrieve them in the front end.

 

 
Nicolai Pedersen
Reply

Ok, that is product categories. Not to be confused with product groups.

This is the loop you want to take a look at:

https://doc.dynamicweb.com/template-tags/ecommerce/product-catalog/product#ProductCategories

 

 

You must be logged in to post in the forum