Closed store: access for logged-in customers only

The shop is visible only to logged-in customers. A guest can only reach the login, registration and password reset pages; everything else redirects to the login.

⏱ 4 minBeginnerUpdated 8 Oct 2026

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

  1. 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.

  2. In the General Configuration section, set Enable Restricted Access to Yes.

    Restricted access settings with the switch and the list of allowed routes
    1. Enable Restricted Access - Yes closes the shop to guests.
    2. Allowed Routes - pages that stay open
    3. leave as they are.
  3. 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.

  4. 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.

A guest cannot even open your terms and conditions or privacy policy pages, although they are linked from the registration form. If you need these pages open, write to us and we will add them to the allowed ones.
Google and other search engines cannot get into a closed store, so your products will not appear in search results. If you want a public showcase with closed purchasing, it is better to close only part of it (for example prices); talk to us about this.

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.

Was this article helpful?

Related

We use cookies for the proper functioning of the site, visit analytics and showing ads tailored to your interests. Read more in our privacy policy. By clicking "Accept all" you agree to the use of all cookies.