Download the PHP package niziou/freegift without Composer
On this page you can find all versions of the php package niziou/freegift. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download niziou/freegift
More information about niziou/freegift
Files in niziou/freegift
Package freegift
Short Description Adobe Commerce free gift module for global and cart price rule gifts.
License OSL-3.0 AFL-3.0
Informations about the package freegift
Niziou Free Gift
Magento 2 / Adobe Commerce module that automatically adds one free gift item to qualifying carts. It supports a website-scoped global gift SKU and rule-specific gift SKUs on cart price rules.
Compatibility
- Adobe Commerce / Magento Open Source 2.4.8-p4 and the 2.4.8 release line
- PHP 8.3 or 8.4
- Composer 2
Adobe lists Adobe Commerce 2.4.8-p4 as the latest stable 2.4.x patch release as of April 24, 2026. Adobe Commerce 2.4.9 is currently listed as beta, so this module targets 2.4.8-p4.
Features
- Website-scope global configuration under Stores > Configuration > Sales > Free Gift.
- Optional free gift fields on cart price rules.
- Rule-specific gift SKU takes priority over the global SKU.
- Adds only simple or virtual products without required options.
- Forces gift quantity to 1, disables discounts for the gift line, and sets the gift price to 0.00.
- Removes obsolete gift items when the cart no longer qualifies or a different rule-specific gift applies.
Installation
Install with Composer from this repository or copy the module directory to app/code/Niziou/FreeGift.
Configuration
- Create an enabled, in-stock simple or virtual product for the gift.
- Make sure the product has no required custom options and is assigned to the target website.
- Go to Stores > Configuration > Sales > Free Gift.
- Enable the global gift and enter the gift SKU.
For cart price rules, go to Marketing > Cart Price Rules and expand the Free Gift fieldset in the Actions area. Enable the rule gift and enter a gift SKU. When that rule applies to the quote, its SKU overrides the global gift SKU.
Testing
Run the focused unit suite from the module root:
All versions of freegift with dependencies
magento/framework Version ^103.0
magento/module-catalog Version ^104.0
magento/module-config Version ^101.2
magento/module-quote Version ^101.2
magento/module-sales-rule Version ^101.2
magento/module-store Version ^101.1