A shopper selected SHIRT-RED, but the coupon gives no discount from the entry for that SKU. Start by checking the SKU the module reads on the line that the rule actually processes.
Use one rule and two variants
In Discount Rule per Product, select an active coupon rule. Prepare a configurable SHIRT and two variants priced at PLN 100 each. Test one unit with TEST15 in the same store view. Enable one 15% entry at a time for the parent SKU or SHIRT-RED and refresh totals between attempts.
Compare the lookup key and line discount
In the isolated 1.0.59 test, the rule received the parent row. Its current SKU could show the selected variant while the original product SKU was SHIRT. The plugin used the original SKU to look up an active entry in the store scope.
| Case | Entry SKU | Selected variant | SKU looked up | Discount |
|---|---|---|---|---|
| Parent with red | SHIRT | SHIRT-RED | SHIRT | 15 |
| Parent with blue | SHIRT | SHIRT-BLUE | SHIRT | 15 |
| Variant entry with red | SHIRT-RED | SHIRT-RED | SHIRT | 0 |
| Variant entry with blue | SHIRT-RED | SHIRT-BLUE | SHIRT | 0 |
The SHIRT entry gave PLN 15 in both cases. SHIRT-RED did not match the key looked up. The table shows the discount at the handoff to the native validator. Per-SKU discount documentation
Use the SKU read from the processed row
If the rule processes the parent line, check its catalog SKU and scope of the active entry. Select both variants in turn and check the final recalculated cart discount. If other promotions are present, also read the applied rule IDs. Guide to overlapping discounts
