How to get store information in Magento?

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

    In Magento 1.9.4.0 and maybe all versions in 1.x use:

    Mage::getStoreConfig('general/store_information/address');

    and the following params, it depends what you want to get:

    • general/store_information/name
    • general/store_information/phone
    • general/store_information/merchant_country
    • general/store_information/address
    • general/store_information/merchant_vat_number
    0 讨论(0)
  • 2020-12-12 11:36

    Magento Store Id : Mage::app()->getStore()->getStoreId();

    Magento Store Name : Mage::app()->getStore()->getName();

    0 讨论(0)
提交回复
热议问题