Auto Add to Cart/Free Gift With Purchase
Our app now supports creating "auto add to cart" offers, where 1 or more product variants are automatically added at checkout when specific conditions are met.
Use Cases
Offering a free gift with purchase (ex. Spend $300 or more, get this item for free)
Automatically adding "shipping protection," "purchase protection," or similar warranties to the cart
How it works
Similarly to discounts, you will use the advanced logic builder to create these types of offers.
Instead of adding "Apply discount" steps at the end, though, you will add "Add to cart" steps.
The "Auto add to cart" works via two parts:
JavaScript that continually checks the customer's cart to see if they're eligible for an automatically added product, and if so, adds it.
A Shopify Functions discount that applies a discount to those products, only if the conditions from their logic are met. This makes it more secure and prevents the wrong people from receiving discounts.
Setup
Click "Create discount," then click "Auto add to cart."
Enter a title for your offer, and create logic for when products should be added to the cart, using our advanced logic builder.
Lastly, enable the "Add to Cart Embed" and the "Discounts Embed" in the Theme Editor. This will handle actually adding products to the cart.
Limitations of auto add to cart offers
Because these require JS to actually add the product to the cart, they currently have some limitations:
It does not work in the POS
It does not work in draft orders/manual orders
The customer must visit at least one page in the Online Store before reaching the checkout
Auto add to cart is always an automatic discount, and cannot be a manually entered discount code.
As we continue development of this feature, we will try to work around these API limitations.
Can auto add to cart offers combine with other discounts?
Yes. They combine with product, order, and shipping discounts. If you would like to be able to change this, please reach out to us.
Troubleshooting Auto Add to Cart
If you are noticing the product is not being added to the cart automatically, make sure it is published to the Online Store sales channel first.
Updated on: 03/11/2024
Thank you!