-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Wishlist: product with price 0 will break "My wishlist" #21949
Comments
Hi @qsolutions-pl. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. @qsolutions-pl do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
Hi @shikhamis11. Thank you for working on this issue.
|
@magento-engcom-team give me 2.2-develop instance |
Hi @shikhamis11. Thank you for your request. I'm working on Magento 2.2-develop instance for you |
Hi @shikhamis11, here is your Magento instance. |
@qsolutions-pl this issue is not reproduceable at current 2.2-develop instance or 2.3-develop instance . It seems it is already fixed. Let me know here if you are still facing this issue in latest versions |
I was able to reproduce this issue on Magento 2.2.5 |
@qsolutions-pl This is the fix. |
Preconditions (*)
Steps to reproduce (*)
Expected result (*)
Actual result (*)
"PHP Fatal error: Uncaught TypeError: Argument 1 passed to Magento\\Catalog\\Pricing\\Price\\ConfiguredOptions::getItemOptionsValue() must be of the type float, boolean given"
The problem is this file
vendor/magento/module-catalog/Pricing/Price/RegularPrice.php
ingetValue
methodIt should return 0, not false, because this class
vendor/magento/module-catalog/Pricing/Price/ConfiguredOptions.php
requires
FLOAT
parameter, notBOOLEAN
public function getItemOptionsValue(float $basePrice, ItemInterface $item): float
Simple and easy to fix :-)
The text was updated successfully, but these errors were encountered: