ThemeHigh
  • Plugins
  • Bundles
  • Resources
    Documentation Documentation Step-by-step guides to set up and help you understand our plugins with ease. Blog Blog Tips, insights, and ideas from the team to help you grow your e-commerce store.
  • Resources
    Documentation
    Documentation

    Step-by-step guides to set up and help you understand our plugins with ease.

    Blog
    Blog

    Tips, insights, and ideas from the team to help you grow your e-commerce store.

  • Support
  • Login
  • Getting Started
    • Plugin Installation
    • Overview
    • Date, Time & Related Field Settings
    • Import/Export Checkout Fields
    • Managing Checkout Fields
    • Managing Checkout Section
    • Set Display Rules
    • Set Repeat Rules
    • Price Fields & Types
    • User Meta Data & Order Meta Data
    • Display Custom Fields
  • Classic and Block Checkout Editor
    • Classic and Block Checkout Editor
    • Why Your Checkout Fields Aren’...
  • Block Checkout Field Editor
    • Block Checkout Field Editor
  • Advanced Settings
    • Custom Fields in Address Format
    • Enable Address Autofill
    • Configure Locale Override Settings
    • Add Custom Fields to CSV Export
    • Display Custom Fields In PDF Invoices & Packing Slips
    • Zapier Support
    • Country, State, Province based Conditions
    • WPML Compatibility
    • Backup & Import Settings
    • Enhanced Select (Select2) for Select Fields
    • Enable Wrap Custom Sections with Div
    • Enable Heading/Label Field
    • Enable Review Panel Conditions
    • Enable Inline Validation in Chec...
    • Enable Conditional Rules Based Payment & Shipping Methods
    • WPML String Translations...
    • Add a New Custom Validation Rule
    • Add a New Confirm Field Validator
  • For Developers
    • Hooks & References...
    • Display Rules: Use cases and mor...
    • Repeat Rules: More use cases and...
    • Based on Checkout Fields: Use ca...
    • Override HTML Content: Examples...
    • Compatibility with “WooCom...
  • Compatible Plugin & Themes
    • Plugins & Themes...
  • Frequently Asked Questions
    • Frequently Asked Questions...
  • How
    • How To Display Fields In Order D...
    • How To Customise The Shipping Se...
    • How To Add Custom Fields In The ...
    • How to Add Custom Price Fields o...
    • How To Add A New Section To The ...
    • How To Display Custom Fields In ...
    • How to Show/Hide Fields Based On...
    • How To Set Repeat Rules On The C...

Documentation/Checkout Field Editor for WooCommerce/How to Set Conditional Rules For WooCommerce Checkout Fields?

How to Set Conditional Rules For WooCommerce Checkout Fields?

Last updated on October 6, 2026

Display Rules allow you to show or hide checkout fields based on specific conditions. Using these rules, you can control when a field should appear on the checkout page based on cart, user roles and product, or values entered/selected in other checkout fields.
This helps you create a dynamic and personalized checkout experience for your customers.

General Instructions To Set Display Rules for a Field

Follow the steps below to set display rules for a checkout field:

  1. Navigate to WooCommerce → Checkout Form → Classic Checkout.
  2. Click Add Field to create a new field or Edit Field to modify an existing field.
  3. In the popup window, open the Display Rules tab.Classic checkout display rules for fields
  4. You will see two rule groups:
    • Based on cart, user roles and product: Conditions evaluated before the page loads, such as cart contents, shipping details, and user roles.
    • Based on Checkout Fields: Conditions evaluated after the page loads, based on values entered or selected in other checkout fields
  5. Click to add a new condition.
  6. Select the required condition type from the dropdown. Depending on the condition selected, additional fields will appear, such as a secondary dropdown to choose what to validate (e.g., Product, Category, Tag, Shipping Class, or Product Type) and a value field to specify the exact item. Fill in all the required fields to complete the condition.
  7. Use the AND / OR operator to combine multiple conditions if needed:
    • AND – All conditions must be true.
    • OR – At least one condition must be true.
  8. Click Save & Close  to apply the display rules.

Conditions Based on Cart

Display rule based on cart conditions
Cart-based conditions allow you to show or hide checkout fields and sections depending on:

  • The products added to the cart
  • The cart subtotal
  • The final cart total

These conditions are evaluated before the checkout page loads.

Available Conditions

Product-Based Conditions

  • Cart contains
  • Cart not contains
  • Cart only contains

Value-Based Conditions

  • Cart subtotal equals to
  • Cart subtotal greater than
  • Cart subtotal less than
  • Cart total equals to
  • Cart total greater than
  • Cart total less than

Product-Based Cart Conditions

display rule cart contains product
When using Cart contains, Cart not contains, or Cart only contains, you must:

  1. Select the condition type
  2. Choose what to validate (Product, Category, Tag, Shipping Class, or Product Type)
  3. Select/Type the specific value

Cart Contains

This condition is applied when at least one selected product exists in the cart. Cart contains can also be applied to category, tag, shipping class, or product type.

Example

Configuration:

  • Condition: Cart contains
  • Based On: Product
  • Selected product: Hoodie (select the exact product name with correct product ID.You can see the product ID  from the store products list)

Use Case:
If the product “Hoodie” is added to the cart, the checkout will display a field such as “Enter Custom Hoodie Text”.

Cart Not Contains

This condition is applied when the cart ‘Not contains’ (does not contain) the selected product (category, tag, shipping class, or product type) in the cart.

Example

Configuration:

  • Condition: Cart not contains
  • Based On: Category
  • Selected: Shirts

Use Case:

A store shows a “Shirt Size Guide Confirmation” field only when shirts are in the cart.
If the cart does not contain any products from the “Shirts” category, the field will be hidden.

Cart Only Contains

This condition is applied when the cart contains only the selected product or classification((category, tag, shipping class, or product type).

If any other product is added, the condition will not apply.

Example

Configuration:

  • Condition: Cart only contains
  • Based On: Category
  • Selected: Hoodies

Use Case:

Show a “Wholesale Hoodie Packaging Preference” field only when the cart contains hoodies exclusively.

Cart Value-Based Conditions

display rule cart subtotal equals to

These conditions are based on numeric values and do not require selecting Product, Category, or Tag.

Cart Subtotal Equals To

Checks whether the cart subtotal matches an exact amount.

Example

  • Cart subtotal equals to → 300

Use Case:

Display a “Gift Message” field when the cart subtotal equals $300 for a fixed-price bundle or gift card purchase.

Cart Subtotal Greater Than

Checks whether the subtotal exceeds a specified value.

Example

  • Cart subtotal greater than → 100

Use Case:

Display a “Gift Wrapping Option” field when the cart subtotal is greater than $100, offering premium services for higher-value purchases.

Cart Subtotal Less Than

Checks whether the subtotal is below a specified value.

Example

  • Cart subtotal less than → 50

Use Case:

Display a “Small Order Handling Fee Confirmation” field when the cart subtotal is less than $50.

Cart Total Equals To

display rule cart total equals to
Checks whether the final payable amount matches an exact value. This may include taxes and shipping depending on store configuration.

Example

  • Cart total equals to → 500

Use Case:
Display a “Coupon Eligibility Confirmation” checkbox when the cart total equals $500, confirming that the order qualifies for a fixed-value promotional discount available only at that exact total.

Cart Total Greater Than

Checks whether the final payable amount exceeds a specified value.

  • Cart total greater than → 500

Use Case:

Display a “Confirm High-Value Purchase” checkbox when the cart total equals $500, requiring customers to acknowledge the order before proceeding.

Cart Total Less Than

Checks whether the final payable amount is below a specified value.

Example

Cart total less than → 200

Use Case:
Display a “Free Shipping Not Available” notice when the cart total is less than $200, informing customers that they need to add more items to qualify for free shipping.

Conditions Based on Shipping Weight

display rule based on shipping weight

Shipping weight conditions allow you to show or hide checkout fields and sections based on the total shipping weight provided for the product.

These conditions are useful when handling bulky, heavy, or special-category products that require additional instructions or charges.

Unlike product-based cart conditions, shipping weight conditions do not include a secondary selection (such as Product or Category).

You only need to select the condition type and enter a numeric weight value.

Available Conditions

  • Shipping weight equals to
  • Shipping weight greater than
  • Shipping weight less than

After selecting a condition, enter the weight value (for example, 5, 10, 20, etc.). The unit (kg or lbs) depends on your store settings in WooCommerce.

How Shipping Weight Is Calculated

Shipping weight is calculated based on the weight assigned to individual products in your store and the quantities added to the cart.

To set the weight for a product, follow these steps:

  1. Go to Products → All Products
  2. Edit the product you want
  3. Scroll to Product Data → Shipping tab
  4. Enter the value in the Weight field
  5. Update the product

This weight is then used by shipping methods like flat rate (with rules), table rate shipping, or carrier integrations.

Shipping Weight Conditions

Shipping Weight Equals To

display rule shipping weight equals to

This checks whether the total shipping weight of the cart matches an exact value.

Example

Configuration:

    • Condition: Shipping weight equals to
    • Value: 10

Display a “Fragile Item Packaging Confirmation” checkbox when the total order weight equals 10 kg, ensuring the warehouse applies protective packaging only for qualifying shipments.

Shipping Weight Greater Than

Checks whether the total shipping weight exceeds a specified value.

Example

Configuration:

  • Condition: Shipping weight greater than
  • Value: 20

Use Case:

Display a “Additional Packaging Fee Acknowledgement” field when the total cart weight exceeds 20 kg, notifying customers about possible extra handling charges for safe delivery.

Shipping Weight Less Than

Checks whether the total shipping weight is below a specified value.

Example

Configuration:

  • Condition: Shipping weight less than
  • Value: 2

Use Case:
Display an “Eco-Friendly Packaging Preference” checkbox when the total cart weight is under 2 kg, allowing customers to opt for reduced packaging materials for small shipments.

Note:

  • The weight unit (kg or lbs) depends on your WooCommerce store configuration.
  • Ensure that all products have accurate weight values configured.
  • If a product does not have weight assigned, shipping weight conditions may not behave as expected.

Conditions Based on User Role

conditions based on user role
User role–based conditions allow you to show or hide checkout fields depending on the role of the logged-in user.
These conditions are evaluated before the checkout page loads, since the user role is already known at that stage. This feature is useful when you want to customize the checkout experience differently for customers, wholesale buyers, or shop managers.

Available Conditions

  • User role equal to
  • User role not equal to

Available roles in WooCommerce typically include:

  • Administrator
  • Editor
  • Author
  • Contributor
  • Subscriber
  • Customer
  • Shop Manager

You can select one or multiple roles while configuring the condition.

Note:

  • These conditions apply only to logged-in users.
  • Guest users (not logged in) will not match any specific role.
  • If multiple roles are selected, the rule will apply if any selected role matches.

User Role Equal To

display rule user role equals to
The field will be shown or hidden only if the logged-in user has the selected role.

Example:
Customer-Specific Delivery Instructions

Configuration:

Condition: User role equal to

Selected Role: Customer

Use Case:
Display a “Delivery Instructions” field only for logged-in customers during checkout. This field remains hidden for administrators, shop managers, and other user roles, allowing store owners to collect additional delivery preferences only from actual customers placing orders.

User Role Not Equal To

The field will be shown or hidden for all users except the selected role(s).

Example:

Hide Internal Approval Field from Customers

Configuration:

Condition: User role not equal to

Selected Role: Customer

Use Case:

Display an “Internal Order Approval” field for all logged-in users except customers. This allows administrators and shop managers to add internal checkout notes during manual order processing, while keeping the field hidden from regular customers.

Conditions Based On Product Variations

display rule based on variable product
You can configure conditional rules for specific product variations (for example, a particular color or size of a product).

To set this up:

  1. Select any primary cart condition:
    • Cart contains
    • Cart not contains
    • Cart only contains
  2. In the second dropdown, select Product.
  3. In the third field, select the corresponding product along with the required Variation ID using our plugin.
  4. Save & Close rule configuration

The rule will then apply only to that specific product variation, not the entire product.

Example:
Color Variation Based Gift Message

Configuration:

Condition: Cart contains

Product: Hoodie – Black Color Variation (specific variation)

Use Case:

Display a “Gift Wrap Message” field only when the customer adds the Black color variation of the Hoodie to the cart. Customers purchasing other color variations will not see this checkout field.

Conditions Based On Product Categories

Display rules based on cart contains
Category-based conditions allow you to show or hide checkout fields depending on the product categories present in the cart.

This helps you apply rules to entire collections (e.g., Men, Women, Accessories, Sale) instead of configuring rules for individual products.

WooCommerce Product Categories

In WooCommerce, every product is assigned to a category, making category-based conditions reliable and widely used. For more details on managing product categories, refer to the WooCommerce Product Categories Documentation.

Available Category Conditions

When configuring rules based on Category, the following primary conditions are available:

  • Cart contains
  • Cart not contains
  • Cart only contains

After selecting one of the above, choose Category in the second dropdown and then select the desired category and save the display rule.

Cart Contains → Category

The rule applies if at least one product from the selected category is present in the cart.

Example:

Gift Option for Accessories Category

Configuration:

  • Condition: Cart contains
  • Based On: Category
  • Selected Category: Accessories

Scenario:
You sell scarves, belts, and handbags under the Accessories category.

Result:
Show a “Add Gift Wrap for Accessories” checkbox when the cart contains any accessory item.

Cart Not Contains → Category

The rule applies only if the selected category is NOT present in the cart.

Example:
Warranty Option Restriction

Configuration:

Condition: Cart not contains

Based On: Category

Selected Category: Accessories

Scenario:

Extended warranty is only applicable to main products, not accessories.

Result:

Show the “Extended Warranty” option only when accessory products are not in the cart.

Cart Only Contains → Category

The rule applies only if all items in the cart belong to the selected category. If any product from another category is added, the rule will not trigger.

Example:
Accessories-Only Checkout Note

Configuration:

Condition: Cart only contains

Based On: Category

Selected Category: Accessories

Scenario:

No special handling instructions are required for accessory-only orders.

Result:
Hide the “Order Handling Instructions” field when the cart contains only Accessories products

Conditions Based On Product Tags

display rule based cart contains tag
Product tag–based conditions allow you to show or hide checkout fields depending on the product tags assigned to items in the cart.

Tags are useful for creating flexible groupings across different categories. Unlike categories, a product can have multiple tags without affecting its primary classification.

WooCommerce Product Tags

In WooCommerce, product tags are used to group products based on shared features, making them ideal for promotions, collections, seasonal campaigns, or any special attributes that span multiple categories.

For more details on managing product tags, refer to the WooCommerce Product Tags Documentation.

Available Tag Conditions

When configuring rules based on Product Tag, the following primary conditions are available:

  • Cart contains
  • Cart not contains
  • Cart only contains

After selecting one of the above, choose Tag in the second dropdown and then select the required product tag.

Cart Contains → Tag

The rule applies if at least one product with the selected tag is present in the cart.

Example:
Limited edition notice

You assign a tag: Limited Edition

Configuration:

  • Condition: Cart contains
  • Based On: Tag
  • Selected Tag: Limited Edition

Result:
Display a “Limited Edition – No Returns Policy” acknowledgment field when a tagged product is added to the cart.

Cart Not Contains → Tag

The rule applies only if the selected tag is NOT present in the cart.

Example:
Delivery Instruction Field for Regular Orders

Configuration:

Condition: Cart not contains

Based On: Tag

Selected Tag: Express Eligible

Scenario:

Express eligible products are handled through a priority shipping workflow and do not require additional delivery instructions.

Result:
Show a checkout field called “Delivery Instructions” only when the cart does not contain any products tagged as Express Eligible.

Cart Only Contains → Tag

The rule applies only if all products in the cart have the selected tag. If any product without the tag is added, the condition will not trigger.

Example:
Order Review Confirmation Field

Configuration:

Condition: Cart only contains

Based On: Tag

Selected Tag: Fragile

Scenario:

Fragile items require special handling, and the store wants customers to confirm instructions only when the entire order contains fragile products.

Result:

Show a checkout field called “Handling Confirmation” only when all products in the cart have the Fragile tag.

When Should You Use Tags Instead of Categories?

Use tags when:

  • You want flexible grouping across multiple categories.
  • Products belong to different departments but share a campaign (e.g., “Black Friday”).
  • You need to target seasonal or promotional collections.
  • You want more precise control without restructuring categories.

Example Tag Ideas for a Clothing Store

  • Limited Edition
  • Best Seller
  • Summer Collection
  • Winter Wear
  • Eco-Friendly
  • New Arrival
  • Clearance

Conditions Based On Product Type

display rule based on product type
Product Type–based conditions allow you to show or hide checkout fields depending on whether the cart contains
Simple Products or Variable Products.

WooCommerce supports several product types, such as Grouped, External/Affiliate, Virtual, Downloadable, Subscription, and Bookable products. In this plugin, conditional rules based on Product Type are available for the two core product types:

  • Simple Product
  • Variable Product

These two types form the foundation of most WooCommerce stores.

What Is a Simple Product?

A Simple Product is a standalone item without variations. It has no selectable options like size or color, has a single regular price (and optional sale price), and may include stock management, SKU, weight, and shipping details.

Examples:

  • Leather Belt
  • Wool Scarf
  • Baseball Cap

Customers can only choose the quantity, there are no variation options.

What Is a Variable Product?

A Variable Product allows customers to choose from different variations such as size, color, or style.

Each variation:

  • Can have its own price
  • Can have its own SKU
  • Can have its own stock level
  • Can have its own weight

Examples:

  • Hoodie (Sizes: S, M, L; Colors: Red, Blue, Black)
  • Short-sleeve Shirt (Sizes: XS–XL)

Each size/color combination is a variation under one parent product. 

Product Type Conditions

Product Type conditions can be used with the following primary cart rules:

  • Cart contains
  • Cart not contains
  • Cart only contains

After selecting one of these, choose Product Type and then select either:

  • Simple Product
  • Variable Product

The rule will apply to all products of the selected type.

Cart Contains → Product Type

The rule applies if the cart includes at least one product of the selected type.

Use Case:
Exchange Policy Confirmation for Fashion Items

Configuration:

Condition: Cart contains

Based On: Product Type

Selected: Variable Product

Scenario:

Your apparel store offers clothing items with multiple size options such as Dresses, kurtas, and t-shirts configured as variable products.

Result:
Display an “I Have Reviewed the Size Chart Before Ordering” checkbox during checkout whenever a variable product is present in the cart.

Cart Not Contains → Product Type

The rule applies only if the selected product type is not present in the cart.

Use Case:
Hide Size Guide Agreement for Accessories

Configuration:

Condition: Cart not contains

Based On: Product Type

Selected: Variable Product

Scenario:

Your fashion store sells accessories such as  belts, caps, etc as simple products without size variations.

Result:

Hide the “I Have Checked the Size Guide” checkbox when the cart does not contain any variable products.

Cart Only Contains → Product Type

The rule applies only if all products in the cart are of the selected type. If a different product type is added, the rule will not trigger.

Use Case:
Gift Wrap Checkout for Accessories

Configuration:

Condition: Cart only contains

Based On: Product Type

Selected: Simple Product

Scenario:

Customers purchasing only simple fashion accessories such as,wallets, and keychains are often buying gifts.

Result:

Display a “Gift Wrap This Order” checkbox only when the cart contains exclusively simple products.

Conditions Based On Shipping Class

display rule based on shipping class
Shipping class–based conditions allow you to show or hide checkout fields depending on the shipping class assigned to products in the cart.

Shipping classes are typically used to group products with similar shipping requirements, such as heavy items, fragile products, or lightweight accessories.

Available Primary Conditions

Shipping Class conditions can be used with:

  • Cart contains
  • Cart not contains
  • Cart only contains

After selecting one of these, choose Shipping Class and enter the shipping class slug in the value(Third) field.

Note: You must enter the exact shipping class slug (not just the name).

How to Find the Shipping Class Slug

To use this condition correctly, you need the shipping class slug assigned to the product.

Step 1: Check the Shipping Class on the Product

  1. Go to Products → All Products.
  2. Edit a Product from the list.
  3. Scroll to the Product Data section.
  4. Click the Shipping tab.
  5. Locate the assigned Shipping Class.
  6. Next, navigate to WooCommerce → Settings → Shipping → Classes.
  7. Find the corresponding Shipping Class name in the list.
  8. The Shipping Class Slug will be displayed beside the Shipping Class name.

For more details on creating and managing shipping classes, please refer to the WooCommerce Shipping Class documentation.

Cart Contains → Shipping Class

The rule applies if at least one product in the cart belongs to the specified shipping class.

Example:
Heavy Winter Collection

You create a shipping class:

  • Name: Heavy Items
  • Slug: heavy-items

Assigned to winter coats and thick jackets.

Configuration:

  • Condition: Cart contains
  • Based On: Shipping Class
  • Value: heavy-items

Result:
Display a “Heavy Item Handling Notice” field when bulky winter jackets are added to the cart.

Cart Not Contains → Shipping Class

The rule applies only if the specified shipping class is not present in the cart.

Example:
Express Shipping Message

Shipping class:

  • Name: Custom Products
  • Slug: custom-products

Configuration:

  • Condition: Cart not contains
  • Based On: Shipping Class
  • Value: custom-products

Scenario:

Customized products require additional preparation time before shipping.

Result:
Show an “Express Shipping Available” message only when Custom Products are not in the cart.

Cart Only Contains → Shipping Class

The rule applies only if all products in the cart belong to the specified shipping class.

If even one product from a different shipping class is added, the rule will not trigger.

Example:
Lightweight Accessories Orders

Shipping class:

  • Name: Lightweight
  • Slug: lightweight

Assigned to scarves, caps, and socks.

Configuration:

  • Condition: Cart only contains
  • Based On: Shipping Class
  • Value: lightweight

Result:
Hide bulky item warnings and heavy-shipping notices when the cart contains only lightweight products.

Conditions Based On Checkout Field’s Value

This option allows you to display a field based on the value entered or selected in another checkout field.

Unlike cart or product-based conditions, this setting creates dependencies between checkout fields. A field will appear only when the defined condition related to another field is satisfied.

How to Configure

Step 1: Under Display Rules, navigate to:

Based on Checkout Fields

Then select:

Show/Hide field if all below conditions are met

Step 2: Select the Source Field

Choose the field whose value will control the display behavior.

Available fields include:

Fields in the Billing Details, Fields in the Shipping Details, fields in the Additional Details and Other Custom Fields

Step 3: Select an Operator

Choose how the selected field’s value should be evaluated.

Step 4: Enter the Value

If the selected operator requires a value (e.g., Value equals to, Contains, Greater than), enter the required value in the Value field.

For operators like Is empty, Is checked, etc., no value is required.

Available Operators and Respective Conditions

Empty Value Conditions

  • Is empty – Triggers when the selected field has no value.
  • Is not empty – Triggers when the selected field contains any value.

For all input Field Types Text, Telephone etc.

display rule empty value
Use Cases:

If the “Primary Contact” field is left empty, display a “Secondary Contact Number” field to ensure the store can still reach the customer.

Value Comparison Conditions

These operators compare the actual value selected or entered in a field.

For: Select, Radio, Number, Text, Multi-Select, Checkbox Group etc

These operators compare the actual value selected or entered in a field.

Display rule value equals to

  • Value equals to – Triggers when the value exactly matches the specified input.

Condition:
Value equals to

Field Type:
Radio (Gift Option)

Scenario:
Customers can choose whether the order is a gift during checkout.

Result:
If the customer selects “Yes” for the gift option, display a “Gift Message” text field so they can add a personalized note.

  • Value not equals to – Triggers when the value does not match the specified input.

Use Case:
Show Company Name for Non-Residential Orders

Condition: Value not equals to

Field Type: Select (Customer Type)

Scenario:

Customers choose whether they are ordering as “Individual” or “Business”.

Result:

If the selected value is not “Individual”, display a “Company Name” field for business billing details.

  • Value in – Triggers when the value matches one of multiple specified values.

Use Case: Show Extra Phone Field for Certain Order Types

Condition: Value in

Field Type: Select (Order Type)

Scenario:

Customers select the type of order during checkout.

Result:

If the selected value is Bulk Order, Gift Order, or Express Order, display an “Additional Phone Number” field. For all other order types, the field remains hidden.

  • Value greater than – Triggers when a numeric value exceeds the specified number.

Use Case:
Show Elevator Requirement Field for High Floors

Condition:
Value greater than

Field Type:
Number (Checkout Field: “Floor Number”)

Scenario:

Customers enter their floor number during checkout for home delivery.

Result:

If the “Floor Number” is greater than 4, display an “Is Elevator Available?” checkbox. For lower floors, the field remains hidden.

  • Value less than – Triggers when a numeric value is lower than the specified number.

Use Case:
Show Delivery Note for Short Address Input

Condition:
Value less than

Field Type:
Text (Checkout Field: “Address Detail Length”)

Scenario:
Customers enter a short address description in a custom checkout text field.

Result:
If the entered text is less than 10 characters, display a “Please add more delivery details” message field. If it is longer, nothing is shown.

  • Value starts with – Triggers when the value begins with specific text.

Condition:
Value starts with

Field Type:
Text (Checkout Field: “Billing Email”)

Scenario:
Customers enter their billing email during checkout.

Result:
If the email starts with “info” or “sales”, display a “Organization Name” field for business billing details. Otherwise, the field remains hidden.

  • Value not starts with – Triggers when the value does not begin with specific text.

Use Case:
Show Additional Contact for Non-Business Emails

Condition:
Value not starts with

Field Type:
Text (Checkout Field: “Billing Email”)

Scenario:
Customers enter their billing email during checkout.

Result:
If the email does not start with “info”, “support”, or “sales”, display an “Alternate Contact Number” field.

  • Contains – Triggers when the value includes specific text.

Use Case:
Show Delivery Instructions for Selected Address Type

Condition:
Contains

Field Type:
Select (Checkout Field: “Address Type”)

Scenario:Customers choose their address type during checkout (e.g., Home, Office, Apartment).

Result:
If the selected value contains “Apartment”, display a “Delivery Instructions” field for additional location details.

  • Not contains – Triggers when the value does not include specific text.

Use Case:
Show Company Name for Non-Corporate Orders

Condition:
Not contains

Field Type:
Select (Checkout Field: “Customer Type”)

Scenario:
Customers select order type (Individual, Business, Corporate).

Result:
If the selected value does not contain “Corporate”, display a “Company Name” field only when required for special billing cases.

Note:
If you are setting display rules based on Select, Multi-Select, Checkbox, Checkbox Group, or Radio fields, you must use the Option Value in the third field inside the Display Rules tab. The Option Value is used for storing data in the database, while the Option Text is used only for displaying options on the checkout page. Therefore, ensure that each option has a unique Option Value, and always use this value when creating display rules.

Display rule value equals to opt 1

Date-Based Conditions

display rule date quals to
(Applicable when the selected field is a date field, )

  • Date equals to

Use Case:
Show Delivery Confirmation for Specific Delivery Date

Condition:
Date equals to

Field Type:
Date (Checkout Field: “Preferred Delivery Date”)

Scenario:

Customers select a preferred delivery date during WooCommerce checkout.

Result:

If the selected date equals 25th December, display a message:

“Delivery on this date may be delayed due to holiday rush. Please confirm your order.

  • Date not equals to

Use Case:
Show Standard Delivery Options for Non-Holiday Dates

Condition:
Date not equals to

Field Type: Date (Checkout Field: “Preferred Delivery Date”)

Scenario:

Customers choose a delivery date during checkout.

Result:

If the selected date is not 1st January, display standard delivery options. If it is 1st January, show a holiday notice instead.

  • Date after

Use Case:
Show Pre-Order Handling for Future Dates

Condition:
Date after

Field Type:
Date (Checkout Field: “Delivery Date”)

Scenario:

Customers book items in advance.

Result:

If the selected date is after today, display a message:

“This is treated as a pre-order and will be shipped on schedule

  • Date before

Use Case:
Show Limited Slot Warning for Past Cutoff Orders

Condition:
Date before

Field Type: Date (Checkout Field: “Delivery Date”)

Scenario:

Customers try to select an early or near-immediate delivery date.

Result:

If the selected date is before the next available delivery slot, display a message:

“Selected date may not be available for delivery.

  • Day equals to (e.g., Monday)


Display rule day equals to
Use Case: Show Monday Processing Update

Condition:
Day equals to

Field Type: Date (Checkout Field: “Preferred Delivery Date”)

Scenario:

Customers choose a delivery date during checkout.

Result:

If the selected day equals Monday, display a message:

“Orders placed on Monday may experience high processing volume.

  • Day not equals to

Use Case:
Show Customer Support Availability

Condition: Day not equals to

Field Type: Date (Checkout Field: “Delivery Date”)

Scenario:

Customers select a delivery date.

Result:

If the selected day is not Sunday, display a message:

“Customer support is available during standard working days.

Note:
For all date-based conditions such as Date equals to, Date not equals to, Date after, and Date before, the correct date format must be used in the display rule to ensure proper condition evaluation. If you are using a jQuery UI Date Picker, the format should be DD/MM/YYYY (e.g., 18/01/2026). For default Date fields, the format should be YYYY/MM/DD (e.g., 2026/01/18).

When setting a rule based on the day of the week, enter the value using the first three letters of the day in uppercase after selecting the condition (for example, use MON instead of Monday).

Checkbox Conditions

Display rule based on checkbox

  • Is checked – Triggers when the checkbox is selected.

Use Case:
Show Gift Message When Gift Checkbox is Selected

Condition:
Is checked

Field Type:
Checkbox (Checkout Field: “This is a Gift”)

Scenario:

Customers can tick a checkbox during checkout to mark their order as a gift.

Result:

When the checkbox “This is a Gift” is checked, display a “Gift Message” text field so the customer can add a personalized note.

  • Is not checked – Triggers when the checkbox is not selected.

Use Case:
Show Standard Packaging Message When Eco Packaging is Not Selected

Condition: Is not checked

Field Type:
Checkbox (Checkout Field: “Eco-Friendly Packaging”)

Scenario:

Customers can choose eco-friendly packaging during WooCommerce checkout.

Result:

When the checkbox “Eco-Friendly Packaging” is not selected, display a message:

“Your order will be packed using standard packaging.

Advanced Condition

Match expression
Triggers when the value matches a specific pattern (regular expression, email :@gmail.com).
This is typically used for advanced validation scenarios such as custom ID formats or  structured input matching.

Display rule based on match expression

Use Case:
Validate or trigger rules based on patterns instead of exact values.

Example (Email):

Show a message if the email matches the expression .*@gmail\.com

→ Trigger when a customer uses a Gmail address.

Conditions for Country Field

By default, conditional display rules cannot be applied to the Country field. To use conditional logic with the Country field, you must first enable this option.

How to Enable Conditional Rules for Country Field

Display based on country field

  1. Navigate to the Advanced Settings tab.
  2. Go to the General → Other Settings section.
  3. Enable the option:
    ‘Enable display of Country field based on Conditional rules.’
  4. Click Save Changes.

Once enabled, you can apply display rules to the Country field just like any other checkout field.

Use Case: Hide Country Field for Local-Only Store

A store sells and ships products only within the United States.

Since all orders are domestic, the store owner wants to:

  • Automatically set the country to United States
  • Hide the Country field from customers
  • Display the Country field only if “Ship to a different address” is checked

The Country field stays hidden for normal orders, making checkout faster and simpler. It appears only when customers enter a separate shipping address.

Note: It is recommended not to remove the default WooCommerce Country field, as doing so may cause unexpected issues or errors on your website.

If you are selling your products only to a few countries and you don’t want to let the customer select other countries from the checkout page. Instead of deleting the default country field, you can achieve your requirement by navigating to:
WooCommerce>>Settings>>General>>General options>>Selling location(s), select the option Sell to specific countries and select the Countries as per your requirement.

Conditions for the State / Province Field

By default, conditional rules cannot be applied to the State / Province field.
To configure display rules for this field, you must enable it first.

How to Enable Conditional Rules for State / Province Field

Display rule based on state/province

  1. Navigate to the Advanced Settings tab.
  2. Go to the General →Other Settings section.
  3. Enable the option:
    ‘Enable display of State / Province field based on Conditional rules.’
  4. Click Save changes.

Once enabled, you can apply conditional logic to the State field like any other checkout field.

Use Case: Show State Field Only for Specific Countries

Scenario:

A WooCommerce clothing store ships internationally, but courier services in the United States require state information for accurate delivery and tax calculation.

Condition Setup:

Trigger Field: Country

Operator: Value equal to

Value: United States

Action: Show State field

Result:

When customers select the United States during checkout, the State field appears so they can choose their state. For other countries where state information is not required, the field remains hidden.

This keeps the checkout clean and prevents customers from filling irrelevant information.

Get the plugin

On this page

  • General Instructions To Set Display Rules for a Field
  • Conditions Based on Cart
  • Available Conditions
  • Product-Based Conditions
  • Value-Based Conditions
  • Product-Based Cart Conditions
  • Cart Contains
  • Cart Not Contains
  • Cart Only Contains
  • Cart Value-Based Conditions
  • Cart Subtotal Equals To
  • Cart Subtotal Greater Than
  • Cart Subtotal Less Than
  • Cart Total Equals To
  • Cart Total Greater Than
  • Cart Total Less Than
  • Conditions Based on Shipping Weight
  • Available Conditions
  • How Shipping Weight Is Calculated
  • Shipping Weight Conditions
  • Shipping Weight Equals To
  • Shipping Weight Greater Than
  • Shipping Weight Less Than
  • Conditions Based on User Role
  • Available Conditions
  • User Role Equal To
  • User Role Not Equal To
  • Conditions Based On Product Variations
  • Conditions Based On Product Categories
  • WooCommerce Product Categories
  • Available Category Conditions
  • Cart Contains → Category
  • Cart Not Contains → Category
  • Cart Only Contains → Category
  • Conditions Based On Product Tags
  • WooCommerce Product Tags
  • Available Tag Conditions
  • Cart Contains → Tag
  • Cart Not Contains → Tag
  • Cart Only Contains → Tag
  • When Should You Use Tags Instead of Categories?
  • Example Tag Ideas for a Clothing Store
  • Conditions Based On Product Type
  • What Is a Simple Product?
  • What Is a Variable Product?
  • Product Type Conditions
  • Cart Contains → Product Type
  • Cart Not Contains → Product Type
  • Cart Only Contains → Product Type
  • Conditions Based On Shipping Class
  • Available Primary Conditions
  • How to Find the Shipping Class Slug
  • Step 1: Check the Shipping Class on the Product
  • Cart Contains → Shipping Class
  • Cart Not Contains → Shipping Class
  • Cart Only Contains → Shipping Class
  • Conditions Based On Checkout Field’s Value
  • How to Configure
  • Step 1: Under Display Rules, navigate to:
  • Step 2: Select the Source Field
  • Step 3: Select an Operator
  • Step 4: Enter the Value
  • Available Operators and Respective Conditions
  • Empty Value Conditions
  • Value Comparison Conditions
  • Date-Based Conditions
  • Checkbox Conditions
  • Advanced Condition
  • Conditions for Country Field
  • How to Enable Conditional Rules for Country Field
  • Conditions for the State / Province Field
  • How to Enable Conditional Rules for State / Province Field

What's new

  • Added a custom file upload button property for the File upload field type.
  • Alert on selecting display position of sections as before/after terms and conditions.
  • Added Woocommerce 6.8.2 compatibility.

Highlights

  • 24 custom field types with file upload.
  • Create additional sections.
  • Display sections and Fields Conditionally.
  • Display custom fields at 14 different positions.
  • Create confirm field validators.
  • Price fields with a set of price types.
  • Repeat fields and sections based on specific conditions.
  • WPML Compatibility.
  • Import & Export fields and sections.

This article posted in Checkout Field Editor for WooCommerce, Getting Started, Pro Documentation

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

ThemeHigh

Driven by a deep passion for crafting thoughtful solutions, we aim to make WooCommerce store customization an easy and enjoyable experience for our users.

© 2026 ThemeHigh. All rights reserved.

Terms and conditions, features, support, pricing, and service options subject to change without notice.