Magento 2 – Real Usage of Product Attribute: quantity_and_stock_status

magento2stock

Magento2 has introduced new product attribute quantity_and_stock_status which hold the value of is_in_stock and qty from $stockItem object.

For those who are curios on the topic –
How the quantity_and_stock_status attribute value is populated in product object?

Also, product object has stock-item information as extension_attributes which contain details info on stock/inventory.

Just wondering what was the sole purpose of introducing this new attribute?
For me, it's like overhead. Also seems they want an easy usage somewhere instead of using nested call for extension_attributes.

Please do share if anyone knows something about the real usage of this attribute.

Best Answer

This attribute is deprecated. It was created to allow the merchant to manage a place of "quantity" field on product form through UI.

Related Topic