Cart groups
Last updated
Last updated
Cart groups allow you to create a group based on conditions that you can set up through our easy-to-use rule builder interface.
For each group that you create, the following computed variables are available to you in the rule builder interface under the Rules section.
Total cart amount → Cart amount for the group, inclusive of discounts
Subtotal cart amount → Cart amount for the group, exclusive of discounts
Line count → Count of line items
Quantity sum → Total sum of quantity of items matching cart group rules.
Unique product count → Unique products in the user's cart matching the group rules.
Unique variant count → Unique variants in the user's cart matching the group rules.
You have the following variables available to you to define a cart group. You can combine these rules using AND / OR logic.
Cart Attribute
An attribute of the cart
Cart Market
The market associated with the cart
Customer logged in
Whether the customer is authenticated
Customer is B2B
Whether the customer is a business customer (plus only)
Customer Spent
The total amount spent by the customer
Customer Orders Count
The number of orders placed by the customer
Customer ID
The IDs associated with the customer
Customer Tags
The tags associated with the customer
Customer Company
The company ID associated with the customer
Line Attribute
An attribute of the line item
Line Quantity
The quantity of the line item
Line Subtotal
The total cost of the cart line item (price x quantity)
Variant ID
The variant IDs associated with the line item
Product ID
Shopify Product ID of the item in the user's cart
Product Tag
Product tag of the item as set up in the admin UI.
Product Collection
The collections associated with the line item
Selling Plan Allocation
Whether the line item has a selling plan