Skip to content

Commit ef68020

Browse files
author
Marcel Hauri
committed
[fix] typo in method name _getCharg[e]ableOptionPrice
1 parent 44502ff commit ef68020

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app/code/Magento/Catalog/Model/Product/Option/Type/DefaultType.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ public function getOptionPrice($optionValue, $basePrice)
338338
{
339339
$option = $this->getOption();
340340

341-
return $this->_getChargableOptionPrice($option->getPrice(), $option->getPriceType() == 'percent', $basePrice);
341+
return $this->_getChargeableOptionPrice($option->getPrice(), $option->getPriceType() == 'percent', $basePrice);
342342
}
343343

344344
/**
@@ -392,14 +392,14 @@ public function getProductOptions()
392392
}
393393

394394
/**
395-
* Return final chargable price for option
395+
* Return final chargeable price for option
396396
*
397397
* @param float $price Price of option
398398
* @param boolean $isPercent Price type - percent or fixed
399399
* @param float $basePrice For percent price type
400400
* @return float
401401
*/
402-
protected function _getChargableOptionPrice($price, $isPercent, $basePrice)
402+
protected function _getChargeableOptionPrice($price, $isPercent, $basePrice)
403403
{
404404
if ($isPercent) {
405405
return $basePrice * $price / 100;

app/code/Magento/Catalog/Model/Product/Option/Type/Select.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ public function getOptionPrice($optionValue, $basePrice)
222222
foreach (explode(',', $optionValue) as $value) {
223223
$_result = $option->getValueById($value);
224224
if ($_result) {
225-
$result += $this->_getChargableOptionPrice(
225+
$result += $this->_getChargeableOptionPrice(
226226
$_result->getPrice(),
227227
$_result->getPriceType() == 'percent',
228228
$basePrice
@@ -237,7 +237,7 @@ public function getOptionPrice($optionValue, $basePrice)
237237
} elseif ($this->_isSingleSelection()) {
238238
$_result = $option->getValueById($optionValue);
239239
if ($_result) {
240-
$result = $this->_getChargableOptionPrice(
240+
$result = $this->_getChargeableOptionPrice(
241241
$_result->getPrice(),
242242
$_result->getPriceType() == 'percent',
243243
$basePrice

0 commit comments

Comments
 (0)