Magento 2 – get store information

You may also like...

4 Responses

  1. Jake says:

    once you set current store, how do you get the store id that is currently set?

    • magemaster says:

      thank you for that question, this is not mentioned in my post… it is quite easy to get current store id, just use:

  2. Yura says:

    Can you tell , How to get StoreName in js MAgento 2 ?!

    • magemaster says:

      To pass data from you PHP Classes to JS you can use ConfigProvider (class ConfigProvider implements ConfigProviderInterface)

Leave a Reply