Ecommet

Free Gift for Magento 2

Add free or discounted gifts to the cart automatically or let shoppers pick one, with a progress bar that shows how much more to spend for the next gift.

1.0.0

Magento 2.4.7 to 2.4.9 · PHP 8.2 to 8.5

  • Hyvä compatible
  • GraphQL API
  • REST API
Free Gift for Magento 2: free gifts in the cart with a progress bar

Free Gift turns your cart price rules into gift offers. Give a gift once per cart, for every N items, for every amount spent, or as buy-one-get-one of the same product. Add it to the cart automatically or let shoppers pick their favourite, free or at a special price, and show a progress bar that pulls them toward the next gift.

Because it is built on cart price rules, you keep Magento’s own conditions, coupons, customer groups, websites, dates and priorities, and add a gift to any of them.

Four ways to give a gift

  • Gift with the cart: “Free tote bag on orders over $75”.
  • For every N items: “A free water bottle with every 3 bags”.
  • For every amount spent: “Pick a gift for every $50 you spend”.
  • Buy N, get the same product (BOGO): “Buy 2 jump ropes, get the third free”, also for configurable products.
  • Gifts can be free, a percentage off, an amount off or at a fixed price, with a maximum per cart.

Automatic gifts or a gift picker

  • Add every gift automatically, or let the shopper choose from a popup with pictures and the regular price struck through.
  • The picker opens on the cart page, and a “Choose your gift” notice keeps it one click away on every page.
  • Only one gift in stock? It is added without asking.
  • A shopper who removes a gift is not forced to take it back; it stays available in the picker.

A progress bar toward the next gift

  • “Add $15.00 more to get a foam roller free!” in the mini cart (the cart drawer on Hyvä) and on the cart page.
  • Several gift tiers on one bar, with a marker for each.
  • The goal is read from the rule’s subtotal condition or set by hand, and the messages can be edited per store view.
  • A gift banner with gift images on the product page, on matching products or on all of them.

Campaign tools

  • Gift budget: stop after the first 500 gifts. Canceled orders give their gifts back.
  • Campaign links with QR codes: only visitors who open your Instagram, newsletter or flyer link get the gift.
  • New conditions for every cart price rule: first order (number of previous orders), birthday this month, and opened the rule’s campaign link.
  • Out-of-stock substitutes: when a gift sells out, the next one in your list is given instead.

Free Gift Analytics

See whether gifts pay off: average order value with a gift versus without one, and per rule the orders, gifts given, gift retail value, gift cost, revenue and average order value, with date and store view filters and CSV export.

Clean totals and order records

  • Gifts never count toward the subtotal or item quantity of any rule, so a gift cannot keep its own offer alive, and other discounts never apply to gifts.
  • The gift price is the item price, so subtotal, tax and totals always show what the shopper pays.
  • Gift items carry a “Free Gift” line in the cart, checkout, order, invoice, credit memo and emails, and their quantity cannot be changed.

For developers and headless stores

  • REST API for customer, guest and admin carts, and the gift settings on the sales rule API.
  • The FreeGiftGraphQl module, included in the download: gift choices and the progress bar on the cart, gift details on cart items, and an addFreeGiftToCart mutation.
  • Luma and Hyvä (Alpine.js and Tailwind templates included), declarative schema, no core changes, and the Adobe Commerce coding standard.

Set up your first gift

  • Go to Marketing > Cart Price Rules > Add New Rule: active, your websites and customer groups, and a storefront label.
  • Add a condition such as Subtotal (Excl. Tax) equals or greater than 50.
  • Under Actions, choose Free gift: add gifts to the cart. In the Free Gift section, choose whether the customer picks from the gifts or all are added, enter the gift SKUs and turn on the progress bar.
  • Save. Shoppers below $50 see how much more to spend; above it, the gift picker opens on the cart page.

Frequently asked questions

Can shoppers choose their gift?

Yes. Set the rule to let the customer choose: a popup on the cart page lists the gifts with pictures, and a notice keeps it one click away. Or add every gift automatically.

Can a gift be discounted instead of free?

Yes. A gift can be free, a percentage off, an amount off or at a fixed price, with a maximum number of gifts per cart.

What happens when a gift is out of stock?

The next gift in your substitutes list is given instead, and an out-of-stock message you can edit is shown when there is none. It works with Multi-Source Inventory.

Can I limit how many gifts a campaign gives away?

Yes. Set a gift budget per rule, for example the first 500 gifts. Gifts are counted when an order is placed and returned when it is canceled.

Does it work with Hyvä and headless storefronts?

Yes. Hyvä templates (Alpine.js and Tailwind) are included for the cart page, cart drawer, gift picker and product page. Headless storefronts use the REST API or the included GraphQL module.

Do gifts affect my other cart price rules?

No. Gifts never count toward the subtotal or item quantity of any rule, and other discounts never apply to gifts.

Compatibility

Current version1.0.0
EditionsMagento Open Source, Adobe Commerce (on-prem), Adobe Commerce Cloud
MagentoOpen Source and Adobe Commerce 2.4.7 to 2.4.9, on-premises and cloud
PHP8.2 to 8.5
ThemesLuma, and Hyvä (tested with Hyvä Theme 1.5.3: cart page, cart drawer, gift picker and product page)
Gift productsSimple, virtual or downloadable products without required options; for a configurable product, the variation SKU
InventoryMulti-Source Inventory aware (out-of-stock substitutes)
APIsREST for customer, guest and admin carts; GraphQL with the included FreeGiftGraphQl module

Installation

  1. Unzip the download into app/code/Ecommet/ in your Magento root. It holds one folder per module: FreeGift, FreeGiftGraphQl.
  2. Enable the module and update the database:
    bin/magento module:enable Ecommet_FreeGift
    bin/magento setup:upgrade
    bin/magento cache:flush

    Optional: Ecommet_FreeGiftGraphQl, the GraphQL API for PWA Studio and headless storefronts. To use it, enable both modules in the first command: bin/magento module:enable Ecommet_FreeGift Ecommet_FreeGiftGraphQl

  3. In production mode, also compile and deploy static files:
    bin/magento setup:di:compile
    bin/magento setup:static-content:deploy -f
  4. Configure it under Stores > Configuration > Ecommet Extensions > Free Gift.

Prefer not to do it yourself? I can install and configure it for you. Ask for installation

Release notes

1.0.0 November 15, 2026

Magento 2.4.7 to 2.4.9, PHP 8.2 to 8.5

  • First release.
  • Gift actions for cart price rules: gifts per cart, per N items, per amount spent, and buy N get the same product (BOGO); free, percent off, amount off or fixed-price gifts; maximum gifts per cart.
  • Automatic gifts or a gift picker (Luma and Hyvä) with a choose-your-gift notice; removed gifts are not added back.
  • Gift progress bar with tiers in the mini cart / Hyvä cart drawer and on the cart page; product page gift banner.
  • Gift budgets, out-of-stock substitutes, campaign links with QR codes, and new first-order, birthday and campaign-link conditions.
  • Free Gift Analytics with CSV export; gift lines on orders, invoices and emails; REST API, and the FreeGiftGraphQl module in the same download.
  • Requires Magento 2.4.7 or later and PHP 8.2 or later.

Support and updates

  • 3 months of support and updates are included with every license.
  • Support covers bug fixes, updates for new Magento releases and answers to your questions about the extension. Installation, setup on your store and custom changes are billed by the hour: ask for a quote.

You talk to the developer who wrote the code: ecommet.solutions@gmail.com or WhatsApp

Works well with

All Magento 2 extensions

Before you buy

Have a project in mind?

Tell me what you need, even in a few lines, and I’ll come back with questions or a quote.