How to get store information in Magento?

前端 未结 8 1696
你的背包
你的背包 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:31

    If You are working on Frontend Then Use:

    $currentStore=Mage::app()->getStore(); 
    

    If You have store id then use

    $store=Mage::getmodel('core/store')->load($storeId);
    

提交回复
热议问题