Skip to content

Commit 784099e

Browse files
Marcel Hauriosrecio
Marcel Hauri
authored andcommitted
typo in method name _getCharg[e]ableOptionPrice
1 parent d849f99 commit 784099e

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
@@ -341,7 +341,7 @@ public function getOptionPrice($optionValue, $basePrice)
341341
{
342342
$option = $this->getOption();
343343

344-
return $this->_getChargableOptionPrice($option->getPrice(), $option->getPriceType() == 'percent', $basePrice);
344+
return $this->_getChargeableOptionPrice($option->getPrice(), $option->getPriceType() == 'percent', $basePrice);
345345
}
346346

347347
/**
@@ -395,14 +395,14 @@ public function getProductOptions()
395395
}
396396

397397
/**
398-
* Return final chargable price for option
398+
* Return final chargeable price for option
399399
*
400400
* @param float $price Price of option
401401
* @param boolean $isPercent Price type - percent or fixed
402402
* @param float $basePrice For percent price type
403403
* @return float
404404
*/
405-
protected function _getChargableOptionPrice($price, $isPercent, $basePrice)
405+
protected function _getChargeableOptionPrice($price, $isPercent, $basePrice)
406406
{
407407
if ($isPercent) {
408408
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
@@ -231,7 +231,7 @@ public function getOptionPrice($optionValue, $basePrice)
231231
foreach (explode(',', $optionValue) as $value) {
232232
$_result = $option->getValueById($value);
233233
if ($_result) {
234-
$result += $this->_getChargableOptionPrice(
234+
$result += $this->_getChargeableOptionPrice(
235235
$_result->getPrice(),
236236
$_result->getPriceType() == 'percent',
237237
$basePrice
@@ -246,7 +246,7 @@ public function getOptionPrice($optionValue, $basePrice)
246246
} elseif ($this->_isSingleSelection()) {
247247
$_result = $option->getValueById($optionValue);
248248
if ($_result) {
249-
$result = $this->_getChargableOptionPrice(
249+
$result = $this->_getChargeableOptionPrice(
250250
$_result->getPrice(),
251251
$_result->getPriceType() == 'percent',
252252
$basePrice

0 commit comments

Comments
 (0)