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. smile/module-gift-sales-rule

ActiveMagento2-module

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

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

1.1.8(5y ago)34118.5k↑22.7%14[8 PRs](https://github.com/Smile-SA/magento2-module-gift-sales-rule/pulls)1OSL-3.0PHP

Since Jun 6Pushed 1y 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 1mo ago

READMEChangelog (10)Dependencies (3)Versions (33)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

44

—

FairBetter than 92% of packages

Maintenance26

Infrequent updates — may be unmaintained

Popularity44

Moderate usage in the ecosystem

Community24

Small or concentrated contributor base

Maturity70

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 ~36 days

Recently: every ~15 days

Total

17

Last Release

1949d ago

### 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)")[![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

[smile/elasticsuite

Magento 2 merchandising and search engine built on ElasticSearch

8044.5M33](/packages/smile-elasticsuite)[mollie/magento2

Mollie Payment Module for Magento 2

1121.6M10](/packages/mollie-magento2)[smile/module-debug-toolbar

Smile Debug Toolbar

146247.6k2](/packages/smile-module-debug-toolbar)[lillik/magento2-price-decimal

Magento 2 Price Decimal Precision

111147.5k](/packages/lillik-magento2-price-decimal)[smile/module-multi-coupon

Extension of Magento2 Sales Rule to allow multiple coupon usage.

102.9k](/packages/smile-module-multi-coupon)[magepal/magento2-customeraccountlinksmanager

Customer Account Links Manager for Magento2 allows you to quickly and easily remove unwanted links from customer account dashboard

4084.9k](/packages/magepal-magento2-customeraccountlinksmanager)

PHPackages © 2026

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