Developer forum

Forum » PIM » Assigning a product to multiple product category field collections

Assigning a product to multiple product category field collections

Davy Capiau
Reply

Hi team,

I want to assign a product to multiple product category field collections. How can this be done without having to create additonal PIM groups?  If you assign it via the PIM group there is only one option possible. 

 

 


Replies

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Davy,

Product Category Fields are inherited ONLY through the Group assignment.
Maybe you should describe what you are trying to achieve before moving further with your setup.

Thank you,
Adrian

 
Davy Capiau
Reply

Hi Adrian,

I'll use the demo store's products as an example.

In the PIM-group Bikes > Mountain Bikes I want to assign 2 groups of category fields. 1 Category group that contains info about the bike itself and 1 about the electronic engine system.

They are in seperate groups because the electronic engine system category group can be of use for other products like the (hypothecical) electronic go-carts we sell. 

This way it would make sense if I applied 2 category groups to the Mountain Bikes PIM group. It would be 2 sets of product fields added on the product.

 

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply
This post has been marked as an answer

Hi Davy,

That's not gonna work. You can only have a 1:1 relationship between a Group and a ProductCategory.

In this case, you will have to assign you product to both groups if you want the product to inherit the fields from both ProductCategories.

You can, however, hack it if you create a group tree. You create a Group where you assign the first ProductCategory and a subgroup where you assign the second ProductCategory.

In this case. if you assign the product to the last level, it will inherit fields from both product categories. But you still have to create multiple groups.

Another option would be to put all ProductCategory fields in one ReferenceFields ProductCategory and then create individual ProductCategories for all your combinations.

But I still feel that the multiple Group approach is a lot more flexible.

If you create a Specifications Warehouse where you define one group for every ProductCategory, separate from your public category structure, you can assign the product to the Specification group and also to the Category group. And this will give you the flexibility and independence you are looking for. Of course, this would require using the PIM section in Dynamicweb.

I hope this helps.

Adrian

 

Votes for this answer: 1
 
Davy Capiau
Reply

Hi Adrian

Thank you for explaining. I'm only not following 100% with the last part:

"If you create a Specifications Warehouse where you define one group for every ProductCategory, separate from your public category structure, you can assign the product to the Specification group and also to the Category group. And this will give you the flexibility and independence you are looking for. Of course, this would require using the PIM section in Dynamicweb."

Does a product share product fields between warehouses?

- Wouldn't it be better to create a seperate tree in the current warehouse?

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Davy,

Warehouses are just "containers" with tree-like structures. A product assigned to a group in a warehouse will inherit all those properties in another Warehouse, Shop or Channel.

You can separate them any way you like as long as you use some Groups for Specifications and some groups for categorization.

I usually try to separate them for handling permissions better. If a user does not need access to the specifications tree, I can remove access and simplify their interface.

Adrian

 

 

You must be logged in to post in the forum