Skip to content
Try free for 15 days
English
EnglishFrenchSoonItalianSoonJapaneseSoonSpanishSoonPortuguese (Portugal)SoonGermanSoonCzechSoonDanishSoonFinnishSoonKoreanSoonNorwegian (Bokmål)SoonDutchSoonPolishSoonPortuguese (Brazil)SoonTurkishSoonChinese (Simplified)SoonChinese (Traditional)Soon
Open in Claude Ask questions about this pageOpen in ChatGPT Ask questions about this page

Checkout

Block checkout for specific customers or products using a dedicated condition builder enforced by Shopify itself.

The Checkout lock content type blocks checkout itself, rather than a page or product. It’s the right choice when you need to stop specific customers from completing a purchase — for example, guests without an account, customers missing a required tag, or customers whose email or phone matches a pattern you want to exclude.

  1. Open Locks in the app’s navigation.
  2. Click Create lock.
  3. Give the lock a descriptive name, for example “Block checkout for guests.”
  1. On the Lock setup tab, in the content picker, select Checkout lock.

The content picker with Checkout lock selected as the content type to lock.

Select Checkout lock in the content picker to build a checkout condition.

  1. Still on the Lock setup tab, a card below the content picker shows which products the lock covers. It starts at All products — “Checkout lock applies to all products.” Click Change to narrow it to specific products instead.

The product scope card for a Checkout lock, set to All products, with a Change action.

Checkout lock starts covering all products; use Change to narrow the scope.

  1. Click the Unlock rules tab to continue.
  1. On the Unlock rules tab, the Lock conditions card replaces the standard rule builder. Add a customer condition — each has a type and a rule:
Condition type Rules available
Customer login Is logged in / Is not logged in
Customer tag Has tag / Does not have tag
Customer phone Is equal to / Is not equal to
Customer email Is equal to / Is not equal to / Contains

Each condition row has a pencil icon to edit it and a bin icon to remove it.

The Lock conditions card for a Checkout lock, showing one condition with edit and delete icons and an Add another condition button.

The Lock conditions card sets when the checkout lock applies.

  1. Click Add another condition to add more. Conditions are always combined with AND — as the card says, “All added conditions must be met for this lock to apply.” Adding conditions makes the lock narrower because every condition must match.
  1. Below the conditions, edit the Error message a blocked customer sees at checkout. The default is Sorry, this item can't be purchased. Use the language selector on that card to set the message per storefront language.

The Error message field for a Checkout lock with its per-language selector.

The Error message is what a blocked customer sees at checkout.

The Preview panel on the right shows a real checkout with your error message in place, so you can see how it reads before saving.

  1. Click Save.

Was this helpful?