Skip to content

Commit c1ac94d

Browse files
ENGCOM-3006: Fix shipping discount failed to apply during place order #18098
- Merge Pull Request #18098 from torreytsui/magento2:feature/fix-shipping-discount-failed-to-apply - Merged commits: 1. 1010526
2 parents 50a4da0 + 1010526 commit c1ac94d

File tree

1 file changed

+2
-3
lines changed
  • app/code/Magento/Tax/Model/Sales/Total/Quote

1 file changed

+2
-3
lines changed

app/code/Magento/Tax/Model/Sales/Total/Quote/Tax.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,8 @@ protected function clearValues(Address\Total $total)
164164
$total->setBaseShippingInclTax(0);
165165
$total->setShippingTaxAmount(0);
166166
$total->setBaseShippingTaxAmount(0);
167-
$total->setShippingAmountForDiscount(0);
168-
$total->setBaseShippingAmountForDiscount(0);
169-
$total->setBaseShippingAmountForDiscount(0);
167+
$total->setShippingAmountForDiscount(null);
168+
$total->setBaseShippingAmountForDiscount(null);
170169
$total->setTotalAmount('extra_tax', 0);
171170
$total->setBaseTotalAmount('extra_tax', 0);
172171
}

0 commit comments

Comments
 (0)