Magento 2 Module to Suspend Store Views
Installation
With composer-
In the root of your Magento application enter:
$ composer require kryten/module-suspend-store
-
In the root of your Magento installation run the following
$ php bin/magento setup:upgrade
$ php bin/magento cache:flush
$ rm -rf generated/
Usage
To suspend a site go to the store configuration of the store view you wish to suspend in admin.
Under the "Freedom" heading select "Suspend" and select yes to "Suspend this Store".
You must also select the CMS page to display.
Clear your Magento cache in admin or from the root of your Magento install.
$ php bin/magento cache:flush