Magento Configurable products and their quantity logic

configurablemagentoproduct

Magento version – 1.7.0.2

How works quantity for configurable products (CP)

For example, i have an attribute "size" with values from 20 to 32

So, i created 12 simple products with sizes 20, 21, 22, et**c (with **quantity = 1 for each product)

Then i created two different CP (cp1 and cp2) and selected in Associated Product tab those s*imple products with sizes*

If users buy cp1 with size = 20, then what system do?

i want to know detailed system logic in this case

Quantity of Simple product with size=20 would be 0 and cp1 would be "out of stock" or not?

Sorry for my english and thanks for any consultations about my issue!

Best Answer

In Magento strictly saying, a Configurable product(CP) is not a product in itself, but a collection of simple products. When you are choosing among 10 colors of a CP is nothing but choosing 10 different simple products of the same color.

Suppose a store have only one RED Ball and two magic boxes CP1 and CP2.

Now you can take out the RED Ball from any of the boxes,as it is a magic box. But when you take out the ball from one of the boxes(CP1), the RED Ball can't be taken out from the other box(CP2) or from the CP1 as there is only One RED Ball.

Now you can have hundreds of Magic Boxes and you can take the RED Ball from any of the boxes(if the magician allows it- in this case store owner), but when the stock of RED Ball is out then nobody can take out the RED Ball from any of the boxes.

And to make the product out of stock when the Quantity becomes zero, you have to go to

System->Configuration->Inventory(under catalog tab)

As shown in the image below, set the field marked in red to zero. enter image description here

That's it. Hope I made your concept clear about Configurable Product. Enjoy...

Related Topic