Open sanderjongsma opened 1 month ago
Hi @sanderjongsma. Thank you for your report. To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:
@magento give me 2.4-develop instance
- upcoming 2.4.x release@magento I am working on this
Join Magento Community Engineering Slack and ask your questions in #github channel. :warning: According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting. :clock10: You can find the schedule on the Magento Community Calendar page. :telephone_receiver: The triage of issues 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.
Hi @engcom-Bravo. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
Area: XXXXX
label to the ticket, indicating the functional areas it may be related to.2.4-develop
branch@magento give me 2.4-develop instance
to deploy test instance on Magento infrastructure. 2.4-develop
branch, please, add the label Reproduced on 2.4.x
.Issue: Confirmed
once verification is complete. @magento give me 2.4-develop instance
Hi @engcom-Bravo. Thank you for your request. I'm working on Magento instance for you.
Hi @engcom-Bravo, here is your Magento Instance: https://af74504e6ae991dcc1cb1e6019789fb1.instances-prod.magento-community.engineering Admin access: https://af74504e6ae991dcc1cb1e6019789fb1.instances-prod.magento-community.engineering/admin_e8a4 Login: ce6f05eb Password: 4f1aaf440e68
Hi @sanderjongsma,
Thanks for your reporting and collaboration.
We have verified the issue in Latest 2.4-develop instance and it seems to be an expected behaviour of magento.
Since already the product is in cart with the QTY 1 and again we are adding more than available QTY it will shows an error The requested qty is not available which seems to be an expected behaviour.
Kindly let us know if we are missing anything.
Thanks.
@magento give me 2.4-develop instance
Hi @sanderjongsma. Thank you for your request. I'm working on Magento instance for you.
Hi @sanderjongsma, here is your Magento Instance: https://af74504e6ae991dcc1cb1e6019789fb1.instances-prod.magento-community.engineering Admin access: https://af74504e6ae991dcc1cb1e6019789fb1.instances-prod.magento-community.engineering/admin_6de1 Login: 6a0b133d Password: 942edd90d96e
Since already the product is in cart with the QTY 1 and again we are adding more than available QTY it will shows an error The requested qty is not available which seems to be an expected behavior.
That can't be right. Because if I add 10 to the cart with the rest, I have 10 in the cart. If I then use the update rest call with qty 20, it is 20. And what you imply with your comment it should actually be 30 (10 with add plus 20 with update). But that is not happening. An update rest call with the qty is for updating that cart item to the quantity in the body of the rest call.
Hi @sanderjongsma,
Thanks for your update.
As per this comment https://github.com/magento/magento2/issues/38949#issuecomment-2247611961 we are confirming the issue.
Thanks.
:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-12641 is successfully created for this GitHub issue.
:white_check_mark: Confirmed by @engcom-Bravo. Thank you for verifying the issue.
Issue Available: @engcom-Bravo, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.
Preconditions and environment
Steps to reproduce
Create guest cart with rest api: Post to
https://11bfd466f8c258a1113feb50fd641584.instances-prod.magento-community.engineering/rest/V1/guest-carts/
and use that masked id.Get the guest cart to determine quote id: Get to
https://11bfd466f8c258a1113feb50fd641584.instances-prod.magento-community.engineering/rest/V1/guest-carts/{{masked_id}}
Add just 1 configurable to cart: Post to:
https://11bfd466f8c258a1113feb50fd641584.instances-prod.magento-community.engineering/rest/V1/guest-carts/{{masked_id}}/items
with body:{ "cartItem": { "sku": "MH02", "qty": 100, "quote_id": "{{quote_id}}", "product_option": { "extension_attributes": { "configurable_item_options": [ { "option_id": "93", "option_value": 49 }, { "option_id": "142", "option_value": 166 } ] } }, "extension_attributes": {} } }
{ "message": "The requested qty is not available" }
{ "message": "The requested qty is not available" }