Skip to content

Commit 3f616ad

Browse files
author
Ashoka de Wit
committed
Convert MSRP currency of configurable product options
The MSRP of configurable products is updated in Javascript when an option is chosen. Javascript uses an object with prices of the options. The prices in this object are converted to the chosen currency. MSRP prices however were not converted, leading to the price being displayed in a wrong currency.
1 parent f3df323 commit 3f616ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/ConfigurableProduct/Block/Product/View/Type/Configurable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ protected function getOptionPrices()
321321
'tierPrices' => $tierPrices,
322322
'msrpPrice' => [
323323
'amount' => $this->localeFormat->getNumber(
324-
$product->getMsrp()
324+
$this->priceCurrency->convertAndRound($product->getMsrp())
325325
),
326326
],
327327
];

0 commit comments

Comments
 (0)