-
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
Issues 5762 and 6799 and probably 5948 #7030
Issues 5762 and 6799 and probably 5948 #7030
Conversation
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.
Experienced this bug (as I guess anyone with a non-trivial store would). This changes fixes this oversight on M2 2.2 develop branch. This should be marked as critical
Can confirm the bug and that this pull request fixes it. This is absolutely urgent and should be released as a patch for 1.1.2., otherwise we can't apply the security patch. |
Please merge. |
Faced the same bug and can confirm this fixes it. Please merge it on priority bases |
I think this is not the correct way to solve this problem. |
it only works if the first child is out of stock and other child products are in stock. If one of the children products (except the first one) is out of stock, this bug still exists. |
Does anyone know if this issue is being tracked "internally"? (..ah the joys of open source/community) |
Hi everyone. @sitepodmatt yes issue is tracked internally with id MAGETWO-60703. @nissablagojevic can you try to resolve conflicts Thanks |
Ok, so I feel like I probably messed up this PR by merging upstream. Also those Travis CI checks that failed aren't even my work, so not sure how to proceed from here at all. @sereban |
Hi nissablagojevic, Best way imho would be to reset your branch nissablagojevic/configurable_get_subproduct to c2e1480c0e71ae50cfd938942630533a5f0a7e4c to begin. git clean -fd Then ensure your develop branch is up-to-date with the latest big dump of "tracked internally" changes/fix dropped on the 6th.. I am presuming that the repo you have for origin is not magento2/magento but your own fork so let's add another origin git remote add upstream https://github.com/magento/magento2.git Then your develop branch should be on 732d445 Then switch back to nissablagojevic/configurable_get_subproduct and do: This should then replay your changes on top of latest develop branch. You will have to force push up to configurable_get_subproduct since history has been rewritten. Alt, start a new branch off develop and cherry-pick c2e1480c0e71ae50cfd938942630533a5f0a7e4c although rebasing is a better habit to get in if chasing the progress of develop with your own "tracked internally" fixes |
Hi @nissablagojevic, |
…Builders and a limit of PHP_INT_MAX to ConfigurableOptionsProvider
ade2a22
to
0b8581c
Compare
Because you asked so nicely @staffrob and thanks to @sitepodmatt for providing such great instructions on how to fix my repo, I've just fixed it up for you. You can see the relevant files in the latest commit. :) Please note I especially have no idea how well this will work with 2.1.3, although I've experienced no repercussions yet in 2.1.2 |
Thanks very much @nissablagojevic! Much appreciated! Unfortunately this has no effect in 2.1.3, only now the prices of products with out of stock configurable option show as $0 on the frontend. |
@nissablagojevic thank you for PR. Could you please resolve conflicts so that we can proceed with PR acceptance. Thank you |
Closing this PR due to inactivity |
Small summary:
The array of subproducts retrieved by ConfigurableOptionsProvider()->getProducts($product) is incorrectly being limited to the first enabled product by the SQL generated in the LinkedProductSelectBuilders. If the first subproduct is out of stock, entire catalog crashes. This fix adds an optional argument to the LinkedProductSelectBuilders to allow them to retrieve more than 1 subproduct, fixing the crash.
This crash was acknowledged in #6799 but hasn't yet been assigned.