How to set up Auto add-to-cart

Overview

Auto add-to-cart adds products to the cart by itself when the cart meets the conditions you set. For example, it can add a free gift when the cart value reaches $100, or a free sample on the shopper's first visit.

You set this up with rules. Each rule has conditions, the products to add with their price, how the products behave in the cart, and when the rule is available.

Before you start

Steps

1. Create a rule

  1. In the app menu, click Auto add-to-cart.
  2. Click Create rule.
  3. The rule gets a name like "Auto add-to-cart 1". To rename it, click the pencil icon next to the name. Shoppers do not see this name.

A new rule is Active. Click the status badge next to the name to switch between Active and Inactive.

Auto add-to-cart rule editor with the rule name, the Active badge, the Conditions card with a Cart value condition, and the Rule summary

The Rule summary on the right describes the rule in plain words while you edit it.

2. Set the conditions

With no condition, the rule always applies. To add one:

  1. Under Conditions, click Add condition.
  2. Choose the Condition type and fill in its fields:
Condition typeThe rule applies when
Cart valueThe cart value is at least Minimum cart value, and not more than Maximum cart value (optional) if you set one.
Item quantityThe number of items is at least Minimum items, and not more than Maximum items (optional) if you set one.
Specific productsThe cart contains any of the products you select.
All products except productsThe cart contains none of the products you select.
Customer tagThe logged-in customer has any of the Customer tags. Separate several tags with commas. Tags are not case-sensitive.
Logged-in customerThe shopper is logged in to a customer account.
First visitIt is the shopper's first visit to your store in this browser.

To add more conditions, click Add condition again. Then choose When multiple conditions are set: All conditions must be met or Any condition can be met.

Use the switch on a condition to turn it off without deleting it. Click the trash icon to delete it.

Products that the rule adds do not count toward the conditions. Cart value uses the price before discounts.

3. Choose the products to add

  1. Under Products to add, click Select products and pick one or more products or variants. Each variant is one item. A rule can add up to 10 items.
  2. For each item, set the Quantity.
  3. Choose the Discount type and its Value:
Discount typePrice in the cart
Default priceThe product's normal price.
Fixed price ($)The price you type, for each unit.
Bundle discount (%)The normal price minus this percentage. Type 100 to make the product free. This is the default, with 100.
Bundle discount ($)The normal price minus this amount, for each unit.

To replace a product, click Change product. To remove it, click Remove product.

Products to add with one blanket variant, Quantity 1, Discount type Bundle discount (%) and Value 100

If a variant sells out, the rule skips it and adds the other items. The editor shows Sold out next to that variant. Restock it or choose another variant.

4. Set the behavior

Under Behavior:

  • Remove the product when the conditions are no longer met: when the cart no longer meets the conditions, for example the shopper removes items and the cart value drops, the added product is removed. If off, the product stays in the cart once added.
  • Let shoppers remove the product: shoppers can remove the added product from the cart drawer. If off, they cannot. When on, choose When a shopper removes the product:
    • Add it again if the conditions are met again: the product comes back after the cart stops meeting the conditions and then meets them again.
    • Do not add it again to that cart: the product is not added again to that cart.
  • Prevent shoppers from changing the quantity: shoppers cannot change the quantity of the added product in the cart drawer.

All options are on by default, with Add it again if the conditions are met again.

Behavior card with the remove, shopper remove, add again and quantity options

5. Set the availability (optional)

Under Availability:

  • Market: run the rule in All markets or in one market only.
  • Start date and End date: run the rule only between these dates. Leave them empty to run it all the time.

Availability card with Market set to All markets and empty Start date and End date

6. Save and test

  1. Click Save at the top right.
  2. To check the rule on your store, click Test on storefront, then Open preview mode. Add products to the cart until it meets the conditions. The cart drawer adds the products of the rule.

What shoppers see

In this example, the rule adds a blanket for free when the cart value is at least $100. The shopper has two $45 blankets in the cart and changes the quantity to 3. The cart value is now $135, so the cart drawer adds the free blanket at once and shows the notification. With Prevent shoppers from changing the quantity on, the quantity buttons of the added blanket are grayed out.

Cart drawer with the notification Personalized Bear Family Forever Blanket 29819 was added to your cart, the added blanket at Free with grayed-out quantity buttons, and three blankets at $114.75

Manage your rules

The Auto add-to-cart page lists your rules with their Status, number of Products and Priority.

Auto add-to-cart page with one rule, its Active status, 1 product and Priority 0

  • Click a rule name to edit it.
  • Select one or more rules with the checkboxes to activate, deactivate, clone or delete them.
  • When several rules match the cart, each rule adds its own products. Priority sets the order in which rules are checked. A higher Priority goes first.

Change the notification

When a rule adds a product, the cart drawer shows a short notification, by default "{{product_title}} was added to your cart". {{product_title}} is replaced with the product name.

  1. In the app menu, click Cart Drawer, then Design.
  2. Under Notifications, edit Notification when a product is added automatically. Leave it empty to turn the notification off.
  3. Click Save in the bar at the top of the page.

The same section sets the Notification position, Notification text size and colors.

Notifications settings with Notification when a product is added automatically set to {{product_title}} was added to your cart

Troubleshooting

  • The product is not added: check that the cart drawer of XB: AI Cart Upsell Cart Drawer is on, the rule is Active, today is between the Start date and End date, and the shopper's market matches Market. The rules do not run in your theme's own cart drawer or cart page.
  • The product is added at full price: check that the Xboost Cart discount is Active in Discounts. See Why is the cart discount not applied?