Discount Rule per Product
Composer kowal/module-discountruleperproduct · Version 1.0.59
Product page
Discount Rule per Product — kowal.co
Description
Applies one cart coupon while allowing different discount values for individual SKUs.
For whom
For merchants running a single-code campaign across products with different margins.
Features
- Percentage and fixed discounts by SKU.
- Admin management and bulk import of discount entries.
- Configurable form labels and display of the coupon and discount value.
Installation
From the Magento root, with Composer access to the Kowal package, run
composer require kowal/module-discountruleperproduct
bin/magento module:enable Kowal_DiscountRulePerProduct
bin/magento setup:upgrade
bin/magento cache:clean
Configuration
- Create an active cart price rule with a coupon.
- Under Discount Rule per Product → General Settings, enable the module and select that rule under Cart Price Rule.
- Under Product Discounts per SKU → Manage Product Discounts, add active entries with the SKU, store scope, discount type and value.
Requirements / notes
The package requires kowal/base. Test with the coupon belonging to the configured rule and products that satisfy its conditions.
FAQ
Why does adding the product leave the price unchanged?
Apply the configured rule’s coupon. Check that the entry for the SKU has a positive discount value and the appropriate store scope.
Verify the installation
bin/magento module:status Kowal_DiscountRulePerProduct
Place one unit each of two products in a test cart. Configure a percentage discount for the first and a fixed discount for the second. Apply the coupon and compare each line’s discount with its own setting.