menu

Magento get current store information


Magento get current store information : If you are looking about the current store information in magento you can use $store = Mage::app()->getStore(); to get current store instance and details such as –

  • Store Id
  • Store Name
  • Store Code
  • Store Url
  • Store Status
  • Store Categories
  • Store Language
  • Store Currency Symbol
  • Store Country
  • Store Website Id
  • Store Group Id

Magento get current store information

Here We are going to show the store information listed above-

Magento get current store

Get Current Store :

Magento get current store Id

Get Current Store Id:

Magento get current store Name

Get Current Store Name:

Magento get current store Code

Get Current Store Code:

Magento get current store Url

Get Current Store Code:

Magento get current store Status

Get Current Store Status:

Magento get current store Categories

You Can Use following method to get store categories – first get store id, get root category id then load category collection as below –

Get Current Store Categories:

Magento get current store Locale

Get Current Store Locale:

Magento get current Currency code And Symbol

First get currency code then get corresponding symbol.

Get Current Store Currency Code And Symbol:

Magento get current Country Code

Get Current Country Code:

Magento get Current Store website Id

You can get website Id as below –

Get Current Store Website Id:

Magento get Current Store Group Id

You can get website Id as below –

Get Current Store Group Id:

📖 Read More


Advertisements