Skip to content

Commit 783e999

Browse files
author
Mike Weis
committed
MAGETWO-44960: Catalog price rule not applied on product page when catalog prices are including taxes and displaying excluding taxes
- fixed
1 parent 0834cd7 commit 783e999

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Tax/Pricing/Render/Adjustment.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ protected function apply()
5454
$this->amountRender->setDisplayValue(
5555
$this->amountRender->getAmount()->getValue($this->getAdjustmentCode())
5656
);
57-
if ($this->taxHelper->priceIncludesTax()) {
57+
if ($this->taxHelper->priceIncludesTax() && $this->amountRender->getPriceType() == 'finalPrice') {
5858
// for dynamic calculations of prices with any options, use the base price amount
5959
$this->amountRender->setPriceType('basePrice');
6060
}

0 commit comments

Comments
 (0)