Product-Specific Discounts in a Single Price Rule for Magento 2
- Compatibility
- 2.4.9, 2.4.8, 2.4.7, 2.4.6, 2.4.5, 2.4.4, 2.4.3, 2.4.2, 2.4.1, 2.4.0
Description / Product-Specific Discounts in a Single Price Rule for Magento 2
MAGENTO 2 · PROMOTIONS · SKU · SPREADSHEET IMPORT
One campaign, different discounts for selected SKUs.
Kowal Discount Rule Per Product
Connect a Magento coupon rule with a table of custom discounts. Manage percentage and fixed-amount values, store views, and spreadsheet data import.
Percentage or amount · One coupon rule · Bulk data pasting
HOW IT WORKS IN PRACTICE
01 · Select a coupon rule
You choose the Magento rule for your campaign.
02 · Add discounts per SKU
You enter values manually or import a list.
03 · The customer uses the coupon
The module applies the assigned discounts during the cart process.
What does your store gain?
Explore the module features, use cases, and settings.
What does this module do?
The module lets you assign different discounts to specific products while using one shared promotional rule in Magento.
It works like this:
You create one cart price rule with a coupon, for example RABAT10.
In the module, you add a list of products and their custom discounts:
Product A → 10%
Product B → 5 zł
Product C → 20%
The customer enters the coupon in the cart.
The module automatically:
checks the products in the cart,
finds their custom discounts,
applies the appropriate discounts per SKU.
Why is this so important?
Marketing and e-commerce teams very often work in Excel:
newsletter campaigns with a discount on specific products,
seasonal campaigns for part of the catalog,
B2B promotions with custom discounts per SKU,
sales of mixed product sets from manufacturers.
The problem in Magento is that the standard rule mechanism does not make it easy to create different discounts for different products under one coupon.
Our solution:
- works exactly the way marketers think
- simplifies promotion management
- reduces the need to create separate rules per SKU; the shared rule settings still matter
- gives you full flexibility and full control over discounts
How are discounts managed?
The module has its own admin panel:
Discount list
table view with inline editing,
filtering by SKU, status, discount type, store view,
mass delete, inline editing, and discount list import.
Add / edit discount form
Fields:
product SKU
discount value, amount or percentage
discount type
store view
status
Bulk import from Excel
The most marketing-friendly feature:
you paste data directly from Excel or paste CSV/TSV data into the form, and you are done.
The module automatically:
adds new discounts,
updates existing ones,
skips invalid lines,
generates a report.
Import multiple discounts: you can prepare up to 1000 items in a spreadsheet and paste them in bulk. Import time depends on the number of entries and store performance; the stated 5 seconds is not a guaranteed result.
Main module benefits
- One rule — hundreds of custom discounts
You do not need hundreds of Magento rules. - Simpler product list configuration
Marketers love simple solutions → the SKU list reduces manual product condition building. - Full discount flexibility
- percentage discount
- fixed-amount discount
- per SKU
- per store view
- active / inactive
- Bulk actions
- import from Excel
- mass delete
- inline editing
- Predictable results
One table organizes discount assignments. Conflicts, promotion stacking, and final amounts should be checked in the cart configuration.
Who is this module for?
stores that often run promotions on specific SKUs
e-commerce businesses with a broad catalog
B2B stores with custom discounts for customers
marketers working with spreadsheets
companies that want to simplify promotion management
Use case example
I want one coupon to provide:
10% off athletic shoes
20 zł off backpacks
30% off accessories
but only for selected SKUs.
In Magento = requires several complex rules
In the module = 1 rule + a list of discounts per SKU
Summary
The Kowal_DiscountRulePerProduct module is the ideal tool if you want to:
simplify promotions,
increase discount flexibility,
streamline marketing work,
reduce configuration time from hours to minutes,
eliminate errors in standard Magento rules.
Standard Magento cart rules
The built-in promotion mechanism in Magento 2 is based on cart rules that:
require building complex conditions (Conditions)
quickly become difficult to read
are hard to modify over time
make different discounts for different products in one campaign practically impossible
In practice, this means:
many nearly identical rules
chaos in the admin panel
a high risk of promotion errors
Result: marketing teams are afraid to touch promotions, and developers get pulled into every change.
One cart rule + one discount table for SKUs
Kowal – Discount Rule Per Product introduces a completely different way of working:
Instead of:
creating separate rules
complicating conditions
you simply:
assign a discount to a specific product, SKU
define its type, percentage or fixed amount, and value
use one shared rule and coupon or coupon pool
Each product can have a different discount — within the same promotion.
Percentage discounts
Ideal for:
seasonal promotions
sales
discount campaigns based on margin
Example:
Product A → –10%
Product B → –25%
Product C → –5%
All within one cart rule.
Fixed-amount discounts
Ideal for:
fixed-price products
–50 zł on selected products campaigns
performance campaigns
Example:
Product A → –20 zł
Product B → –100 zł
- Product C → –200 zł
Magento automatically applies the correct discount only to the assigned SKU.
Import — format and entry updates
The proven form accepts data pasted from a spreadsheet: SKU, value, type, store_id, and status. The separator is TAB or comma, and the discount type is percent or fixed. Example: SKU-001,10,percent,0,1.
An existing SKU + store_id entry is updated when overwrite is enabled; otherwise, it is skipped. The summary shows the number of new, updated, and skipped rows. A separate CSV/TSV file upload has not been confirmed for this form.
Coupon activation and calculation
In Stores → Configuration → Kowal → Discount Rule per Product, you enable the module and select a Cart Price Rule. The logic covers the selected coupon rule, the coupon entered in the cart, and an active entry for the SKU in the current or global view.
The fixed amount is calculated per unit and multiplied by quantity; the percentage is based on the product value and quantity. The code takes into account the setting for calculating the discount from the net or gross price, as well as the limit to the item value. Interaction with other rules and currencies requires checking the cart.
Promotion communication on the storefront
The configuration also includes the coupon form, its label and button, visibility of the code and discount value, plus message text and colors. The package includes display on the product page and labels on the category list.
The SKU list makes product selection easier, but it does not remove the importance of rule activity, website scope, customer groups, priorities, and promotion restrictions. It also does not guarantee import time or the absence of conflicts with other discounts.
Installation via Composer
Package kowal/module-discountruleperproduct, module Kowal_DiscountRulePerProduct. After configuring access to the Kowal repository, install the package, enable the module, update Magento, and clear the cache. In production, include compilation and static content deployment according to your store process.
See the module interface




From configuration to result
1. Select a coupon rule
You choose the Magento rule for your campaign.
2. Add discounts per SKU
You enter values manually or import a list.
3. The customer uses the coupon
The module applies the assigned discounts during the cart process.
Different discounts under one coupon
In one campaign, you configure 10% off selected shoes, 20 zł off backpacks, and 30% off accessories. You assign each discount to a specific SKU.
Before launch, you check the calculation in the cart, quantities, taxes, and interaction with other promotions.
Make product discount management easier for marketing
Want to adapt the module to your store? Ask about implementing Kowal Discount Rule Per Product and discuss the configuration or required extensions.
More Information
| Theme compatibility | Luma / Blank, KOWAL |
|---|
Questions and Answers
Does the module support both a single discount code and a pool of coupons?
Does the module work properly with Magento 2.4.x, Multi-Store, and Multi-Website?
How is this module different from standard Magento cart rules?
Can I bulk import discounts from Excel or CSV?
Can I edit discounts without opening each record?
What types of discounts does the module support?
Does the module affect the final order summary and reports?
Is the module secure and ready to use in large stores?
Module Installation Instructions
Installation via Composer
You will receive Composer repository access details, customer email address and license token, by email after purchase. They are also available in the customer panel after logging in at kowal.store. Replace TWOJ_EMAIL_KLIENTA with the email address of your account and TWOJ_TOKEN with the token you received. Run the commands in the Magento root directory.
composer config repositories.kowal composer https://repo.kowal.storecomposer config http-basic.repo.kowal.store 'TWOJ_EMAIL_KLIENTA' 'TWOJ_TOKEN'composer require kowal/module-discountruleperproductCompleting the installation
After installing the package, update Magento and clear the cache:
php bin/magento setup:upgradephp bin/magento cache:flushIn a production environment, also run DI compilation and static file deployment according to your store deployment process.
Customer Reviews
For RUNMAGEDDON, we implemented the Product Discounts module to enable precise promotion management at the individual product level, without the need to create multiple complex pricing rules.
The solution allows individual discounts to be assigned directly to specific products, with full control over their value and scope. This enables RUNMAGEDDON to respond flexibly to sales needs—promoting selected products, series, or special offers—without interfering with the store’s global pricing mechanisms.
The module was designed to operate based on native Magento logic, maintaining compatibility with other promotions and clear pricing for the end customer. The result is clear discount communication on the product page, simplified promotion management in the admin panel, and greater flexibility in running dynamic sales campaigns.