> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.omegatheme.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# 🛒Add a new Checkout Validation rule


# Overview

Checkout validation rules are essential for ensuring a secure and efficient online shopping experience. These rules help you validate critical checkout fields, manage transaction timings, and customize payment and shipping methods based on specific conditions.

Currently, the app supports validation using the following criteria:
* Cart Conditions
* Customer Information
* Date and Time
* Shipping Address
* Product Information
* Market

# Instruction to set up rule

### Step 1: Create a new rule

* From your Shopify admin dashboard, navigate to Blockify checkout

![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/image_1ccl1na.png)


* On the Rule list, click on **Create rule** button then select Checkout validation rule

![](https://storage.crisp.chat/users/helpdesk/website/8383e5404a31c000/2_14hr9tt.png)

![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/image_1ae28vv.png)

### Step 2: Select the rule condition

Choose an option as a validation condition of the rule.

With Checkout validation rule, we available these conditions:

* Cart: Cart subtotal, Cart total, Cart quantity, Cart has discount, Cart weight, Cart has subscription item
* Customer: Email address, Phone number, Customer name, Customer tag, Customer currency, Total spent, Customer is logged in, Collection
* Product Information: Product, Product quantity, Product tag, Product is gift card, Product quantity of collection, Product SKU, Product vendor
* Address: Shipping address line 1, Shipping address line 2, Delivery phone number, Delivery company, PO Box Address, Missing House, Zip code, Country, Market, Province code
* Date of the time: Day of the week, Time of the day, Day of the week and time of the day.
* Market: Shopify Market

![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/image_awy787.png)
![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/image_1wzl1xp.png =636xauto)

### Step 3: Customize your action when the condition is match:
When a rule is triggered, Blockify Checkout displays a message on the checkout page to inform the customer about the validation result. There are **two message behaviors** you can choose from, depending on how strictly you want the rule to be enforced.

![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/image_rp069l.png =667xauto)
### **1. Block checkout and show error message**
When this option is enabled, Blockify prevents the customer from completing the checkout if the rule conditions are met.
* The checkout flow is **blocked** until the issue is resolved.
* An **error message** will be shown at the selected position on the checkout page.
* Merchants can customize the message (up to 255 characters) to explain the reason and guide the customer on what to do next.
**Use cases**:
* Fraud detection
* Minimum order requirements
* Restricted locations / shipping limitations
* Product-level purchase restrictions
Example messages:
* “Order cannot be placed due to suspected fraud.”
* “Your order does not meet the minimum requirements for delivery.”

### **2. Show warning message without blocking checkout**
This option displays a **non-blocking notification** when the rule is triggered.
* The message appears at the selected position on the checkout page.
* The customer can still complete the checkout normally.
* Ideal for providing helpful warnings or recommendations instead of enforcing restrictions.
**Use cases**:
* Stock warnings
* Shipping delays or exceptions
* Informational prompts
* Non-critical validation
Example messages:
* “We currently ship this item later than usual due to high demand.”
* “This product may have additional delivery fees in your region.”

### **3. Translate your Error Message**
**Overview:**
Error Message Translation allows merchants to display checkout error messages in the customer’s language instead of the default store language. This helps reduce confusion during checkout and improves the overall customer experience for international shoppers.
The feature automatically translates supported checkout error messages based on the language shown on the storefront.
**How translation work: **
* The app detects the customer’s checkout language.
* When a checkout error occurs (e.g. validation rules, discount rejection), the error message is displayed in the corresponding language if a translation is available.
**Settings up Translated error message**
1. Open Error message translation card and select a language from the language list
2. Select the countries that apply the translation
3. Review and edit the translated messages.
4. Save your translation
![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/image_ejoh5d.png)
![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/image_1f60i41.png)
*Note: Afghanistan appears unique because multiple languages are mapped to the same country. Shopify supports only one checkout language per country/market, so only one Afghanistan language can be active at a time.*

### **4. **Select the position in which the message is displayed.

![](https://storage.crisp.chat/users/helpdesk/website/8383e5404a31c000/11_1wt89s4.png)