PHPackages                             smile/module-gift-sales-rule - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. smile/module-gift-sales-rule

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

smile/module-gift-sales-rule
============================

Extension of Magento2 Sales Rule to provide gifted (free) products.

2.0.1(2mo ago)35124.3k↓47.1%14[9 issues](https://github.com/Smile-SA/magento2-module-gift-sales-rule/issues)[9 PRs](https://github.com/Smile-SA/magento2-module-gift-sales-rule/pulls)1OSL-3.0PHP

Since Jun 6Pushed 2mo ago12 watchersCompare

[ Source](https://github.com/Smile-SA/magento2-module-gift-sales-rule)[ Packagist](https://packagist.org/packages/smile/module-gift-sales-rule)[ RSS](/packages/smile-module-gift-sales-rule/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)Dependencies (6)Versions (35)Used By (1)

Gift Sales Rule [![Build Status](https://camo.githubusercontent.com/7fa7424d4f1b8d66937a6ac611b06906f4a1dc87184a6be2359d1e857bd6cccd/68747470733a2f2f7472617669732d63692e6f72672f536d696c652d53412f6d6167656e746f322d6d6f64756c652d676966742d73616c65732d72756c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Smile-SA/magento2-module-gift-sales-rule)
=======================================================================================================================================================================================================================================================================================================================================================================

[](#gift-sales-rule-)

What is magento2-module-gift-sales-rule Magento 2 Module?
---------------------------------------------------------

[](#what-is-magento2-module-gift-sales-rule-magento-2-module)

This module provides 2 new actions to Magento cart price rule feature to :

- offer gift product(s) to customer based on native conditions
- offer gift product(s) to customer each time a threshold is reached (every 30$ in cart for example)

For each cart price rule, administrator can define the number of gift products authorized and use a set of conditions to define the gift product list. On the frontend side, when the rule is applied, the customer can choose between a list of products the one(s) he prefers and add them to his cart.

Gift products type can be:

- simple product
- configurable product

Who is developing this module ?
-------------------------------

[](#who-is-developing-this-module-)

[![Smile](doc/static/smile.png)](doc/static/smile.png)

This module is built by Smile.

Smile is the **European leader of Open Source** and also a four-times **Europe Partner of the the Year** (2010-2014), two-times **Spirit of Excellence** (2015-2016), **Global Elite Partner** (2017-now), and **Regional Commercial Partner** (2018) awarded by Magento.

Our multidisciplinary team brings together experts in technology, innovation, and new applications.

Together we explore, invent, and test technologies of the future, to better serve our clients.

Main Features
-------------

[](#main-features)

- **Configure cart price rules to select gift products**[![To offer product](doc/static/to_offer_product.png)](doc/static/to_offer_product.png)
- **Configure cart price rules to select gift products and the price range**[![To offer product per price range](doc/static/to_offer_product_per_price_range.png)](doc/static/to_offer_product_per_price_range.png)
- **Display gift product popin**[![Gift popin](doc/static/gift_popin.png)](doc/static/gift_popin.png)
- **Display added gift product in cart**[![Gift cart](doc/static/gift_cart.png)](doc/static/gift_cart.png)

Documentation
-------------

[](#documentation)

Documentation is available [here](https://github.com/Smile-SA/magento2-module-gift-sales-rule/wiki).

Standards &amp; Code Quality
----------------------------

[](#standards--code-quality)

Built on top of Magento2, our module respects all its prerequisites and code quality rules.

You can also find our PHPCS Standards and PHPMD rulesets in the module directory.

The module is also continuously tested on :

ToolsResultsTravis[![Build Status](https://camo.githubusercontent.com/7fa7424d4f1b8d66937a6ac611b06906f4a1dc87184a6be2359d1e857bd6cccd/68747470733a2f2f7472617669732d63692e6f72672f536d696c652d53412f6d6167656e746f322d6d6f64756c652d676966742d73616c65732d72756c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/Smile-SA/magento2-module-gift-sales-rule)

###  Health Score

58

—

FairBetter than 98% of packages

Maintenance78

Regular maintenance activity

Popularity45

Moderate usage in the ecosystem

Community26

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~138 days

Recently: every ~491 days

Total

19

Last Release

88d ago

Major Versions

1.1.8 → 2.0.02026-04-02

### Community

Maintainers

![](https://www.gravatar.com/avatar/3c4859b63b960878ef37185d533dbd629247859679dfcdf465259d6a4a488ee7?d=identicon)[romainruaud](/maintainers/romainruaud)

![](https://avatars.githubusercontent.com/u/2339173?v=4)[Matthieu Leclercq](/maintainers/mleclercq)[@mleclercq](https://github.com/mleclercq)

---

Top Contributors

[![maximequeneau](https://avatars.githubusercontent.com/u/12999668?v=4)](https://github.com/maximequeneau "maximequeneau (25 commits)")[![PierreLeMaguer](https://avatars.githubusercontent.com/u/19976778?v=4)](https://github.com/PierreLeMaguer "PierreLeMaguer (19 commits)")[![romainruaud](https://avatars.githubusercontent.com/u/15340849?v=4)](https://github.com/romainruaud "romainruaud (6 commits)")[![guvra](https://avatars.githubusercontent.com/u/3967259?v=4)](https://github.com/guvra "guvra (2 commits)")[![bst2002git](https://avatars.githubusercontent.com/u/10232785?v=4)](https://github.com/bst2002git "bst2002git (1 commits)")[![chrey](https://avatars.githubusercontent.com/u/644773?v=4)](https://github.com/chrey "chrey (1 commits)")

---

Tags

magento2magento2-extensionfreecartmagento2giftsalesrule

### Embed Badge

![Health badge](/badges/smile-module-gift-sales-rule/health.svg)

```
[![Health](https://phpackages.com/badges/smile-module-gift-sales-rule/health.svg)](https://phpackages.com/packages/smile-module-gift-sales-rule)
```

###  Alternatives

[mollie/magento2

Mollie Payment Module for Magento 2

1131.9M16](/packages/mollie-magento2)[magepal/magento2-googletagmanager

Google Tag Manager (GTM) for Magento 2 with Advance Data Layer

2691.6M5](/packages/magepal-magento2-googletagmanager)[run-as-root/magento2-prometheus-exporter

Magento2 Prometheus Exporter

68357.9k](/packages/run-as-root-magento2-prometheus-exporter)[myparcelnl/magento

A Magento 2 module that creates MyParcel labels

1860.2k](/packages/myparcelnl-magento)[smile/module-multi-coupon

Extension of Magento2 Sales Rule to allow multiple coupon usage.

102.9k](/packages/smile-module-multi-coupon)[mage-os/module-llm-txt

AI-powered LLMs.txt generation for Magento 2 / Mage-OS stores. Help AI systems understand your store with OpenAI-generated content.

234.0k](/packages/mage-os-module-llm-txt)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
