"Has purchased..." key
Granting access to content in your store only after the appropriate purchase has been made
Locksmith allows you to check for a purchase of a specific product and only grant access to your locked content if an applicable purchase has been made.
This key condition uses the customer account system that comes by default with all Shopify stores. I.e. Locksmith does not create a separate account system. Customer accounts need to be enabled for your store in order for this key condition to function correctly.
Additionally, when this key condition is used, Locksmith will automatically a require that customer signs in when attempting to visit a locked page. More information on how customer accounts work with Locksmith here:
Once you create a lock that covers the content that you want to require a purchase for, you can find the has purchased key condition in the key list like so:
You'll be asked to enter the name of the product that will be required as a purchase:
Important: Whether you choose to enter the SKU, title (shown above), variant ID, or product tag, they are all case sensitive!
Sets a maximum allowed purchase amount. When used, Locksmith will only grant access if the customer has not yet purchased this many units of the product
Allows to you specify, in days, how far back you want Locksmith to purchase. E.g. you may want to only allow access for 30 days after purchase.
When ON - Cancelled orders will not fulfill the requirements for access. Default: ON.
When ON - Unfulfilled orders will not fulfill the requirements for access. Default: OFF, most merchants will want to leave it this way.
When ON - Only orders with a payment status of "Paid" will fulfill the requirements for this lock. Default: ON.
Caution: This setting often causes issues for merchants who are testing out their locks. Consider turning this setting OFF while testing, but back ON for general use.
Like all key conditions, this one can be inverted. This is useful to verify that a customer has NOT yet purchased a specific product: