| 
       
	很多时候,它需要一个程序员来访问存储信息像存储 id 或存储状态,存储名称、 网站 id、 网站名称等。 
	这些方法将有助于获取的当前存储区和在 Magento 网站的详细信息。 
	/*Get Store*/ 
	echo Mage::app()->getStore(); 
	/*Store Id*/ 
	echo Mage::app()->getStore()->getStoreId(); 
	/*Store Name*/ 
	echo Mage::app()->getStore()->getName(); 
	/*Store code*/ 
	echo Mage::app()->getStore()->getCode(); 
	/*Store is Active*/ 
	echo Mage::app()->getStore()->getIsActive(); 
	/*Store Home Url*/ 
	echo Mage::app()->getStore()->getHomeUrl(); 
	/*Website Id*/ 
	echo Mage::app()->getStore()->getWebsiteId(); 
	/*Website Name*/ 
	echo Mage::app()->getStore()->getWebsiteName(); 
	希望 !它将帮助。 
      
      (责任编辑:最模板) | 
    
