How to Get Store ID in Magento

Thursday, December 6, 2012
Many times during coding we require the store ID of the magento store, We can get this by using the below code in magento :
 Mage::app()->getStore()->getStoreId();
 OR
 $this->helper(’core’)->getStoreId();

2 comments:

  1. Anonymous said...:

    Really very useful post ,thanks for sharing .






    Magento Developers

Post a Comment