Just wondering how do I disable a simple product automatically when a configurable product is disabled?

Some times the products we have, we want to disable on our website however a configurable product has over 5-8 simple products associated to it. When I disable configurable product, simple product still stays enabled!

Any suggestion to make it automatically disable associated product?


  • You can use mass edit to change status of all products at once.
    – Priyank
    Feb 25, 2017 at 9:51

1 Answer 1


Use Magento event-observer



in your observer

public function catalog_product_save_after($observer)
    $product = $observer->getProduct();
    if( $product->getTypeId() == Mage_Catalog_Model_Product_Type_Configurable::TYPE_CODE ){

        $childProducts = Mage::getModel('catalog/product_type_configurable')

        foreach($childProducts as $child) {

Your Answer

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

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