Search by

hryvinskyi / magento2-free-gift-pack

hryvinskyi

Free gift for every step of spending for Magento 2: a cart price rule action that adds gift products to the cart at no charge, its admin settings, and a storefront progress bar that shows the shopper how far the cart is from the next gift.

Package info

github.com/hryvinskyi/magento2-free-gift-pack

Type:metapackage

pkg:composer/hryvinskyi/magento2-free-gift-pack

Statistics

Installs: 7

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.1.5 2026-11-28 21:53 UTC

This package is auto-updated.

Last update: 2026-11-28 21:55:57 UTC


README

Metapackage that installs the free gift modules: a cart price rule action that adds gift products to the cart at no charge for every step of spending, its admin screens, and a storefront progress bar that shows the shopper how far the cart is from the next gift.

composer require hryvinskyi/magento2-free-gift-pack
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento cache:flush

It installs:

  • hryvinskyi/magento2-free-gift-api, the published contracts: the rule action, the gift SKUs of a rule, the gift lines of a cart and the gift state stored on a cart;
  • hryvinskyi/magento2-free-gift, the core: the action Free gift for every X spent, the spent amount, and the gift lines kept in line with what the cart earns;
  • hryvinskyi/magento2-free-gift-admin-ui, the field Free Gift SKUs on the cart price rule form and the settings under Stores › Configuration › Sales › Free Gift;
  • hryvinskyi/magento2-free-gift-frontend, the spent amount and the gift line mark in the cart customer-data section, the free gift goal of the bar, and the free gift badge on gift lines in the minicart and on the cart page;
  • hryvinskyi/magento2-cart-progress-bar, the bar itself, which knows no kind of goal: other modules contribute goals to it.

Nothing is on after installation. To offer a gift:

  1. In Marketing › Promotions › Cart Price Rules add a rule with Apply set to Free gift for every X spent. Discount Amount is the gifts per step, Discount Qty Step (Buy X) the amount to spend per step and Maximum Qty Discount is Applied To the most gifts; enter the gift SKUs in Free Gift SKUs.
  2. To show the bar, enable it under Stores › Configuration › Sales › Cart Progress Bar and set the goal under Free Gift › Goal in the Cart Progress Bar.

Each module's README describes its settings and limits.