How to 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
- Log in to the Magento 2 admin panel.
- Navigate to Content > Design > Configuration
- Select the Store for which require the store ID and click “Edit”
- The store ID is displayed in the URL.
Stepwise Method to Get Website ID from Admin in Magento 2
- Log in to Magento 2 admin panel.
- Navigate to Content > Design > Configuration
- Select the Website for which you require to find the website ID and click “Edit”
- The website ID is displayed in the URL.
That’s it. After completing with the above process if you are working with multi store environment you will often be in a need to get current store ID in Magento 2, so just try 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.
Sanjay Jethva
Sanjay is the co-founder and CTO of Meetanshi with hands-on expertise with Magento since 2011. He specializes in complex development, integrations, extensions, and customizations. Sanjay is one the top 50 contributor to the Magento community and is recognized by Adobe.
His passion for Magento 2 and Shopify solutions has made him a trusted source for businesses seeking to optimize their online stores. He loves sharing technical solutions related to Magento 2 & Shopify.
Prev
How to Add Custom Field in Checkout Page Below Payment Method List in Magento 2
Solved: Disallowed File Type When Uploading Product Image in Magento 2
Next