-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Bugfix/shipping rates result incorrect cost value #35202
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
base: 2.4-develop
Are you sure you want to change the base?
Bugfix/shipping rates result incorrect cost value #35202
Conversation
The shipping cost wasn't accurate when a shipment contained multiple packages as only the prices from the different packages were compiled, while the cost remained the one returned for a first package.
Related to commit #5327ddc4b706de9dc573194acf3481dfc8e33cb5 (magento@5327ddc) The shipping cost wasn't accurate when a shipment contained multiple packages as only the prices from the different packages were compiled, while the cost remained the one returned for a first package. (One request mode)
The cost values are missing when calling the Magento\Shipping\Model\Rate\Result::asArray() function, which is commonly called through Magento\Shipping\Model\Shipping::getResult().
Hi @nicolasddev. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Run only required test builds during development. Run all test builds before sending your pull request for review. For more details, review the Magento Contributor Guide documentation. 🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of Pull Requests happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket. ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
@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. |
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 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. |
Hi @engcom-Hotel, I would appreciate if you could take a moment to review these changes, as they were never merged and we must still use a patch to compensate for this discrepency. Please refer to my response dating back from April 2022 for more details; #35146 (comment). While no Magento feature currently uses these variables, a developer should be able to confirm that they should be present in order to maintain consistency with the various shipping modules. |
@magento run all tests |
Description (*)
Please refer to the issue #35146
Fixed Issues (if relevant)
Manual testing scenarios (*)
Alternative testing scenario:
cost
andcost_formatted
values in the response for the request made to the following URL: /rest/en_ca/V1/guest-carts/<quote_id>/estimate-shipping-methodsQuestions or comments
The cost values are important as, although not currently used on the frontend, these can be useful for recording accurate shipping estimates as a reference in the case where the price displayed on the frontend is inflated.
Contribution checklist (*)