Puur Smile Free-Gift Discount Engine · Custom Shopify app

    One discount rule for every free-gift combination.

    Shopify caps a discount at 25 products. This app collapses the whole free-gift programme into a single rule, so a new test no longer costs a discount slot.

    The Free Gift Discount Engine gift map: four rules, five trigger products and eight free gifts, all on one discount
    The gift map, rebuilt on a test store for this page: every trigger product, the gifts it unlocks, and the rule it belongs to, all under one discount.
    • Shopify app
    • Shopify Functions
    • Discount logic
    • Dashboard
    • Node
    • Railway

    Situation

    Shopify caps a discount at 25 products, and the store hit that ceiling as free-gift combinations multiplied across tests. Each new gift test needed room in a discount, and there was none left.

    What I built

    I proposed and built an app that collapses the whole programme into a single discount rule. The backend maps each gift to its trigger product and marks assigned items free, so one rule covers every combination and a new experiment no longer costs a discount slot. The gift code stays consistent, and a custom dashboard lets the team manage the mapping without a developer.

    The rebuild shown here

    The screenshots come from a rebuild on a test store, because the production app belongs to the client. Its gift map follows the layout of the EG Auto Add to Cart app the team already used to add gifts, so managing which gifts are free feels familiar. Each rule is guarded: a gift never counts as its own trigger, a gift named by two rules is only made free once, and extra units above what the triggers allow stay at full price. The editor shows those checks, and a preview of the cart, before a rule is saved.

    Editing the WF Bundle Test 3 rule: the trigger product, six free gifts, safety checks and a cart preview
    Editing one rule. The safety checks and the cart preview show what the function will do before the rule is saved.