Quantcast
Channel: Webkul Blog
Viewing all articles
Browse latest Browse all 5537

set product status enable to all store

$
0
0
<?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);
	}
?>

Viewing all articles
Browse latest Browse all 5537

Trending Articles