File tree 2 files changed +5
-5
lines changed
app/code/Magento/Catalog/Model/Product/Option/Type
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -341,7 +341,7 @@ public function getOptionPrice($optionValue, $basePrice)
341
341
{
342
342
$ option = $ this ->getOption ();
343
343
344
- return $ this ->_getChargableOptionPrice ($ option ->getPrice (), $ option ->getPriceType () == 'percent ' , $ basePrice );
344
+ return $ this ->_getChargeableOptionPrice ($ option ->getPrice (), $ option ->getPriceType () == 'percent ' , $ basePrice );
345
345
}
346
346
347
347
/**
@@ -395,14 +395,14 @@ public function getProductOptions()
395
395
}
396
396
397
397
/**
398
- * Return final chargable price for option
398
+ * Return final chargeable price for option
399
399
*
400
400
* @param float $price Price of option
401
401
* @param boolean $isPercent Price type - percent or fixed
402
402
* @param float $basePrice For percent price type
403
403
* @return float
404
404
*/
405
- protected function _getChargableOptionPrice ($ price , $ isPercent , $ basePrice )
405
+ protected function _getChargeableOptionPrice ($ price , $ isPercent , $ basePrice )
406
406
{
407
407
if ($ isPercent ) {
408
408
return $ basePrice * $ price / 100 ;
Original file line number Diff line number Diff line change @@ -231,7 +231,7 @@ public function getOptionPrice($optionValue, $basePrice)
231
231
foreach (explode (', ' , $ optionValue ) as $ value ) {
232
232
$ _result = $ option ->getValueById ($ value );
233
233
if ($ _result ) {
234
- $ result += $ this ->_getChargableOptionPrice (
234
+ $ result += $ this ->_getChargeableOptionPrice (
235
235
$ _result ->getPrice (),
236
236
$ _result ->getPriceType () == 'percent ' ,
237
237
$ basePrice
@@ -246,7 +246,7 @@ public function getOptionPrice($optionValue, $basePrice)
246
246
} elseif ($ this ->_isSingleSelection ()) {
247
247
$ _result = $ option ->getValueById ($ optionValue );
248
248
if ($ _result ) {
249
- $ result = $ this ->_getChargableOptionPrice (
249
+ $ result = $ this ->_getChargeableOptionPrice (
250
250
$ _result ->getPrice (),
251
251
$ _result ->getPriceType () == 'percent ' ,
252
252
$ basePrice
You can’t perform that action at this time.
0 commit comments