Skip to content

Commit f7fb186

Browse files
author
Emipro
committed
Fixed Custom option price calculation is wrong with multi currency when option price type is percentage.
1 parent 8c2e178 commit f7fb186

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/code/Magento/Catalog/Block/Product/View/Options.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public function hasOptions()
160160
*/
161161
protected function _getPriceConfiguration($option)
162162
{
163-
$optionPrice = $this->pricingHelper->currency($option->getPrice(true), false, false);
163+
$optionPrice = $option->getPrice(true);
164164
$data = [
165165
'prices' => [
166166
'oldPrice' => [
@@ -195,7 +195,7 @@ protected function _getPriceConfiguration($option)
195195
],
196196
],
197197
'type' => $option->getPriceType(),
198-
'name' => $option->getTitle()
198+
'name' => $option->getTitle(),
199199
];
200200
return $data;
201201
}
@@ -231,7 +231,7 @@ public function getJsonConfig()
231231
//pass the return array encapsulated in an object for the other modules to be able to alter it eg: weee
232232
$this->_eventManager->dispatch('catalog_product_option_price_configuration_after', ['configObj' => $configObj]);
233233

234-
$config=$configObj->getConfig();
234+
$config = $configObj->getConfig();
235235

236236
return $this->_jsonEncoder->encode($config);
237237
}

0 commit comments

Comments
 (0)