Skip to main content
All CollectionsWidgetsGift with Purchase
How To Create A Free Gift With Purchase Workflow
How To Create A Free Gift With Purchase Workflow

In this guide we show you how to create a free gift with purchase workflow using a Rebuy Gift With Purchase widget.

Strauss Van Wagenen avatar
Written by Strauss Van Wagenen
Updated over a month ago

The Free Gift With Purchase Widget doesn't show items offered but handles the Automatic adding of the free gift. There is no interface for the customer to interact with.

We recommend using this in addition to showing recommended products via another widget. Perhaps the data source also RETURNS "Super Title" Language that says "Spend X amount of $ Get a free gift!" Once the threshold is matched RETURN new "Super Title" Language saying "Congratulations, Enjoy Your Gift!".


NOTE: In order to make a TRUE gift with purchase widget, you MUST be on Shopify Plus. This is because you will need to have access to the Script Editor to make the automatic discounting function via scripts work.

Shopify Plus is required to make use of Shopify Scripts. As of February 13, 2023 Shopify announced that Shopify Scripts will be deprecated and they will be moving to functions. They have since removed the Script Editor application from the Shopify app store.

We do have a workaround for non Shopify Plus users that you can try if you would like. If you are on Shopify Plus, then continue with this article. If you are not, then please jump to the article called Creating a Free Gift with Purchase without Shopify Plus to get started.


Installation Instructions

Step 1: Create a New Gift With Purchase Widget

Reminder: You will also need to configure a Shopify Script so the auto-added item is free.

Step 2: Configure the Data source

In the General setting of the widget editor you will see Data Source. Click the "edit" link to open the connected Data Source Rule Builder that has been created for this widget.

An example of how this is used is saying: IF Cart Subtotal is GREATER THAN X amount of $ RETURN Free Item. You can also say IF Cart Subtotal is GREATER THAN X amount of $ AND/OR Products/Collections CONTAINS/ CONTAINS ANY (etc) RETURN Free Item.

NOTE: GWP widgets are not compatible with Subscription products.

You can only select and return a One-Time variant of a product in the GWP widget's Data Source rules.

Step 3: Install the GWP Widget

If you do NOT want your widget to be visible to your customers, then be sure to toggle live mode OFF prior to installing the widget. The live mode setting is toggled ON by default. To understand the definitions of "installed," "uninstalled," and "live mode," you can refer to the Rebuy Widget Installation Definitions help article for more information.

After clicking the "install" button, a new window will open with specific instructions for you to follow to complete the install process. These instructions may include copying and pasting code, configuring settings, or other steps. It is important to follow these instructions carefully to ensure a successful installation.

Since the gift with purchase widget is more of a global widget, you should install the widget within the theme.liquid file instead of app blocks even if you have access to app blocks. For more information on manually installing widgets, you can visit our help article that outlines that installation method.

Once you have your widget installed and your Shopify script created, you can turn your script on! This same flow can be duplicated with the Cart Page and Shopify checkout Gift with Purchase widget!


Additional Settings

GIFTS WITHOUT PURCHASE

We've recently updated the Gift With Purchase (GWP) widget settings, impacting how gifts are managed in carts:

  • Default to enabled for all pre-existing GWP widgets: By default, all existing GWP widgets will allow adding gifts to an empty cart.

  • Default to disabled for all future GWP widgets: By default, newly created GWP widgets will not add gifts when the cart is empty, and will automatically remove any gifts if they are the only remaining items in the cart

This update aims to prevent situations where free gifts remain in the cart after all paid products have been removed!

To adjust these settings, navigate to:

Gift With Purchase Widget's Settings -> General Tab -> GIFTS WITHOUT PURCHASE.


FAQs

  • Why is my free gift still being shown in cart at full price?

    • The Rebuy application does not discount products (other than in post purchase offers). For this reason, it is crucial to configure your discounting in Shopify Admin before launching your free gift product in a Rebuy widget or Smart Cart to ensure customers will not be charged full price for a gift. Refer to our guide on troubleshooting free gift issues here: Free Gifts: Troubleshooting & FAQs

  • Are Subscription products supported for GWP?

    • At this time, Subscription products are not supported for GWP.

  • How do I setup a Selectable GWP widget?

    • The "Selectable Gift With Purchase" widget is not a standard Rebuy widget (it is a customized version of a Cart Cross-sell widget), therefore additional custom code is required to ensure proper functionality. Refer to our on guide on custom implementation for this widget type: Selectable Gift-With-Purchase Widgets

  • Why is my GWP widget that is set to return a BOGO offer continuously looping in my Smart Cart?

    • If the INPUT product is the same as the OUTPUT product for your GWP Data Source (for a Buy One, Get One promotion), your "IF" statement must use a "Product" -> "Contains Any" rule. Although this is a cart-based workflow, a product specific rule is required in this scenario.

  • Why is my GWP widget's Data Source INPUT product tag rule not working properly when adding the tagged product to cart?

    • If you wish to have the GWP widget triggered when a specific tagged product is added to cart, your Data Source rule's IF statement must use a "Contains Any" INPUT statement. Although this is a cart-based workflow, a product specific rule is required in this scenario.

  • I'm using a URL Contains rule in my GWP widget's Data Source, but the free gift disappears from the Smart Cart when I navigate to another page/URL on my storefront. How do I ensure the gift always remains in cart?

    • For this scenario, we recommend using an Advanced UTM rule by following the steps in following guide: URL/UTM Based Rules

    • Essentially, you will need to ensure there is a specific UTM that can be keyed off of for your particular GWP campaign. For example, if you use a URL Contains rule that starts with utm_source= , utm_medium= , utm_campaign=, utm_content= it should work as expected, and the GWP won’t disappear when the customer navigates away to a different page on the site.


Want to learn more about Rebuy features? Book a demo with our team today!

Did this answer your question?