🛒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

  1. You need to have Dollarlabs: Ultimate discounts app installed

  2. You need to have checkout extensibility enabled on your store.

  3. The checkout block discount-auto-add-item needs to be added to your checkout.

The block does not add any visual component to the checkout and is required purely for the add to cart logic to function.


How to set up the auto product add behaviour

  1. Head over to Shopify admin > Settings > Checkout > Customize

  2. Click + Add app block anywhere on the checkout customization pane and add the discount-auto-add-item block from the dropdown.

  3. 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.

  4. 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.

You can also use wildcard character "*" to do partial matches like first X characters. This is super helpful when you want to combine this feature with bulk code generation.


Video guide on how to set this up ⚡️

Last updated