clawrock / m2-customer-coupon
Module provides enhancements to sales rules.
Installs: 119
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 3
Open Issues: 0
Type:magento2-module
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: 2024-10-29 05:28:25 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 items
inActions
tab, - Select methods that you want to be free in
Apply free shipping to
tab,
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 customer
to assign it, - You can also assign customer to auto generated coupons, just go to
Manage Coupon Codes grid
and type customer email in input box.
Tests
To run test run from console: vendor/phpunit/phpunit/phpunit -c phpunit.xml.dist