Skip to content
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

Can't decrease qty in cart The requested qty is not available #35780

Closed
5 tasks
Harpreet-StreamMarket opened this issue Jul 19, 2022 · 9 comments
Closed
5 tasks
Assignees
Labels
Area: Cart & Checkout Component: Ui Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Priority: P1 Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing. Progress: done Reported on 2.4.4 Indicates original Magento version for the Issue report. Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch

Comments

@Harpreet-StreamMarket
Copy link

Preconditions and environment

Magento version => 2.4.4

Steps to reproduce

  1. Admin - Create a product with Quantity more than 1. ex: 20 (Catalog - Products - Add New Product)
  2. Front-end - Login as Customer - Add the Product to Cart with Quantity say ex: 12
  3. Admin - Edit the Product - Update the Quantity say ex: 10 and save. Or purchase the Product using other customer Id's so that the stock Quantity available is less than 10
  4. Reindex and clear cache
  5. Front-end - Login using Customer Reload the Shopping Cart page
    error messages: "The requested qty is not available" are getting displayed to the user. That is fine and correct.
  6. Now Customer decrease the qty at the cart by setting the qty to 5 and press update button. The update does not work and it throws this dialog: Attention The requested qty is not available. So it seems impossible to change the qty smaller in cart.
  7. Currently only solution is to remove product from cart and re-add it with qty 5 to cart at the product page.

Expected result

Customer update cart with smaller qty successfully

Actual result

The error messages: "The requested qty is not available" are getting displayed to the user when he tries to decrease the qty.

Additional information

PHP version => 8.1.7
Disable Magento MSI

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.
@m2-assistant
Copy link

m2-assistant bot commented Jul 19, 2022

Hi @Harpreet-StreamMarket. Thank you for your report.
To speed up processing of this issue, make sure that you provided the following information:

  • Summary of the issue
  • Information on your environment
  • Steps to reproduce
  • Expected and actual results

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

For more details, review the Magento Contributor Assistant documentation.

Add a comment to assign the issue: @magento I am working on this

To learn more about issue processing workflow, refer to the Code Contributions.


⚠️ According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.

🕙 You can find the schedule on the Magento Community Calendar page.

📞 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.

✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel

@m2-assistant
Copy link

m2-assistant bot commented Jul 19, 2022

Hi @engcom-Lima. 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: 👇

  • 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).

    DetailsIf the issue has a valid description, the label Issue: Format is valid will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid appears.

  • 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description label to the issue by yourself.

  • 3. Add Component: XXXXX label(s) to the ticket, indicating the components it may be related to.

  • 4. Verify that the issue is reproducible on 2.4-develop branch

    Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!

  • 5. Add label Issue: Confirmed once verification is complete.

  • 6. Make sure that automatic system confirms that report has been added to the backlog.

@engcom-Lima
Copy link
Contributor

✔️ Issue confirmed

Issue got reproduced in 2.4-develop branch.

Description: Not able to decrease the qty in cart getting "The requested qty is not available".

Pre-requisite:
Fresh magento 2.4-develop should be installed.

Steps to reproduce:

  1. Admin - Create a product with Quantity more than 1. ex: 20 (Catalog - Products - Add New Product)
  2. Front-end - Login as Customer - Add the Product to Cart with Quantity say ex: 12
  3. Admin - Edit the Product - Update the Quantity say ex: 10 and save. Or purchase the Product using other customer Id's so that the stock Quantity available is less than 10
  4. Reindex and clear cache
  5. Front-end - Login using Customer Reload the Shopping Cart page
  6. error messages: "The requested qty is not available" are getting displayed to the user. That is fine and correct.
  7. Now Customer decrease the qty at the cart by setting the qty to 5 and press update button. The update does not work and it throws this dialog: Attention The requested qty is not available. So it seems impossible to change the qty smaller in cart.
  8. Currently only solution is to remove product from cart and re-add it with qty 5 to cart at the product page.

Expected result: Quantity should be updated successfully.
Actual result: The error messages: "The requested qty is not available" are getting displayed to the user when he tries to decrease the qty.
Screenshot:
image
Hence,confirming the issue.

@engcom-Lima engcom-Lima added Component: Checkout Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch Area: Cart & Checkout Component: Ui Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed and removed Component: Checkout labels Jul 19, 2022
@m2-community-project m2-community-project bot moved this from Ready for Confirmation to Confirmed in Issue Confirmation and Triage Board Jul 19, 2022
@github-jira-sync-bot
Copy link

✅ Jira issue https://jira.corp.magento.com/browse/AC-5987 is successfully created for this GitHub issue.

@m2-assistant
Copy link

m2-assistant bot commented Jul 19, 2022

✅ Confirmed by @engcom-Lima. Thank you for verifying the issue.
Issue Available: @engcom-Lima, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.

@engcom-Hotel engcom-Hotel added the Priority: P1 Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing. label Jul 19, 2022
@m2-community-project m2-community-project bot added this to Ready for Development in High Priority Backlog Jul 19, 2022
@m2-community-project m2-community-project bot moved this from Ready for Development to Dev In Progress in High Priority Backlog Jul 25, 2022
@m2-community-project m2-community-project bot moved this from Ready for Development to Dev In Progress in High Priority Backlog Jul 25, 2022
@github-jira-sync-bot github-jira-sync-bot added Progress: PR Created Indicates that Pull Request has been created to fix issue and removed Progress: dev in progress labels Jul 28, 2022
@engcom-Lima engcom-Lima added the Reported on 2.4.4 Indicates original Magento version for the Issue report. label Aug 8, 2022
@m2-community-project m2-community-project bot moved this from Dev In Progress to Ready for Development in High Priority Backlog Aug 8, 2022
@m2-community-project m2-community-project bot added Progress: ready for dev and removed Progress: PR Created Indicates that Pull Request has been created to fix issue labels Aug 8, 2022
@shmVan
Copy link
Contributor

shmVan commented Aug 19, 2022

@magento add to contributors team

@m2-assistant
Copy link

m2-assistant bot commented Aug 19, 2022

Hi @ITCot! 👋
Thank you for joining. Please accept team invitation 👉 here 👈 and add your comment one more time.

@shmVan
Copy link
Contributor

shmVan commented Aug 24, 2022

@magento I am working on this

@m2-community-project m2-community-project bot moved this from Ready for Development to Dev In Progress in High Priority Backlog Aug 24, 2022
shmVan added a commit to shmVan/magento2 that referenced this issue Aug 24, 2022
…ailable

- fixed issue with UpdateItemQty on cart
@m2-community-project m2-community-project bot moved this from Dev In Progress to Pull Request In Progress in High Priority Backlog Aug 25, 2022
@engcom-Hotel
Copy link
Contributor

Hello @Harpreet-StreamMarket,

As I can see this issue got fixed in the scope of the internal Jira ticket AC-5987 by the internal team
Related commits: fd7e45e

Based on the Jira ticket, the target version is 2.4.6.

Thanks

@m2-community-project m2-community-project bot moved this from Pull Request In Progress to Done in High Priority Backlog Aug 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Cart & Checkout Component: Ui Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Priority: P1 Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing. Progress: done Reported on 2.4.4 Indicates original Magento version for the Issue report. Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch
Projects
Development

Successfully merging a pull request may close this issue.

5 participants