Commerce Referral provides a backend framework for managing referrals within Drupal Commerce, without prescribing how users interact with the referral system.
Rather than hard-coding discounts or flows, the module integrates with Commerce Promotions, allowing the incentive for the referrer and the incentive for the referee to be configured independently and with all the functionality that comes with Commerce Promotions. Each side of the referral can use its own promotion, with its own conditions, limits, and applicability.
In addition, referrals themselves can have conditions applied. For example, it’s possible to limit how many referrals a user can make, or restrict referrals based on custom business rules. Any conditions defined on the associated Commerce Promotions are also respected, ensuring consistent behaviour across the commerce system.
This layered approach makes Commerce Referral adaptable to a wide range of referral workflows, from simple incentive schemes to more complex, rule-driven models.