-
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
Fix shipping total amount calculation for multishipping addresses #37272
Fix shipping total amount calculation for multishipping addresses #37272
Conversation
Hi @ilnytskyi. Thank you for your contribution! Add the comment under your pull request to deploy test or vanilla Magento instance:
❗ Automated tests can be triggered manually with an appropriate comment:
Allowed build names are:
You can find more information about the builds here For more details, review the Code Contributions documentation. |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
Failling tests seem not related to changes |
@magento create issue |
Hello @ilnytskyi, Thanks for the contribution! Please have a look at the comment here #37283 (comment) and let us know if we have missed anything in order to reproduce the issue. Thanks |
Hi @engcom-Hotel, As per this comment, moving this PR in Review now as the issue is confirmed. Thank you! |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues. |
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.
Hello @ilnytskyi,
Thanks for the contribution!
It seems some builds are failing due to PR changes. We request you to please look into those and please cover the PR changes with some automated tests.
Thanks
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues. |
@engcom-Hotel it looks like the build failing due to merge of the main branch. I do not see any failing tests related to checkout or multishipping |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues. |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please message the #magento-devops slack channel if they don't show in a reasonable amount of time and a representative will look into any issues. |
up |
@magento run all tests |
Hello @ilnytskyi, No file changes are visible in this PR, so it will be closed for now. Please reopen if there are any updates or if something was missed. Thanks. |
@engcom-Dash dont know how, but my changes already in 2.4-develop branch - https://github.com/magento/magento2/blame/2.4-develop/app/code/Magento/Tax/Model/Sales/Total/Quote/Shipping.php#L41 so probalby merged within other PR |
Description (*)
When Quote contains more than one shipping address, the total collector updates shipping amount for address given in
$quote->getShippingAddress()
instead of passed via$shippingAssignment
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
$quote->getShippingAddress()
with virtual items only$quote->getShippingAddress()
has fieldsshipping_amount
andbase_shipping_amount
equal 0.Questions or comments
Currently that address would contain shipping_amount and base_shipping_amount greater than zero but
shipping_incl_tax
equals zero that is wrong for multishipping quotesContribution checklist (*)
Resolved issues: