🛒Auto add gift to cart based on discount code (plus only)
This guide will walk you through how you can set up auto product add to cart based on the coupon code.
Prerequisites
You need to have Dollarlabs: Ultimate discounts app installed
You need to have checkout extensibility enabled on your store.
The checkout block
discount-auto-add-item
needs to be added to your checkout.
This feature should only be used to add products to the cart that do not increase the total order value of the cart. Ensure compliance with Shopify's app requirements and is only available to use for Shopify Plus merchants due to limtiations.
How to set up the auto product add behaviour
Head over to Shopify admin > Settings > Checkout > Customize
Click
+ Add app block
anywhere on the checkout customization pane and add thediscount-auto-add-item
block from the dropdown.Enter in exactly the discount code (case-sensitive) for which the product should be auto added to cart and then pick the products using the
select variant
button and then hit save.Test out the behavior on your checkout by entering the coupon code in the cart. The product should be automatically added and removed based on the discount code application.
Video guide on how to set this up ⚡️
Last updated