-
Notifications
You must be signed in to change notification settings - Fork 9.4k
magento/magento2#31206: Selected shipping method does not contain val… #31322
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
magento/magento2#31206: Selected shipping method does not contain val… #31322
Conversation
…ing tax - added values to schema price_excl_tax price_incl_tax
Hi @sasha19957099. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review. For more details, please, 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, please join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
@magento run all tests |
Any news over this, when will it be included? |
@@ -263,6 +263,8 @@ type SelectedShippingMethod { | |||
method_title: String! | |||
amount: Money! | |||
base_amount: Money @deprecated(reason: "The field should not be used on the storefront") | |||
price_excl_tax: Money! |
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.
First option:
'price' word should be change to 'amount' resulting in
amount_excl_tax: Money!
amount__incl_tax: Money!
Second option:
amount and prices can't be used interchangeably
amount should either be removed or renamed to display_price or removed
@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 Functional Tests B2B, Functional Tests EE, Integration 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 Functional Tests B2B, Functional Tests EE, Integration 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 Functional Tests B2B, Functional Tests EE |
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 Functional Tests B2B, Functional Tests EE |
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. |
✔️ QA Passed This PR was requested for changes as per the above comment, and the fix has already covered with GraphQL auto-test case. |
@magento run Functional Tests B2B, Functional Tests EE |
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. |
As the build is green now and as per this comment PR is QA passed so moving it to Merge in Progress. Thank you! |
Description (*)
Added values to GraphQL schema price_excl_tax price_incl_tax for Selected shipping method
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
1.Enable the shipping method flatrate and set its price to 10
2. Configure a default tax class for shipping that's not 0%. My example is 21%
3. Set tax/calculation/shipping_includes_tax to "Including Tax"
4. Set tax/cart_display/shipping to "Including Tax"
5. Set tax/display/shipping to "Including Tax"
6. Create a Cart through GraphQl
7.Add a product to your cart through GraphQl
8.Set a Shipping Address on your cart through GraphQl
9. Set flatrate/flatrate as your shipping method through GraphQl using the following query.
mutation setShippingMethodsOnCart($cartId: String!) {
setShippingMethodsOnCart(input: {cart_id: $cartId, shipping_methods: [{carrier_code: "flatrate", method_code: "flatrate"}]}) {
cart {
shipping_addresses {
selected_shipping_method {
amount {
currency
value
}
price_excl_tax {
currency
value
}
price_incl_tax {
currency
value
}
}
available_shipping_methods{
amount {
currency
value
}
price_excl_tax {
currency
value
}
price_incl_tax {
currency
value
}
}
}
}
}
}
Questions or comments
Contribution checklist (*)