OxifyOxify
Discounts & Shopify Functions

Free Gift discount function

The legacy free-gift function — still deployed for backwards compatibility.

This article is a draft and may be incomplete or change before publishing.

The Free Gift discount function is a legacy Shopify Function that adds gift line items at $0 when reward thresholds are met.

Status

Still deployed for backwards compatibility on stores that installed Oxify before unified function support shipped. New stores use the unified function instead.

How it works

Evaluates the cart against your free-gift reward tiers and adds a gift line item with a 100% discount when a tier qualifies.

Should I migrate

Yes — the unified function is faster, stacks better, and avoids the 5-function-per-cart limit. See Migrate from legacy to unified for the one-click migration.

If you stay on legacy

The legacy function still works correctly. There's no urgent need to migrate, but the unified function is recommended for new tiers.

On this page