A closed store is meant for members or business partners: without logging in, nobody can see prices, products or content. Anyone who lands on any page of the shop is redirected to the login page. After logging in, the shop works as usual.
Before you start
- a decision on whether customers can register themselves or you open their accounts (see customers),
- optionally new customer approval, so registered customers cannot log in until you confirm them.
Switching it on
Stores › Configuration › Magelan › Restricted Access Settings
If you only want to close one of several shops, choose the store view in the scope switcher at the top left. With Default Config, it applies to all of them.
In the General Configuration section, set Enable Restricted Access to Yes.

- Enable Restricted Access - Yes closes the shop to guests.
- Allowed Routes - pages that stay open
- leave as they are.
Leave the Allowed Routes field as it is. It lists the pages that must stay open to guests too (login, registration, forgotten password). If you want to open another page to guests, write to us.
Click Save Config and clear the cache.
What a guest sees
Anyone who is not logged in ends up on the login page, whatever page they open. The login, registration and forgotten password pages have no search box, cart or newsletter signup, so guests get no glimpse of your range. Switching language or store works for guests too.
Opening the shop again
Set Enable Restricted Access to No, save and clear the cache.
Common problems
A guest can see the home page or a category
The page is still in the cache from when the shop was open. Clear the cache. Then check that the setting is switched on for the right store view.
After logging in, the customer lands on an empty page
After logging in, the shop takes them to the My Account page. If you would like them to land on the home page or in the catalogue, write to us.
You cannot see the shop yourself while editing content
To view the shop, log in as a customer (a test account is fine), or use Login as Customer on a customer in the admin, which the closed store lets through.


