How to lock pages with the Login View Pages module
Last updated
Last updated
Login View Pages requires your users to log in to view certain pages or content.
To enable this feature, you should go to Page restrictions on admin navigation
In this card, choose Lock configuration > Create rule.
The setting is extremely easy to follow:
Step 1: BASIC DETAILS
STEP 2. SELECT RESTRICTED CUSTOMERS
Choose customers from whom you want to hide the page and fill in the message shown to them
STEP 3. CHOOSE SPECIFIC PAGES TO LOCK
You can choose to lock specific product pages, collection pages, and any pages of your store.
Multiple selections are allowed.
Note:
If you lock the main blog page and allow non-logged-in users to access specific subpages, you'll need to provide them with the URLs of those subpages so they can view the content.
STEP 4. SET UP CONTENT ON LOCK PAGE
This section allows you to customize the content that customers see when they visit a restricted page, as well as how they should be redirected.
In Show content section, there are 4 options to configure:
Shopify Default Login Form: this will use Shopify Default Form, so there won't be any customization available.
3 other customizable options:
Custom content message: Complete customizable content
Login form & custom message: Show Shopify’s Login form and your custom message
Registration form & custom message: Show Shopify’s Registration form and your custom message
In After login, redirect to section, there are 3 options:
Account dashboard: Shopify’s account dashboard
Custom page: Redirect to a specific page of your choice
Restricted page: Redirected to the page you were on before, which was restricted
On the restricted page, you can choose to:
Hide the header and footer if you do not want non-targeted customers to access links on Header, Menu, and Footer.
Hide the navigation bar in case you do not want non-targeted customers to access your menu. This option is only available when you choose "No" at "Hide header and footer"
STEP 5: MORE SETTINGS
First, set rule priority
Additionally, you can choose products that won't be affected by the rule.
Option Exclude specific URLs can determine which link should not be hidden from restricted customers. Then, enter the URLs of the pages you want to exclude from the rule and click on Add Page.
You can set up a period to automatically enable or disable the rule.
STEP 6: FRONTEND DISPLAY
When customers come to restricted pages, the login form will be displayed instead of the pages' content.
If you have a problem when setting up this feature, please feel free to reach us at support-sbc@bsscommerce.com or Live Chat if you need any assistance.