-
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
[Backport] [fix] typo in method name _getCharg[e]ableOptionPrice #17118
Conversation
| * @param boolean $isPercent Price type - percent or fixed | ||
| * @param float $basePrice For percent price type | ||
| * @return float | ||
| * @deprecated 102.0.4 typo in method name |
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.
This is incorrect module version for 2.1 release line
| * @param float $basePrice For percent price type | ||
| * @return float | ||
| */ | ||
| protected function _getChargeableOptionPrice($price, $isPercent, $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.
It would make sense to remove underscore, if renaming method anyway.
|
@ishakhsuvarov I have performed requested changes. |
| $option = $this->getOption(); | ||
|
|
||
| return $this->_getChargableOptionPrice($option->getPrice(), $option->getPriceType() == 'percent', $basePrice); | ||
| return $this->_getChargeableOptionPrice($option->getPrice(), $option->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
| * @param boolean $isPercent Price type - percent or fixed | ||
| * @param float $basePrice For percent price type | ||
| * @return float | ||
| * @see _getChargeableOptionPrice |
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
| $_result = $option->getValueById($value); | ||
| if ($_result) { | ||
| $result += $this->_getChargableOptionPrice( | ||
| $result += $this->_getChargeableOptionPrice( |
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
| $_result = $option->getValueById($optionValue); | ||
| if ($_result) { | ||
| $result = $this->_getChargableOptionPrice( | ||
| $result = $this->_getChargeableOptionPrice( |
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
Original Pull Request
#15276
Description
Method name
\Magento\Catalog\Model\Product\Option\Type::_getChargableOptionPricecontained typo.Renamed it to
_getChargeableOptionPrice.Contribution checklist