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.
Build Tests
Code Quality
Tested on Magento 2.4.8-p3
Recent Test History
Each release is tested against the latest Magento version at that time.
Top Contributors
View LeaderboardLooking for Contributors
Dependency injection compilation fails. Your contribution could help the entire Magento community!
Share This Module's Status
README
Loaded from GitHubGift Sales Rule 
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 ?

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

-
Configure cart price rules to select gift products and the price range

-
Display gift product popin

-
Display added gift product in 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 |
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.