We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbf2c01 commit ee8402fCopy full SHA for ee8402f
app/code/Magento/Catalog/Block/Product/View/Options.php
@@ -20,6 +20,11 @@
20
*/
21
class Options extends \Magento\Framework\View\Element\Template
22
{
23
+ /**
24
+ * Option type percent
25
+ */
26
+ protected static $typePercent = 'percent';
27
+
28
/**
29
* @var Product
30
@@ -160,7 +165,8 @@ public function hasOptions()
160
165
161
166
protected function _getPriceConfiguration($option)
162
167
163
- $optionPrice = $option->getPrice(true);
168
+ $option->getPriceType() == self::$typePercent ? $optionPrice = $option->getPrice(true) :
169
+ $optionPrice = $this->pricingHelper->currency($option->getPrice(true), false, false);
164
170
$data = [
171
'prices' => [
172
'oldPrice' => [
0 commit comments