Check if static block is enabled in magento
Posted by navaneeth on Feb 7, 2015 in Magento | No comments yet

In this post we are discussing about how we can check if static block is enabled in magento
For that first we need to create an static block and please note down the block identifier, we need the block identifier to check its active or not
Now here is the code to do so
Mage::getModel('cms/block')->load('identifier')->getIsActive()
In the above code replace the identifier with the one we created
Leave a Reply