Skip to content

Checkout Validation

Checkout validation lets you enforce business rules at checkout. When conditions are met, a custom error message is shown and the order can be blocked. This is essential for enforcing minimum order values, product limits, customer eligibility, and geographic restrictions.

PowerX evaluates your validation rules when a customer attempts to complete checkout. If any rule’s conditions are met, the configured error message is displayed. With blockOnFailure enabled, the customer cannot place the order until the issue is resolved.

Validation uses Conditional Rules — define conditions and an error message that appears when those conditions are true.

SettingDescription
blockOnFailureWhen enabled, prevents the customer from placing the order
Error messageCustom text shown to the customer explaining why checkout is blocked
  1. Open PowerX from your Shopify admin.
  2. Click Create Campaign.
  3. Select Checkout Validation as the function type.
  4. Name your campaign (e.g., “Minimum Order $25”).

Add conditions that should trigger the validation error. You can use:

Set the logic between conditions:

  • Meets all conditions (AND) — every condition must be true to trigger the error.
  • Meets any conditions (OR) — at least one condition triggers the error.

Enter a clear, actionable error message. The customer will see this at checkout. Be specific about what they need to do to resolve the issue.

Good examples:

  • “Minimum order value is $25. Please add more items to your cart.”
  • “You can only purchase up to 5 units per product.”
  • “Please log in to purchase members-only products.”

Toggle blockOnFailure to Yes to prevent the order from being placed. If set to No, the error message is shown as a warning but the order can still proceed.

Review and toggle to Active.

Block checkout if the cart is under a minimum amount.

  • Condition: Cart subtotal < $25
  • Error: “Minimum order value is $25. Please add more items.”
  • Block: Yes

Limit customers to a specific number of units per product.

  • Condition: Line item quantity > 5
  • Error: “You can only purchase up to 5 units per product.”
  • Block: Yes

Require login for certain product collections.

  • Condition: Cart has items in collection “Members Only” AND Customer is not logged in
  • Error: “Please log in to purchase members-only products.”
  • Block: Yes

Block orders to specific regions for restricted products.

  • Condition: Cart has items with tag “restricted” AND Market is one of “International”
  • Error: “Some items in your cart cannot be shipped internationally.”
  • Block: Yes

Block unusually large orders.

  • Condition: Cart subtotal > $5,000
  • Error: “For orders over $5,000, please contact our sales team.”
  • Block: Yes

Validation not triggering?

  • Verify the campaign is Active.
  • Check that the conditions accurately describe the scenario you want to block.
  • Remember: conditions trigger the error when they are true.

Error message not showing?

  • Ensure blockOnFailure is enabled.
  • Check that all conditions in an AND group are being met simultaneously.