Skip to main content

How to Mix AND and OR Conditions for an Auto Gift with Checkout Plus

Combine more than one auto gift condition in Checkout Plus, and pick AND or OR between each condition so the gift is added only when your rules are met.

D
Written by Darian Bia

Want a more specific free gift than a single rule can cover? In Checkout Plus, auto gifts can mix AND and OR between conditions, so you're not stuck using just one for every condition.

Click Add condition to add another condition, then use the dropdown between conditions to pick AND or OR. Each condition has its own Condition Type, Condition Operator, and Condition Value. That's useful for a sale like Black Friday, or any time the gift should be added only when a combination of rules is met.

This guide walks you through combining those conditions, picking the gift, adding the block at checkout, and testing it.

Auto gift conditions with Condition 1 and Condition 2, each set to Cart Total, joined by the AND dropdown, which is highlighted, and the Add condition button at the bottom

Before you start

  • Checkout Plus installed

  • Your gift product set up in Shopify, with enough inventory for the promotion

  • A gift that's free at checkout. Products that aren't free won't be added automatically. The customer is prompted to add them instead.

  • A clear idea of the rules that should add the gift

Step 1: Open the Auto Add editor

  1. In Shopify admin, open Apps → Checkout Plus.

  2. Under App blocks, select Customize your Checkout.

Checkout Plus App blocks with Customize your Checkout highlighted
  1. Open Auto Add Product (Gift with Purchase) and select Manage, then create a customization to open the Auto Add Gift/Product To Cart Editor.

Auto Add Product (Gift with Purchase) with the Manage button highlighted

Step 2: Add your conditions and pick AND or OR

  1. Under Step #1: Name Your Customization, enter a Customization Name. Customers won't see this.

  2. Under Step #2: Condition To Add Product to Cart, open Select Condition and pick Multiple Conditions (AND/OR).

  1. Select Add condition to add another condition. You'll see Condition 1, Condition 2, and so on.

  2. For each condition, set Condition Type, Condition Operator, and Condition Value. In the example below, both conditions use Cart Total, with Condition Operator set to is greater than. Enter your own value in Condition Value.

  3. Use the dropdown between conditions to pick AND or OR. AND means both conditions must be met. OR means either condition can be met.

  4. Need another condition? Select Add condition again. You can pick AND or OR between each pair, so you're not stuck using just one for every condition. To take a condition out, select Remove on that condition.

  5. If a condition is based on an amount, you can check Convert amount to the customer's currency. When it's on, the amount is converted from your store currency into the currency the customer sees. It's off by default.

  6. If one of your conditions uses Cart Total, go to Excluded products, select Add excluded product, and add your gift. Products in this list don't count toward the cart total, so the gift can't help a shopper reach the goal.

  7. Under Remove gift when the trigger is no longer met, keep Remove gift from cart when condition is not met (recommended) and Only remove if added by this app checked. That way, if a shopper no longer meets your conditions, the gift leaves the cart too.

Condition 1 and Condition 2, each with Condition Type set to Cart Total, Condition Operator set to is greater than, and a Condition Value field, joined by the AND dropdown, which is highlighted, with Add condition at the bottom

Step 3: Pick the gift

  1. Under Step #3: Select Products to add to the cart at Checkout, select Select Product and choose your gift.

  2. Optional: use Variants in this offer, Quantity, and Enforce Quantity Limit to fine tune the gift.

  3. Want shoppers to pick their own gift? Under Customer selection at checkout, check Let customer choose their gift(s) or Let customer choose variant before adding.

  4. In the Summary, make sure Status is Active, then select Save.

Step #3 with the free product note and a selected gift product highlighted

Step 4: Add the gift block in the Checkout Editor

  1. In the Checkout Editor, under Order summary, select Add block, search gift, and under Checkout Plus pick Auto Add Product (Gift with Purchase).

  2. Optional: under Checkout behavior, turn on Include block in Shop Pay.

  3. Select Save.

Checkout Plus Auto Add Product (Gift with Purchase) block highlighted

Step 5: Test it

  1. Go to checkout with a cart that meets your conditions, and confirm the gift is added and marked FREE.

  2. Try a cart that doesn't meet the conditions, so you know the gift only shows when it should.

  3. If you used AND, check that both conditions have to be true. If you used OR, check that either condition is enough.

  4. Check both mobile and desktop checkouts.

Checkout order summary with a gift product marked FREE and no discount code applied. Product names in the screenshot are just examples.

Tips

Troubleshooting

Problem

What to try

The gift isn't showing at all

Check that the customization's Status is Active, and that the Auto Add Product (Gift with Purchase) block is added and saved in the Checkout Editor. Confirm the cart actually meets your conditions, including whether you used AND or OR. If Schedule is on, make sure you're between Go live (Start) and End.

Customers are asked to add the gift instead of getting it automatically

The gift isn't free. Products that aren't free are offered to the customer instead of being added.

The gift shows up when it shouldn't

Check each condition's Condition Type, Condition Operator, and Condition Value, and the AND or OR dropdown between them. If a condition uses Cart Total, add the gift under Excluded products.

The gift stays after the conditions are no longer met

Check that Remove gift from cart when condition is not met (recommended) is checked.

Need help? Message us from the app (click Contact Us at the bottom of the page) and tell us about the auto gift you're setting up.

Ready to try it? Install Checkout Plus from the Shopify App Store.

Did this answer your question?