Reading list Switch to dark mode

    set product status enable to all store

    Updated 18 March 2015

           $allStores = Mage::app()->getStores();
           foreach ($allStores as $_eachStoreId => $val)
    	 Mage::getModel('catalog/product_status')->updateProductStatus($productid,Mage::app()->getStore($_eachStoreId)->getId(), Mage_Catalog_Model_Product_Status::STATUS_ENABLED);

    Start your headless eCommerce
    Find out More
    . . .

    Leave a Comment

    Your email address will not be published. Required fields are marked*

    Be the first to comment.

    Back to Top

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home