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 committed Dec 7, 2018
1 parent 8c2e178 commit f7fb186
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 f7fb186

Please sign in to comment.