In this article get details of store.
Get store details like store id, store code, store name....
Use this code get Store Id
<?php
$storeId = Mage::app()->getStore()->getStoreId();
echo $storeId;
?>
Use this code get Store Code
<?php
$storeCode = Mage::app()->getStore()->getCode();
echo $storeCode;
?>
Use this code get Website Id
<?php
$storeWebsiteId = Mage::app()->getStore()->getWebsiteId();
echo $storeWebsiteId;
?>
Use this code get Store Name
<?php
$storeName = Mage::app()->getStore()->getName();
echo $storeName;
?>
Use this code get Store Status(if 1 is enable and 0 is disable)
<?php
$storeStatus = Mage::app()->getStore()->getIsActive();
echo $storeStatus;
?>
Use this code get Store Home Url
<?php
$storeHomeUrl = Mage::app()->getStore()->getHomeUrl();
echo $storeHomeUrl;
?>
Labels: Magento