Shopify Cart Attribute Validation: Block Checkout Until Buyers Confirm
Some orders need a quick “yes” from the buyer before they go through: agreeing to your terms, confirming a legal notice, or adding a PO number. When a buyer skips that step, the order still lands, and you spend the next day chasing them by email for something they should have given you at the cart.
Blockify Checkout Rules now closes that gap with Shopify cart attribute validation. A new Cart attribute condition in Checkout Validation blocks checkout when information buyers fill in or confirm on your cart page is missing or wrong, and shows them the message you write so they can fix it on the spot. No custom code needed.
What Shopify Cart Attribute Validation Adds to Checkout Validation
Your cart page can already collect extra details through your theme or another app: a terms checkbox, a reference number field, a delivery note. Shopify saves those as cart attributes. Until now, nothing stopped a buyer from leaving them blank. The new condition reads those attributes at checkout and decides whether the order can continue.
- Your field: enter the attribute key your cart page saves, such as
terms_accepted. - Your check: pick how Blockify compares it, from “Is empty” to “Starts with”, and add the value to check against.
- Your message: when the rule matches, the buyer can’t complete the order and sees the error text you wrote, like “Please accept the terms before checking out.”
- Existing rules stay the same: your current Checkout Validation rules keep working exactly as before.
- Availability: Cart attribute rules can be activated on the Basic plan and above. On Free, you can build a rule, save it as a draft and run it in Test Mode, then upgrade when you’re ready to turn it on.
Checkout Rules That Need a Buyer’s Confirmation First
If your store needs the buyer to agree to, confirm or supply something before payment, this condition is where that check now lives. A few ways merchants can use it:
- Terms and conditions checkbox: block checkout until the buyer ticks “I agree to the terms” on the cart page.
- Legal or product notices: require a confirmation box for items that come with a warning or usage notice.
- PO numbers for B2B orders: block checkout when the purchase order field is empty, or when it doesn’t start with the prefix you expect.
- Delivery notes for bulky items: require a note with access or delivery details before a large item can be ordered.
- Targeted checks: combine the cart attribute with other conditions, for example block only when
terms_acceptedisn’tyesAND the cart contains a product with a specific tag.
Each case replaces a manual follow-up with a clear message at the moment the buyer can still fix it.
Set Up a Terms Checkbox Rule in Blockify Checkout Validation
Here’s the most common setup: a cart page checkbox that saves terms_accepted with the value yes when ticked.
- In your Shopify admin, open Blockify Checkout and go to Checkout validation.
- Create a new rule and choose Cart attribute conditions.
- Under Rule status, pick Test Mode while you try it out. Draft saves without running, and Active blocks real customers.
- Enter a Rule name. Only you see it.
- Type the Attribute key exactly as your theme saves it, here
terms_accepted. Keys are case-sensitive. - Choose the Trigger Not equals to, type
yesin Value and click Add. Buyers who didn’t tick the box are blocked, including carts where the attribute was never saved. - Under Checkout message behavior, edit the default error message, for example “Please accept the terms before checking out.”
- Click Save. Once you’ve tested it, switch the status to Active.

Cart attribute triggers you can choose
- Equals to / Not equals to: match an exact value, such as
yes. - Contains string / Not contains string: check for a word or code anywhere in the value.
- Starts with / Not starts with: useful for PO numbers or reference codes with a fixed prefix.
- Is empty / Is not empty: check whether the buyer filled the field at all. The Value field is greyed out for these.

A few matching details help you pick the right trigger. A missing attribute, or one that holds only spaces, counts as empty. “Not equals to”, “Not contains string” and “Not starts with” also match when the attribute is missing, while “Equals to”, “Contains string” and “Starts with” don’t. Values ignore letter case and extra spaces, and you can add several values to one condition: the rule matches if the attribute equals any of them.
Need more control? Click + Add condition to combine the cart attribute with Product tag, Shipping country, Billing country, Shipping method or Cart value. For every option and example, see the Cart attribute condition guide.
What to Check Before You Activate a Cart Attribute Rule
- Your cart page must save the field: Blockify reads cart attributes but doesn’t add fields to your store. Your theme or another app needs to save the value to the cart first. If an active rule isn’t blocking, check that the attribute is saved and that the key matches exactly, including capitalization. A mismatched key is treated as missing.
- Up to 5 attribute keys per store: the limit counts distinct keys across all rules, and the Attribute key field shows your usage. You can reuse a key in as many rules as you like, so short, consistent key names go a long way.
- Express checkout buttons: Shop Pay, PayPal or Google Pay buttons on product pages can skip the cart, so the attribute may never be saved and the rule may not block that order. This is a Shopify limitation. Back those orders up with a rule that uses checkout-level conditions such as Product or Shipping country.
- Address conditions wait for an address: if your rule also uses an address condition, it won’t block until the buyer has entered an address that matches.
- Only active rules count toward your plan limit: drafts and Test Mode rules don’t use up active rule slots.
Fewer Orders to Chase After Checkout
Shopify cart attribute validation puts your required confirmations where they belong: before the buyer pays, not in a follow-up email after the order is placed. Stores that rely on accepted terms, legal notices, PO numbers or special delivery details get a cleaner order queue and buyers get a clear message telling them exactly what’s missing.
The Cart attribute condition is live now in Blockify Checkout Validation. If you’d like help confirming your cart page saves the right field, chat with the Blockify team in the app and we’ll get your rule working.
Require Buyer Confirmation Before Checkout
Block orders with a missing terms box or PO number and show buyers exactly what to fix.
Try Blockify Checkout Rules