很多时候,Magento它需要一个程序员来访问存储信息像存储 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();
希望 !它将帮助。
(责任编辑:最模板) |

仿taonpost代购网站系统整站
人气:902
免费大气仿爱之谷成人用
人气:12177
ecshop鲜花模板
人气:657
magento外贸家居商城Toront商
人气:286
Logancee多用途外贸服饰鞋包
人气:435
ecshop仿kela珂兰钻石整站模
人气:681