4. Variant Inheritance
Last updated
If a product has variants (for example, a cable in different colors), you only need to configure the accessory lock once on the parent product. All variants inherit this configuration automatically via Shopware's native DAL inheritance mechanism.
Open the parent product (the base product, not an individual variant).
Click the Accessory Lock tab.
Assign the desired main products in the "Required Main Products" card.
Click Save.
All variants of this product are now automatically linked to the same main products.
When you open an individual variant's detail page and switch to the Accessory Lock tab, you will see an inheritance switch next to the "Required Main Products" card.

While inheritance is active:
The table shows the parent product's assigned main products in a read-only view.
The inheritance switch is enabled (chain icon highlighted).
Breaking inheritance:
Click the inheritance switch to disable inheritance for this variant.
The table switches to edit mode.
Assign individual main products to this variant (or leave the list empty to disable the lock for this specific variant).
Click Save.
Restoring inheritance: Click the inheritance switch again. The variant will resume inheriting the parent product's settings and any individual assignments are removed.
The cart validator respects inheritance automatically: when checking a variant in the cart, the effective assignment is used — either the variant's own (if inheritance was broken) or the parent product's.
Last updated