Create a Lock on Pages having metafield
Applies to : Scale or Higher plans
Feature Description
The Lock on Pages with Metafields feature allows store owners to restrict access to specific pages based on metafield conditions. This is ideal for controlling access to dynamic content, personalized pages, exclusive resources, or custom data-driven sections of the store. By applying restrictions to pages with specific metafields, merchants can ensure that only authorized users can view or interact with the content.
Setup Instructions
-
Go to Settings.
-
Click on Custom data section and scroll down to the pages tab.
-
Click on Add defination button.
-
Provide Name, Namespace, key, Description, and Metafield fyle to create a new Netafield. Click on Save.
-
Navigate to the Apps >> LockOn- Restrict Store application.
-
Click on the Create lock button.
-
Provide a name for your lock.
-
Under the What to Lock section, navigate to the Select Content tab and choose the Pages having metafield option. This allows you to lock specific products while keeping the rest of your store accessible
-
Scroll down and add the Namespace, Key, and Value that we got from above steps, in the required fields.
-
Now select the lock criteria (logged in user, customer tag, country, city, IP address, selected customer, passcode) under the Control Access section.
-
Choose whether you want to Allow or Restrict access to these users.
-
Choose what happen when unauthorized user try to access locked content. You can either redirect them to login page, any store page, any URL or show them custom HTML code.
-
You can apply the lock immediately or schedule it to activate at a specific time. Set a custom duration for the lock to automatically restrict or reopen access based on your store's needs.
-
This is useful for time-sensitive restrictions, such as limited-time sales, exclusive member access, or temporary maintenance.
-
Click on Save.