File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
app/code/Magento/Catalog/Model/Product/Option/Type Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -338,7 +338,7 @@ public function getOptionPrice($optionValue, $basePrice)
338
338
{
339
339
$ option = $ this ->getOption ();
340
340
341
- return $ this ->_getChargableOptionPrice ($ option ->getPrice (), $ option ->getPriceType () == 'percent ' , $ basePrice );
341
+ return $ this ->_getChargeableOptionPrice ($ option ->getPrice (), $ option ->getPriceType () == 'percent ' , $ basePrice );
342
342
}
343
343
344
344
/**
@@ -392,14 +392,14 @@ public function getProductOptions()
392
392
}
393
393
394
394
/**
395
- * Return final chargable price for option
395
+ * Return final chargeable price for option
396
396
*
397
397
* @param float $price Price of option
398
398
* @param boolean $isPercent Price type - percent or fixed
399
399
* @param float $basePrice For percent price type
400
400
* @return float
401
401
*/
402
- protected function _getChargableOptionPrice ($ price , $ isPercent , $ basePrice )
402
+ protected function _getChargeableOptionPrice ($ price , $ isPercent , $ basePrice )
403
403
{
404
404
if ($ isPercent ) {
405
405
return $ basePrice * $ price / 100 ;
Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ public function getOptionPrice($optionValue, $basePrice)
222
222
foreach (explode (', ' , $ optionValue ) as $ value ) {
223
223
$ _result = $ option ->getValueById ($ value );
224
224
if ($ _result ) {
225
- $ result += $ this ->_getChargableOptionPrice (
225
+ $ result += $ this ->_getChargeableOptionPrice (
226
226
$ _result ->getPrice (),
227
227
$ _result ->getPriceType () == 'percent ' ,
228
228
$ basePrice
@@ -237,7 +237,7 @@ public function getOptionPrice($optionValue, $basePrice)
237
237
} elseif ($ this ->_isSingleSelection ()) {
238
238
$ _result = $ option ->getValueById ($ optionValue );
239
239
if ($ _result ) {
240
- $ result = $ this ->_getChargableOptionPrice (
240
+ $ result = $ this ->_getChargeableOptionPrice (
241
241
$ _result ->getPrice (),
242
242
$ _result ->getPriceType () == 'percent ' ,
243
243
$ basePrice
You can’t perform that action at this time.
0 commit comments