How to get store information in Magento?

前端 未结 8 1703
你的背包
你的背包 2020-12-12 10:36

In Magento, how can I get active store information, like store name, line number, etc?

8条回答
  •  轮回少年
    2020-12-12 11:35

    You can get active store information like this:

    Mage::app()->getStore();  // for store object
    Mage::app()->getStore()->getStoreId;  // for store ID
    

提交回复
热议问题