<?php $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); } ?>
Be the first to comment.