Dr Free Gift & BOGO

How to offer a free gift to customers when they apply a discount code on Shopify?

APP SETUP

Introduction

Our app, Dr Free Gift, BOGO Buy X Get Y, enhances Shopify’s functionality by allowing merchants to offer promotional discounts that automatically add free gifts to a customer’s cart. With customizable conditions.

This functionality allows your store’s customers to receive a free gift when they enter a valid discount code in the cart.

Important: This feature does not work on the checkout page, as we cannot manipulate the cart at that stage.

Imagine you want to use this functionality for the following scenario:

You want to create a discount code (FREE_CALENDAR) for orders with more than five items. When customers enter this discount code in the cart, they will receive a free calendar.

How to Set Up a Goal Using a Discount Coupon

Before proceeding, ensure you already have a product in your Shopify store that you want to offer as a free gift. If you don’t, create such a product first.

To create a free calendar from an existing product, go to the Gifts and Goals page of the app. Under the Gifts section, configure a gift based on the existing calendar product. If you’d like to learn more about how to create a gift from a selected product, check out this article.

Once the free gift has been created from the selected product, you can proceed to configure a goal.

  1. Go to the Gifts and Goals app and navigate to the Goals section.
  2. Under Free Gifts Goals, click the New Goal button.
  3. Name your goal, e.g., “Get a Free Calendar”, and move to the Goal Target section.

Setting Up Goal Target

In this section, select Applied Discount as the trigger. Once selected, an explanation will appear describing how this trigger works:

Note 1: When a discount code or fragment matches a manually applied discount code in the cart (changes cannot be made on the Checkout page), the gift will automatically be added to the cart. The discount code can be a zero-value percentage discount, or it can carry any other value, including free shipping. However, the discount code must not attempt to discount the gift itself. The gift will always be the zero-priced item you created earlier. The discount code merely serves as a marker to identify when the gift should be awarded. Ensure that the discount code is created in Shopify Discounts.

If your store does not support applying discounts directly to the cart, consider using our Dr. Stacked Discounts on Cart app.

Note 2: Use the * symbol for partial matches when entering discount codes:
  • CODE* matches CODE12 and CODE23 but not 1CODE12.
  • *CODE matches 12CODE and 23CODE but not 12CODE123.
  • *CODE* matches any code containing CODE, such as 12CODE123.
To complete the setup, enter FREE_CALENDAR in the Eligible Discount Codes field and click the Add button. If you have multiple similar discount codes and all of them should trigger the same free product, you can use partial matching, e.g., FREE_*. This will match codes like FREE_CALENDAR or FREE_GIFT.

Setting Up Goal Reward

In the Goal Reward section, select the free calendar item created in the earlier steps. For more information about how this section works, refer to this article.

How to Configure a Discount Coupon

To set up a discount coupon:

  1. Go to the Discounts section in Shopify.
  2. Create a discount code with a zero-percent discount or even free shipping. However, ensure that the code does not reduce the price of the selected gift.
For this example, we’ll use a percentage discount for the entire order, as the code is only intended to serve as a marker to determine gift eligibility.
  • In the Discount Code field, enter the code you want to share with your customers, e.g., FREE_CALENDAR.
  • In the Discount Value section, enter 0 in the percentage field.
  • Under Minimum Requirements, select Minimum Quantity of Items and set the value to 5.

Finally, save the discount code by clicking the Save button.

How Automatic Product Addition Works When a Discount Coupon is Applied

After setting up all the configurations described above, test whether the app correctly adds the free calendar to the cart when the discount code FREE_CALENDAR is applied.

Remember, in this scenario, the code will only work for orders with more than five items.

If your store does not support adding discount codes directly in the cart, you can use our Dr. Stacked Discounts on Cart app 

Troubleshooting

  1. Discount Code Eligibility:
    If the discount code is not working, ensure that all eligibility criteria (e.g., minimum order quantity) are met. Otherwise, the free product will not be added to the cart.

 

  1. Third-Party App Interference:
    In some cases, third-party apps may cause issues with automatic cart additions. This might occur in specific scenarios or configurations. If you encounter such issues, contact our support team via the chat window in the app.