This is the blog for getting Idea regarding PHP, Magento, jQuery and JavaScript for Customization.

Friday 1 June 2012

Magento : Check status of product is Enable / Disable


       $product = Mage::getModel('catalog/product')->load(""""Here product ID"""");

      echo $product->getStatus();

      //1 = Enabled
      //2 = Disabled

No comments:

Post a Comment