Skip to content

Commit

Permalink
Fixed Custom option price calculation is wrong with multi currency wh…
Browse files Browse the repository at this point in the history
…en option price type is percentage.
  • Loading branch information
Emipro authored and Amol Chaudhari committed Feb 15, 2019
1 parent 994348f commit cbf2c01
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/code/Magento/Catalog/Block/Product/View/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public function hasOptions()
*/
protected function _getPriceConfiguration($option)
{
$optionPrice = $this->pricingHelper->currency($option->getPrice(true), false, false);
$optionPrice = $option->getPrice(true);
$data = [
'prices' => [
'oldPrice' => [
Expand Down Expand Up @@ -195,7 +195,7 @@ protected function _getPriceConfiguration($option)
],
],
'type' => $option->getPriceType(),
'name' => $option->getTitle()
'name' => $option->getTitle(),
];
return $data;
}
Expand Down Expand Up @@ -231,7 +231,7 @@ public function getJsonConfig()
//pass the return array encapsulated in an object for the other modules to be able to alter it eg: weee
$this->_eventManager->dispatch('catalog_product_option_price_configuration_after', ['configObj' => $configObj]);

$config=$configObj->getConfig();
$config = $configObj->getConfig();

return $this->_jsonEncoder->encode($config);
}
Expand Down

0 comments on commit cbf2c01

Please sign in to comment.