How to Get Website ID and Store ID from Admin in Magento 2

get website ID and store ID from admin in Magento 2

After you have configured multi-website or set up multistore in Magento 2, you require to test or debug the functionality in relation to the muti website or multi-stores before going live. To speed up the process, you need to have the website ID and store ID.

Magento 2 stores have several extensions that require store ID while configuration. A Magento newbie may spend too much time to find the website ID or store ID of a particular website or store.

Today, I have come up with the simple method to get website ID and store ID from admin in Magento 2, it would be easier for you while debugging or testing and configuring Magento 2 extensions that require ID.

Stepwise Method to Get Store ID from Admin in Magento 2

  1. Log in to the Magento 2 admin panel.
  2. Navigate to Content > Design > Configuration
  3. Select the Store for which require the store ID and click “Edit”
  4. The store ID is displayed in the URL.

find the ID of Website or Store in Magento 2

Stepwise Method to Get Website ID from Admin in Magento 2

  1. Log in to Magento 2 admin panel.
  2. Navigate to Content > Design > Configuration
  3. Select the Website for which you require to find the website ID and click “Edit”
  4. The website ID is displayed in the URL.

get website ID and store ID from admin in Magento 2

That’s it.

If you have questions regarding this post, feel free to ask in the comment section below.

I would be happy to answer.

Do consider sharing this post with Magento Community via social media.

Thank you.

Get Weekly Updates

Never miss Magento tips, tricks, tutorials, and news.

Thank you for subscribing.

Something went wrong.

5
(based on 10 Reviews)

Yash is a Magento Developer at Meetanshi. He loves playing computer games and watching action movies. For brain exercise, he likes to play Chess.

Leave a reply:

Your email address will not be published.