Magento 2 - Store disable issue in Multi stores website
-
25-02-2021 - |
Question
I am working on multi store website, as far I know person should be able to disable store view / website if that is not a default store view / website.
I want to disable some of the store views but can't able to disable the store. it give me the notification
It cannot be disabled
P.S: I already set one of the store view as default.
Any help, experience and knowledge sharing would be appreciated.
Solution
Update
Things to check:
- Ensure that store views are not configured as any defaults.
Website Scope
Store Scope - AKA: Store Group
- Ensure that config.php is not using the store view
https://devdocs.magento.com/guides/v2.2/config-guide/config/config-php.html
https://devdocs.magento.com/guides/v2.2/config-guide/config/config-files.html
- Ensure that the configuration is not locked
https://devdocs.magento.com/guides/v2.2/config-guide/prod/config-reference-sens.html
- Check changelogs to see if issue was resolved in upgraded versions:
https://devdocs.magento.com/guides/v2.2/release-notes/bk-release-notes.html
- Query database to see values:
select * from store;
select * from store_group;
select * from store_website;
Resources:
- https://docs.magento.com/m2/ce/user_guide/stores/stores-all-create-website.html
- https://devdocs.magento.com/guides/v2.2/config-guide/prod/config-reference-configphp.html
- https://devdocs.magento.com/guides/v2.2/config-guide/prod/config-reference-sens.html
I'd be willing to bet that it is related to bugs that are resolved in 2.2.6
https://devdocs.magento.com/guides/v2.2/release-notes/ReleaseNotes2.2.6EE.html#theme
Try upgrading magento composer update
in a test environment