-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Configurable product with a subproduct of price '0' results in an error #4314
Comments
I cannot re-create this bug.
Please provide any additional details to help re-create the bug you are seeing. |
Hello @kanduvisla , It will be available in next 2.1 release Thank you for reporting! |
related issue is #3912 |
Can you help me I need to fix this bug in 2.0.7 but I can't find the right way to make the overide of the resolveprice() function in app code. Someone can help me out? Here's my full question: magento.stackexchange.com/questions Can you help me @mikeweis @kanduvisla ?? |
[Owls] MC-16318: Flaky MFTF Test: MAGETWO-93965: creating scheduled update for staging dashboard with max year value
Steps to reproduce
Configurable product "%1" do not have sub-products
Expected result
That the product grid doesn't crash.
Actual result
The product grid crashes
Source + Fix
I think the source of this problem lies in
\Magento\ConfigurableProduct\Pricing\Price\ConfigurablePriceResolver::resolvePrice()
:The following line always sets the price to the lowest price:
With a price of '0', the
if (!$price)
will cause an exception to be thrown. The fix should be to strict check this:The text was updated successfully, but these errors were encountered: