Developer forum

Forum » PIM » BOM products and attribute inheritance from bundle elements

BOM products and attribute inheritance from bundle elements

Davy Capiau
Reply

 Hi everyone,

I’m working with BOM (bundle) products in Dynamicweb 10 and I’m trying to understand how attributes behave.

Question: Does a BOM product inherit any attributes / category fields / data model fields from its bundle elements, or are all attributes strictly defined on the BOM product itself?

What I’d like to know in practice is:

If I set custom attributes on the component products, can the BOM product automatically use or expose those values?
Or do I need to duplicate/maintain attributes on the BOM product (or handle this via templates/custom code) if I want them available on the BOM level?
 

Thanks in advance!


Replies

 
Søren Jensen Dynamicweb Employee
Søren Jensen
Reply
This post has been marked as an answer

Hi Davy,

In Dynamicweb 10, a BOM (bundle) product does not inherit attributes/category fields/data model fields from its bundle elements (component products).

All attributes are defined and stored on each product individually, so:

If you set custom attributes on the component products, the BOM product will not automatically “pick them up” or expose them as its own values.

If you need those values available on the BOM level, you’ll need to:

  • Maintain/duplicate corresponding attributes on the BOM product itself, or
  • Handle it via templates/custom code (e.g., read attributes from the BOM lines/components and render/aggregate them for the BOM context), depending on what you’re trying to display/use (PIM, frontend, integrations, etc.).

So the practical answer is: no inheritance — attributes are set per product, and BOM-level values must be explicitly managed or derived at runtime.

/Søren

Votes for this answer: 1

 

You must be logged in to post in the forum