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.

    Navigate to Shopify Settings

  • Click on Custom data section and scroll down to the pages tab.

    Scroll to pages

  • Click on Add defination button.

    Add Defination error

  • Provide Name, Namespace, key, Description, and Metafield fyle to create a new Netafield. Click on Save.

    Provide name of metafield

  • Navigate to the Apps >> LockOn- Restrict Store application.

    Navigate to Shopify LockOn App

  • Click on the Create lock button.

    Click on Create Lock

  • Provide a name for your lock.

    Provide Lock name

  • 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

    Pages with Metafields Lock

  • Scroll down and add the Namespace, Key, and Value that we got from above steps, in the required fields.

    Choose pages metafields to lock

  • Now select the lock criteria (logged in user, customer tag, country, city, IP address, selected customer, passcode) under the Control Access section.

    select lock criteria

  • Choose whether you want to Allow or Restrict access to these users.

    allow or restrict access

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

    Handle Unauthorized Access

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

    Schedule Lock

  • Click on Save.