Skip to content

Commit 23382ed

Browse files
author
Max Souza
committed
Added description discount for each summary
1 parent 3fe8a17 commit 23382ed

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/code/Magento/SalesRule/Model/RulesApplier.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,11 @@ public function addDiscountDescription($address, $rule)
122122
$label = $ruleLabel;
123123
} else {
124124
if (strlen($address->getCouponCode())) {
125-
$label = $address->getCouponCode();
125+
$label = $address->getCouponCode();
126+
127+
if ($rule->getDescription()) {
128+
$label = $rule->getDescription();
129+
}
126130
}
127131
}
128132

0 commit comments

Comments
 (0)