-
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
#26622 - Check quote item for parentItem instead of parentItemId #26623
#26622 - Check quote item for parentItem instead of parentItemId #26623
Conversation
…Id, as the latter is only set in beforeSave function.
Hi @aligent-lturner. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
@ihor-sviziev changes made as requested. Modified existing test case in |
@ihor-sviziev I had to move the functionality into a separate function to reduce the cyclomatic complexity. |
Hi @ihor-sviziev, thank you for the review. |
Hi @aligent-lturner, thank you for your contribution! |
Description (*)
This PR fixes issue #26622 - a "fixed amount for whole cart" discount is calculated incorrectly when a configurable product is first added to the cart. This change is to use
getParentItem
instead ofgetParentItemId
from the quote item when determining if it should be skipped. This is becauseparentItem
is set when the quote item is created, butparentItemId
is only set in itsbeforeSave
function.Fixed Issues (if relevant)
Manual testing scenarios (*)
Contribution checklist (*)