clawrock / m2-customer-coupon
Module provides enhancements to sales rules.
Installs: 122
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 0
Forks: 3
Open Issues: 0
Type:magento2-module
pkg:composer/clawrock/m2-customer-coupon
Requires
- magento/framework: >=100.1
- magento/module-backend: >=100.1
- magento/module-customer: >=100.1
- magento/module-offline-shipping: >=100.1
- magento/module-quote: >=100.1
- magento/module-sales-rule: >=100.1
- magento/module-shipping: >=100.1
- magento/module-webapi: >=100.1
- magento/zendframework1: ^1.12
Requires (Dev)
- phpunit/phpunit: ~6.2.0
This package is auto-updated.
Last update: 2025-10-29 02:03:18 UTC
README
Module provides enhancements to sales rules, such as:
- search for all coupons assigned to rule (Magento 2.2+ required)
- free shipping for specified methods
- coupon assigned directly to customer, visible on customer account
Requirements
- Magento 2.1+
Installation (using composer)
- composer require clawrock/m2-customer-coupon
- php bin/magento setup:upgrade
Installation (manually)
- Clone the repository to app/code/ClawRock/CustomerCoupon
- php bin/magento setup:upgrade
Configuration
- Go to Stores -> Configuration -> ClawRock -> Customer Coupon
- You can modify message that will be displayed in customer account when he is lack of coupons assigned.
Free shipping for specified methods
- Go to Marketing -> Cart Price Rules, select rule or create new one,
- IMPORATNT! To make this option works, you have to select Free shipping - for shipment with matching itemsinActionstab,
- Select methods that you want to be free in Apply free shipping totab,
Assign coupon to customer
- Go to Marketing -> Cart Price Rules, select rule or create new one,
- If you have specific coupon, add customer email to Coupon assigned to customerto assign it,
- You can also assign customer to auto generated coupons, just go to Manage Coupon Codes gridand type customer email in input box.
Tests
To run test run from console: vendor/phpunit/phpunit/phpunit -c phpunit.xml.dist