/**
* All of these functions can be found in class Mage_Core_Model_Store
* File: app/code/core/Mage/Core/Model/Store.php
*/
//Get store data
Mage::app()->getStore();
//Store Id
Mage::app()->getStore()->getStoreId();
//Store code
Mage::app()->getStore()->getCode();
//Website Id
Mage::app()->getStore()->getWebsiteId();
//Store Name
Mage::app()->getStore()->getName();
//Store Frontend Name
Mage::app()->getStore()->getFrontendName();
//Is Active
Mage::app()->getStore()->getIsActive();
//Homepage URL of Store
Mage::app()->getStore()->getHomeUrl();
//Current page URL of Store
Mage::app()->getStore()->getCurrentUrl();
Created
June 27, 2016 10:14
-
-
Save evgv/7d2ccc25452676b8f6d7546a5c3881b8 to your computer and use it in GitHub Desktop.
Magento. Get store data.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment