Conditional Rendering

Conditional rendering is one of the most powerful features of Checkout Components. It allows you to show or hide components based on various cart and customer conditions. This can be used to create a more personalised shopping experience for your customers, and increase your average order value.

Below you will find an overview of the different conditional rendering options available for each type of component in Checkout Components.


    All Components (Except Line Item)

  • Name
    Cart attribute
    Description
    Specify a cart attribute to look for on the customers cart.
  • Supports

    - Contains

    - Does not contain

    - Is equal to

    - Is not equal to

  • Name
    Cart value
    Description
    Specify a cart value to look for on the customers cart.
  • Supports

    - Is less than

    - Is greater than

  • Name
    Customer
    Description
    Specify what type of customers to target.
  • Supports

    - is guest

    - is not guest

  • Name
    Customer ISO Code
    Description
    Specify a three letter country code that a customer must be in, or not in.
  • Supports

    - Contains

    - Does not contain

    - Is equal to

    - Is not equal to

  • Name
    Customer Email
    Description
    Specify an email address or domain to target
  • Supports

    - Contains

    - Does not contain

    - Is equal to

    - Is not equal to

  • Name
    Product collection handle
    Description
    Look for products in the customers cart that are in a specific collection.
  • Supports

    - Contains

    - Does not contain

    - Is equal to

    - Is not equal to

  • Name
    Product tag
    Description
    Look for products in the customers cart that have a certain product tag.
  • Supports

    - Contains

    - Does not contain

    - Is equal to

    - Is not equal to

  • Name
    Shipping Address
    Description
    Look for a substring in the customers shipping address, or an exact match.
  • Supports

    - Contains

    - Does not contain

    - Is equal to

    - Is not equal to

  • Name
    Shipping Country
    Description
    Identify the shipping address country.
  • Supports

    - Contains

    - Does not contain

    - Is equal to

    - Is not equal to

  • Name
    Shipping Postcode
    Description
    Identify the shipping address postcode.
  • Supports

    - Contains

    - Does not contain

    - Is equal to

    - Is not equal to

  • Name
    Shipping State
    Description
    Identify the shipping address state.
  • Supports

    - Contains

    - Does not contain

    - Is equal to

    - Is not equal to

  • Name
    Shipping Method
    Description
    Identify the customers selected shipping method.
  • Supports

    - Contains

    - Does not contain

    - Is equal to

    - Is not equal to

    Line Item Components

  • Name
    Product name
    Description
    Does the line items product name meet the specified criteria.
  • Supports

    - Contains

    - Does not contain

    - Is equal to

    - Is not equal to

  • Name
    Product Collection Handle
    Description
    Does the line items product appear in a specific collection and meet the specified criteria.
  • Supports

    - Contains

    - Does not contain

    - Is equal to

    - Is not equal to

  • Name
    Product ID
    Description
    Does the line items product ID meet the specified criteria.
  • Supports

    - Contains

    - Does not contain

    - Is equal to

    - Is not equal to

  • Name
    Product tag
    Description
    Does the line items product tag meet the specified criteria.
  • Supports

    - Contains

    - Does not contain

    - Is equal to

    - Is not equal to

  • Name
    Product Vendor
    Description
    Does the line items product vendor meet the specified criteria.
  • Supports

    - Contains

    - Does not contain

    - Is equal to

    - Is not equal to

  • Name
    Line item property key
    Description
    Does the line item have a line item property with the specified key (or opposite).
  • Supports

    - Contains

    - Does not contain

    - Is equal to

    - Is not equal to

  • Name
    Line item property value
    Description
    Does the line item have a line item property with the specified value (or opposite).
  • Supports

    - Contains

    - Does not contain

    - Is equal to

    - Is not equal to