Confirmation key condition
Ask for a simple confirmation before granting access to content in your Shopify Online Store sales channel.
Last updated
Ask for a simple confirmation before granting access to content in your Shopify Online Store sales channel.
Last updated
This is a straightforward key condition that allows access solely based on if the customer confirms the prompt that you set. Something like the following:
To use, simply choose the key condition labelled "Permit if the customer confirms the prompt":
Common use-cases/examples include:
Please confirm that you are over the age of 21
By clicking 'Yes', you agree to our Terms of Service for accessing this page
Confirm if you have read the prerequisite material to access this advanced module
Please confirm that you have not experienced any recent health complications that could prevent you from fully engaging with this experience
etc
Any message that you decide to use can be added directly to the Messages area:
You can also add messages directly to the condition setup if you need unique messages per condition. Or, you can set default messages the Settings > Messages area of the Locksmith app, and leave Lock > Messages blank to use it.
If you need to use something other than "Confirm" as your button text, this is done through your theme.
Go to Online Store > Themes > "Edit default theme content". More info on that, from Shopify, here.
Find the Locksmith tab, and edit the button as needed:
If you want to add text that shows up after the button, simply use {{ locksmith_confirmation_form }}
to denote where the form will show up. Then add more text as desired:
This results in the following, when Locksmith renders the prompt on button for your visitors:
If you have multiple key condition types on the same lock, it might be useful to include other form types within the prompt, so that they display on the same page. We have a guide on doing this here:
Showing multiple prompts on the same pageYou'll need to follow the regular workflow for translating anything in your theme. To get started with that, you'll likely want to use Shopify's free Translate and Adapt app, or one of the paid apps from the app store. More info on this, from Shopify, here.
Once you have a language/locale/translation set up for your theme, you'll see a Locksmith > "Confirmation button text" area which you can edit as needed, for each of your languages. In the Translate and Adapt app, that looks like this:
To add translatable messages to the input prompt, check out or guide here:
Adding translations to your Locksmith messages