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.
- Place qualifying and nonqualifying test orders
- check the zero-priced line and order total
- run again to verify no duplicate
- test zero stock
- inspect fulfillment location and downstream warehouse payload.

