Skip to content

Shopify Dude Fix

Add a Free Gift After Checkout With Shopify Flow

Use native order editing for fulfillment bonuses, with guardrails for stock and duplicate gifts.

Quick answer: Use Flow’s Add order line item action for a post-purchase bonus, not a gift that must appear before payment.
On this page

Why this happens

The action edits an existing order. It cannot advertise the gift in checkout, and its availability rules do not automatically protect against overselling.

Implementation

Create a workflow using Order created or Order paid, depending on the payment policy. Check eligible merchandise, the gift’s available inventory and whether the gift variant already exists. Select the gift variant, quantity one, enable Add for free, and leave Allow duplicate variants disabled. Add an order timeline note. Decide separately whether to send the customer an order update.

Example

For a qualifying paid order containing a designated product, add one sample variant only if stock is available. Confirm the fulfillment integration sees the edited order before releasing it to the warehouse. If stock is insufficient, route for review instead. Test location-level stock separately; a condition is not an atomic inventory reservation.

Common misunderstanding: An order edit is not a checkout promotion. If customers need to see or select their gift before paying, use a storefront and discount implementation instead.
How to test this:

  1. Place qualifying and nonqualifying test orders
  2. check the zero-priced line and order total
  3. run again to verify no duplicate
  4. test zero stock
  5. inspect fulfillment location and downstream warehouse payload.
Sources and further reading: Shopify reference ยท Shopify implementation documentation