Skip to content

Commit eb4937a

Browse files
committed
MAGETWO-66433: Save shipping discount in #5858
- Merge Pull Request #5858 from flancer64/magento2:patch-4
2 parents 2613378 + 795716e commit eb4937a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/code/Magento/SalesRule/Model/Quote/Discount.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ public function collect(
131131
$this->calculator->processShippingAmount($address);
132132
$total->addTotalAmount($this->getCode(), -$address->getShippingDiscountAmount());
133133
$total->addBaseTotalAmount($this->getCode(), -$address->getBaseShippingDiscountAmount());
134+
$total->setShippingDiscountAmount($address->getShippingDiscountAmount());
135+
$total->setBaseShippingDiscountAmount($address->getBaseShippingDiscountAmount());
134136
}
135137

136138
$this->calculator->prepareDescription($address);

0 commit comments

Comments
 (0)