📊 State of Magento 2025

The Home for Magento 2 Excellence

Quality-tested Magento 2 modules. Explore. Evaluate. Elevate. #magento2

613 Modules
401 Ready
211 Need Help
🏆 Leaderboard
Potentially Abandoned v1.1.8

Module Gift Sales Rule

smile/module-gift-sales-rule

Adds cart price rule actions to offer gift products to customers based on conditions or when a threshold is reached. Customers can choose gift products from a defined list.

115,762
Downloads
Below average
34
GitHub Stars
Below average
5y ago
Last Release
17
Open Issues
Build Issues
2/3 checks passed

Build Tests

Composer Install
DI Compile
Templates

Code Quality

CS Coding Standard
21 errors , 211 warnings
PHPStan Failed

Tested on Magento 2.4.8-p3

Recent Test History

Each release is tested against the latest Magento version at that time.

v1.1.8 on Magento 2.4.8-p3
Jan 2, 2026
v1.2.x-dev on Magento 2.4.8-p3
Dec 28, 2025

Looking for Contributors

Dependency injection compilation fails. Your contribution could help the entire Magento community!

Contribute

Share This Module's Status

Module Gift Sales Rule Magento compatibility status badge

README

Loaded from GitHub

Gift Sales Rule Build Status

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 ?

Smile

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

  • Configure cart price rules to select gift products To offer product

  • Configure cart price rules to select gift products and the price range To offer product per price range

  • Display gift product popin Gift popin

  • Display added gift product in cart Gift cart

Documentation

Documentation is available here.

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 :

Tools | Results ------------------------------- |------------ Travis | Build Status

This content is fetched directly from the module's GitHub repository. We are not the authors of this content and take no responsibility for its accuracy, completeness, or any consequences arising from its use.