$productid=10;// product id which you want to change status; $storeid=1 // your store id 0 is for default store id Mage::getModel('catalog/product_status')->updateProductStatus($productid, $storeid, Mage_Catalog_Model_Product_Status::STATUS_ENABLED);
Be the first to comment.