Skip to main content
3 of 3
Removed same version tags

How to set is_in_stock to 0 for configurable product when all associated products are out of stock?

I am using a third party service to generate and submit the product feed to Google.This service uses is_in_stock field from the cataloginventory_stock_item database table to check if the product is in stock or not?

I have check in the default Magento even if we make all the associated products of a configurable product out of stock the is_in_stock value is set to 1 only.

Or do we have any other attribute in any of Magento table which may help? Is there any way to work around this thing.

Mukesh
  • 1.5k
  • 4
  • 29
  • 59