Skip to content

Commit 5307170

Browse files
committed
AC-15718: Wrong "As low as" price display for configurable products when FPT is enabled
preserves the original intent of the plugin (including WEEE in configurable product prices) while preventing the double tax application bug
1 parent 620b078 commit 5307170

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/Weee/Plugin/ConfigurableProduct/Pricing/FinalPriceResolver.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use Magento\Catalog\Pricing\Price\FinalPrice as CatalogFinalPrice;
1111
use Magento\ConfigurableProduct\Pricing\Price\FinalPriceResolver as ConfigurableProductFinalPriceResolver;
1212
use Magento\Framework\Pricing\SaleableInterface;
13+
use Magento\Tax\Pricing\Adjustment;
1314
use Magento\Weee\Helper\Data as WeeeHelperData;
1415

1516
class FinalPriceResolver
@@ -44,7 +45,7 @@ public function afterResolvePrice(
4445
SaleableInterface $product
4546
):float {
4647
return $this->weeePriceDisplay()
47-
? $product->getPriceInfo()->getPrice(CatalogFinalPrice::PRICE_CODE)->getAmount()->getValue()
48+
? $product->getPriceInfo()->getPrice(CatalogFinalPrice::PRICE_CODE)->getAmount()->getValue(Adjustment::ADJUSTMENT_CODE)
4849
: $product->getPriceInfo()->getPrice(CatalogFinalPrice::PRICE_CODE)->getValue();
4950
}
5051

0 commit comments

Comments
 (0)