💲
DollarLabs Helpdesk
  • 💰Dollarback: Store Credit
    • 🚀Get started
      • Configure Order Goals
      • Set fixed amount cashback
      • Set percentage casback
    • 📘Real case studies
      • BlackPeach (+€17k in 30 days)
    • 🫴Show rewards
      • Product Page
      • Cart Page
      • Custom Slide Carts
      • Cashback Widget
      • Checkout Block (Shopify Plus)
      • Customer Account
      • Thank you
    • 💁Referral Engine
      • Referral Analytics
    • 📩Notifications
      • Klaviyo
      • Inbuilt Email
      • Shopify flow
    • ⚡Automations
      • Reward Customers with Store Credit for Reviews using Judge.me
    • 📊Analytics
    • ⚙️Settings
    • ❓FAQ
  • 💲Dollarlabs: Ultimate Discounts
    • 🚀Quickstart
    • Discount types
    • Discount Engine (v2)
      • Cart groups
      • Rules
      • Targets
      • Examples (v2)
        • Get $60 off on each item when purchased in pairs
        • Discount every item except the first item
    • Discount Engine (v1)
      • If X, then do Y
      • Line Limit Strategy
      • Global Line Limit Strategy
      • Discount Application Strategy
      • Discount combinations
      • Rule Builder Variables
      • Invert Logical Operation
      • Bulk Code Generation
      • ⚠️Limitations of Discount engine (v1)
      • Examples (v1)
        • 📦Product Discount Examples (V1)
          • Offer a discount to your VIP / Subscription customers
          • Offer a Free product and a one time discount for subscription purchase
          • Volume discount based on quantity for eligible products
          • Single discount code to apply different discount amounts for different product categories
          • Automatic discount for B2B customers
          • Discounts based on user's purchase market / region
          • Give product for free if the cart value is above $X
          • Buy X items specified to get a discount on Y items. (Buy X Get Y - Bx Gy)
        • 🛒Order Discount Examples (V1)
          • Tiered Cart Discounts: Reward Customers Based on Their Cart Value
    • 🛒Auto add gift to cart based on discount code (plus only)
    • 💼Price lists (B2B)
      • How to setup a price list ?
      • Show the discounted price on the Product page
      • Show Volume breaks on Product page
      • Show discounted prices on the collection page
    • ⚠️Function limitations by Shopify
Powered by GitBook
On this page
  • Prerequisites
  • How to set up the auto product add behaviour
  • Video guide on how to set this up ⚡️
  1. Dollarlabs: Ultimate Discounts

Auto add gift to cart based on discount code (plus only)

PreviousTiered Cart Discounts: Reward Customers Based on Their Cart ValueNextPrice lists (B2B)

Last updated 2 months ago

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 app installed

  2. You need to have 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.

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 and is only available to use for Shopify Plus merchants due to .


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 ⚡️

💲
🛒
Dollarlabs: Ultimate discounts
checkout extensibility enabled
Shopify's app requirements
limtiations