Back to Gallery
Automatic promotion reliability Checkout Stationery & Leather Goods

Automatic Free Gift for Leather Cream

Automatic 100% discount on leather cream when purchasing a qualifying portfolio, powered by Shopify Functions.

Shopify cart where leather cream drops to zero as a free gift beside a qualifying leather portfolio

The Problem

The promotion 'buy a qualifying portfolio, get leather cream for free' previously required manual configuration or script logic, and wasn't consistently or transparently applied. Customers could miss the free gift, and the discount logic behaved unpredictably when combined with the new Shopify Functions-based checkout setup.

The Solution

We implemented the free gift as a Shopify Function inside the pap-checkout-extensions app. The function checks the cart for a product whose SKU contains lep_a4 (the A4 size of the leather portfolio) and for a product with SKU exactly lb01 (the leather cream). When both are present, it applies a 100% discount to exactly one unit of lb01. At checkout, the customer sees the discount line labeled "FREE LEBAUME," making it clear that the cream is free as part of the promotion.

Why It Mattered

The promotion became automatic and reliable. Customers who add the qualifying portfolio and leather cream see the cream discounted to zero without needing a code. That reduces friction around the offer, prevents missed gifts, and keeps the logic compatible with the current Shopify Functions-based checkout, rather than depending on legacy Scripts or fragile custom code in checkout.

Technical Details

Implemented as a discount Function inside the production checkout app. It evaluates cart contents and, if at least one item with SKU containing lep_a4 and at least one with SKU exactly lb01 are present, applies a 100% discount on one unit of lb01. The discount appears in checkout with the label "FREE LEBAUME". This replaces older script-based behavior and aligns with the other discount Functions configured in the same app.

Stay in the loop

New Shopify case studies and storefront insights — straight to your inbox.

Interested in a similar project?

Tell us about your store and goals — we'll come back with ideas.