To get details of the current store

$store = Mage::app()->getStore();

To get the Store Id

$storeId = Mage::app()->getStore()->getStoreId();

To get the code of the store.

$storeCode = Mage::app()->getStore()->getCode();

To get the Website Id.

$websiteId = Mage::app()->getStore()->getWebsiteId();

To get the home page of the store.

$storeHomeUrl = Mage::app()->getStore()->getHomeUrl();

To get the name of the store.

$storeName = Mage::app()->getStore()->getName();

To get the Id of the store group.

$storeGroupId = Mage::app()->getStore()->getGroupId();

To get the order of the store.

$storeSortOrder = Mage::app()->getStore()->getSortOrder();

To check if the store is active.

$storeIsActive = Mage::app()->getStore()->getIsActive();

To get the code of the language of the store

$storeLocaleCode = Mage::app()->getStore()->getLocaleCode();

To get the url base.

$storeBaseUrl = Mage::app()->getStore()->getBaseUrl();

Alex Daqui

Alex Daqui

I am a full stack web developer with more than 5 years of experience. I like to learn new programming technologies and share them.

0 Comments

Leave a Reply