File tree 1 file changed +5
-7
lines changed
app/code/Magento/Catalog/Block/Product/View 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 12
12
namespace Magento \Catalog \Block \Product \View ;
13
13
14
14
use Magento \Catalog \Model \Product ;
15
+ use Magento \Catalog \Model \Product \Option \Value ;
15
16
16
17
/**
17
18
* @api
20
21
*/
21
22
class Options extends \Magento \Framework \View \Element \Template
22
23
{
23
- /**
24
- * Option type percent
25
- */
26
- protected static $ typePercent = 'percent ' ;
27
-
28
24
/**
29
25
* @var Product
30
26
*/
@@ -165,8 +161,10 @@ public function hasOptions()
165
161
*/
166
162
protected function _getPriceConfiguration ($ option )
167
163
{
168
- $ option ->getPriceType () == self ::$ typePercent ? $ optionPrice = $ option ->getPrice (true ) :
169
- $ optionPrice = $ this ->pricingHelper ->currency ($ option ->getPrice (true ), false , false );
164
+ $ optionPrice = $ option ->getPrice (true );
165
+ if ($ option ->getPriceType () != Value::TYPE_PERCENT ) {
166
+ $ optionPrice = $ this ->pricingHelper ->currency ($ optionPrice , false , false );
167
+ }
170
168
$ data = [
171
169
'prices ' => [
172
170
'oldPrice ' => [
You can’t perform that action at this time.
0 commit comments