Is it possible to create a product with different colors where each different color points to the same stock?

For example, I have created a configurable product with a color attribute. After creating the configurable product I create a couple of associated simple products for a few different colors. Instead of having each color have it’s own product qty / stock, I want all the colors to share the same stock.

So for example the configurable product is a lamp. The associated simple products are lamp green, lamp red etc. I want to tell Magento that the lamp product has 10 in stock. So when someone buys a lamp red, it will tell me there are only 9 lamps left in stock regardless of the color. Is this possible?

The way I have it now is that each associated simple product has it’s own stock, but this is not what I want in my case.

Thanks in advance for any help.


2 Answers 2


As Thorsten said You won't be able to achieve this with Magento's current default functionality. However, I have found the solution to this problem using a third-party extension. This extension allows you to link multiple products with one product and they have a shared inventory. for example:- you can create your configurable product with several child products of different colors. Now you can choose any one of the child products as your main product and then link/associate them to other child products. Now all linked products have a shared inventory. So if someone purchases one of the colored products then the stock for all the linked child products will get updated automatically.

You can achieve this using Magento 2 Associated or Linked Product Stock Update

Thank You


I don't think that this is possible out of Magento standard.

You could try to detect a stock change on a child item and then change the stock of all other child items accordingly.

A point to start can be the event cataloginventory_stock_item_save_after.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.