-
Notifications
You must be signed in to change notification settings - Fork 9.4k
[Backport] [fix] typo in method name _getCharg[e]ableOptionPrice #17118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -335,7 +335,7 @@ public function getOptionPrice($optionValue, $basePrice) | |
| { | ||
| $option = $this->getOption(); | ||
|
|
||
| return $this->_getChargableOptionPrice($option->getPrice(), $option->getPriceType() == 'percent', $basePrice); | ||
| return $this->_getChargeableOptionPrice($option->getPrice(), $option->getPriceType() == 'percent', $basePrice); | ||
| } | ||
|
|
||
| /** | ||
|
|
@@ -389,14 +389,26 @@ public function getProductOptions() | |
| } | ||
|
|
||
| /** | ||
| * Return final chargable price for option | ||
| * | ||
| * @param float $price Price of option | ||
| * @param boolean $isPercent Price type - percent or fixed | ||
| * @param float $basePrice For percent price type | ||
| * @return float | ||
| * @see _getChargeableOptionPrice | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Method _getChargeableOptionPrice does not exist |
||
| */ | ||
| protected function _getChargableOptionPrice($price, $isPercent, $basePrice) | ||
| { | ||
| return $this->getChargeableOptionPrice($price, $isPercent, $basePrice); | ||
| } | ||
|
|
||
| /** | ||
| * Return final chargeable price for option | ||
| * | ||
| * @param float $price Price of option | ||
| * @param boolean $isPercent Price type - percent or fixed | ||
| * @param float $basePrice For percent price type | ||
| * @return float | ||
| */ | ||
| protected function getChargeableOptionPrice($price, $isPercent, $basePrice) | ||
| { | ||
| if ($isPercent) { | ||
| return $basePrice * $price / 100; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -222,7 +222,7 @@ public function getOptionPrice($optionValue, $basePrice) | |
| foreach (explode(',', $optionValue) as $value) { | ||
| $_result = $option->getValueById($value); | ||
| if ($_result) { | ||
| $result += $this->_getChargableOptionPrice( | ||
| $result += $this->_getChargeableOptionPrice( | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Method _getChargeableOptionPrice does not exist |
||
| $_result->getPrice(), | ||
| $_result->getPriceType() == 'percent', | ||
| $basePrice | ||
|
|
@@ -237,7 +237,7 @@ public function getOptionPrice($optionValue, $basePrice) | |
| } elseif ($this->_isSingleSelection()) { | ||
| $_result = $option->getValueById($optionValue); | ||
| if ($_result) { | ||
| $result = $this->_getChargableOptionPrice( | ||
| $result = $this->_getChargeableOptionPrice( | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Method _getChargeableOptionPrice does not exist |
||
| $_result->getPrice(), | ||
| $_result->getPriceType() == 'percent', | ||
| $basePrice | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Method _getChargeableOptionPrice does not exist