Skip to main content
All CollectionsOrdersRules & Tags
Block Checkout with Address Rules
Block Checkout with Address Rules

Learn how to prevent customers from completing checkout when certain rules are triggered

Ryan Haidinger avatar
Written by Ryan Haidinger
Updated over a week ago

Overview

This guide will walk you through setting up the ability to block checkout completely, if an address rule is triggered during checkout. The customer will need to correct the issue for the error to be removed, and then proceed with checkout. This feature is available for all Shopify Plans.

Today this functionality is available for the following rules:

  • PO Box

  • Character Limit

  • US Military Addresses

  • Non-contiguous US State

  • Non-latin character

  • Missing house number

  • Emoji

  • Custom Rules - see our guide here, to setup your custom block rules.


Getting Started

There are two steps to follow to ensure the selected Address Rules can begin to block checkout for customers who meet the requirements:

  1. Address Guard setup

  2. Shopify setup

Note: The Block Checkout functionality will not work until both steps are completed.


Step 1: Address Guard setup

To begin the process of setting up your Block Checkout rules, click on: Rules & Tags:

  • Select to enable the Address Rules for your store.

  • Click the checkbox "Block Checkout" under each Address Rule.

  • Click Save


Step 2: Shopify setup

Next, you'll need to enable the new Cart Validation Rule within your Shopify store. This is an important step, since the Block Checkout functionality will not work until this step is completed. This is a one-time process only:

  1. Within your Shopify store, click Settings on the bottom left.

  2. Click Checkout and scroll down to the bottom area called Checkout rules.

  3. Click Add Rule , and select Address Guard Cart Validation.

  4. Click the Cart Validation rule in the table and click Save, then click Turn on.

Note: Make sure the checkbox "Allow all customers to complete checkout" is not selected


How Address Rules block checkout

When the customer enters in a value that is based on an Address Rule that you've enabled for Block Checkout, a red error outline will appear around the checkout field, with your warning message showing below it. The customer will be prevented from completing checkout, until the issue is resolved.

Once the issue is resolved, the red outline will disappear and the customer can complete checkout.

Example of the PO Box Address Rule blocking checkout

Did this answer your question?