Shopify Apps

  1. Home
  2. Docs
  3. Shopify Apps
  4. Login to Access Pages App: FAQs
  5. How to use PREMIUM Login to Access Page app ($50/month)?

How to use PREMIUM Login to Access Page app ($50/month)?

[NEWLY] Hide Products from Pages | Secret Links

  • All in Platinum, and
  • Set up any page(s) to be secret links, meaning only have the link can access the page.
  • Hide products from Homepage/Collections/Search result page/etc.

1. Enable the app

Please follow:

In Enable App, select Yes to enable “Plus Login to Access Pages” functionality or No to disable it. Remember to save your configuration.

If you want to uninstall and remove all data of this app, then select Restore all previous settings before you delete the app.

In Disable registration form, choose Yes to hide the registration link and button in the storefront. This helps make your website members-only. Every visitor should contact you to create an account from the admin!

2. Create "Login to Access Page" rules

Let’s start creating your own rule.

Under Rule Management, select “Create Rule.

2.1 Rule Information

Under Rule Management:In Rule Name, enter a name to help manage the rule more easily.

In Status, select Yes to activate the rule. Otherwise, select No.

In Date, pick a time period in the calendar to apply the rule in the storefront.

In Rule Type, select Force Login or Passcode

In Priority, enter a number to classify the priority of the rule in case there are several rules applied to a product, collection, or page. 1 is the highest priority.

  • In Rule Name, enter a name to help manage the rule more easily.
  • In Status, select Yes to activate the rule. Otherwise, select No.
  • In Date, pick a time period in the calendar to apply the rule in the storefront.
  • In Rule Type, select Force Login or Passcode
  • In Priority, enter a number to classify the priority of the rule in case there are several rules applied to a product, collection, or page. 1 is the highest priority.

When there are multiple rules applied to a page and they have the same priority, Force Login type rule > Passcode type rule. In case that the rules have the same type of rules, the latest created rule is applied.

2.2. When You Set "Rule Type" to "Passcode"

2.2.1 Rule setup

Under Rule Setup:

  • In Passcode, enter the passcode. Only those who receive passcode(s) (via email, instant message, etc.) can access your content.
  • Multiple passcodes are available. Please add one by one passcode and enter. Or, you can upload the passcode in the CSV file.
  • In Passcode Message, tailor a message to inform visitors of the passcode request.

2.2.2 Apply to

Next, under Apply to.

You can lock pages from specific groups of users, based on their tags. This is an advanced feature in the Plus version.

Accordingly:

  • Choose Restrict all visitors: All non-logged-in visitors are prevented from seeing the content. Then, they must login or create an account.
  • Choose Restrict logged in visitors: Only non-logged-in customers with the passcode can get through the page.
  • Choose Allow customers by tag(s): Those customers with the tags will not have to enter the passcode to access the page.
2.2.2.1. Restrict product(s)

Also, you can lock any products/collections/pages as wished.

As can be seen, there are 5 options available,

  • None products: You can lock the collection pages and other pages, meanwhile products are visitable.
  • All products: All products of the website will be locked.
  • Restricts product(s) by tag(s): Enter the tags in the search. If there is no available tag to choose, please select the "Add" tag.
  • Restrict specific product(s): Choose Select Product(s) to search and add any product(s) to be locked.
  • Restrict products from collection(s): Choose Select Collection(s) to search and add any collections of which products are locked.
2.2.2.2. Restrict collection(s)

Apart from restricting product pages, you can also restrict the collection page(s) with three options available.

  • None collections: You can lock the product pages in the collection(s), however, visitors can still see the collection listing pages.
  • Restrict all collections: Or, you can lock all collection pages at once.
  • Restrict specific collection(s): Also, choose Select Collection(s) to search and add any collections to be locked.
2.2.2.3. Restrict page(s)

Besides the product pages and collection pages, you can lock any other pages as well.

Simply put, you can select multiple built-in locked pages or enter the path URL like the example and add page.

Multiple pages are allowed.

2.2.3. Save the rule

Remember to save all settings.

In the storefront, a passcode page is shown with the message.

2.3. When you set "Rule Type" to "Force Login"

Like those of the FREE version, you can select either Show Login Form or Show Custom Content.

2.3.1. Show custom content

If you set the Login type to Show Custom Content.

Content field is shown to tailor any message to inform customers of the login request.

Next, under Apply to, you can lock pages from specific groups of users, based on their tags.

Also, lock any products/collections/pages as wished.

Remember to save all settings.

In the storefront, this content will be displayed when guests try to access the private pages.

2.3.2. Show login form

Instead of the custom content, you can display the default login form, making it quick and easy for customers to log in and continue exploring pages.

Login-form-rule-setup

Accordingly, set the Login type to Show Login Form. Then, in Redirect type, choose a place to redirect customers after their successful login.

There are three options available.

  • Account Dashboard: Like the Shopify default function, customers will be redirected to the Account Dashboard page after logging in.
  • Custom Page: An additional field named Redirect URL is shown. Then, insert a specific URL to redirect customers after their login.
  • Restricted Page: Visitors will be redirected to the private page they are trying to access.

Next, under Apply to, you can choose the product pages, collection pages, or other pages, and customers as above.

Remember to save all settings.


In the storefront, the login form will be shown instead of the custom message.

2.4. When you set "Rule Type" to "Secret Link"

If you do not want customers to enter the passcode or login every time, you can create and send the secret links to them.

Under Rule Setup:

  • In Token, enter the token. Multiple tokens are available. Please add one by one token and enter. Or, you can upload the passcode in the CSV file.
  • Please insert one of the tokens generated to the end of the secret URL and send it to your targeted customers. Next time, they can go straight to the page.
  • In Passcode Message, tailor a message to inform visitors of the passcode request. Those accessing the normal URL will see the message.

2.5. When you set "Rule Type" to "Login to See Prices"

2.5.1 Install the "Login to See Prices" features

Before you create the first Login to See Prices feature, you are required to verify the theme compatibility in advance.

The reason is, our app inserts some Script Tag to your theme rather than directly edit it so the app can detect the price patterns in the theme. Thus, by completing three simple steps, we ensure that our app works flawlessly on your website.

Please follow the steps above.

In case you have any problem with the theme, please contact us at sales@bsscommerce.com.

If not, let's move on to the next step.

2.5.2 Create Login to See Prices rule

You can also choose to hide the price and Add to Cart button on product pages so they cannot buy the products until they login to the account.

In Rule Setup:

Set the Action to Hide price and Add to cart. Then, tailor a message to inform customers how to get the prices.

Otherwise, set the Action to Show price and Hide Add to cart.

Also, choose to Apply to Customers and Products as above.

In the storefront, the price will be hidden/shown as your settings.

Hide prices and Add to Cart

Or,


Show price and Hide Add to Cart

2.6. When you set "Rule Type" to "
Hide Products "

Besides the prices, you might want to hide products completely from the non-targeted customers to avoid confusion.

That time, you can exclude product(s) from Homepage, Collection(s), Search Results page, or Other pages.

2.6.1 INSTALL Hide Products feature

Also, before you create the first Hide Products rule, you are required to verify the theme compatibility in advance.

In case you have any problem with the theme, please contact us at sales@bsscommerce.com.

2.6.2 Create Hide Products Rule

You can hide products from Homepage, collections, or search result pages.

In case non-targeted customers have the URL of the hidden products and try to access, they will be redirected to the Homepage or a Custom page based on your settings.

Under Apply to:

  • Choose Customers you want to restrict or show the products.
  • Choose Products you want to hide.

3. Rule Management

All created rules are recorded in a grid. Here you can check the information of the rule, as well as search/filter to find the rule.

4. How to Uninstall The Pro Login to Access Pages app?

There are two options to uninstall the Pro Login to Access Pages app.

  • Option 1: Uninstall the app automatically
  • Option 2: Uninstall the app manually

4.1. Uninstall the app automatically

Please go to Admin ⇒ Apps ⇒ Login to Access Pages.

To uninstall the app:

Step 1: Select Restore all previous settings
In the popup, choose Restore: After that, you will be redirected to the App list.

Step 2: Select “Delete” icon (the trash)

Step 3: Remove the app

We would appreciate it if you could spend your time giving us some feedback so that we can improve our app and services better. This is totally optional.
To complete the uninstallation, please choose the Remove button.

4.2. Uninstall the app manually

Besides using the “Restore all previous settings” button in the admin, you can also remove the app manually as follows:

Step 1: Go to Themes Folder

Step 2: Open layout/theme.liquid file.

Then find and remove the following code

{% include 'login_require' %}

Step 3: Finally, find and remove the following files

login_require.liquid in Snippets folder

bsscommerce-passcode.liquid in Snippets folder

tiny.content.min.css in Assets folder

Once you remove the file as above, your uninstallation is completed. Please refresh the storefront to check the result. If your uninstallation is successful, users will no longer be restricted from accessing any pages.

Need help? Please email us at sales@bsscommerce.com

Was this article helpful to you? Yes No

How can we help?