Skip to content

Commit

Permalink
Convert MSRP currency of configurable product options
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Ashoka de Wit committed Mar 26, 2020
1 parent f3df323 commit 3f616ad
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ protected function getOptionPrices()
'tierPrices' => $tierPrices,
'msrpPrice' => [
'amount' => $this->localeFormat->getNumber(
$product->getMsrp()
$this->priceCurrency->convertAndRound($product->getMsrp())
),
],
];
Expand Down

0 comments on commit 3f616ad

Please sign in to comment.