magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.56k stars 9.32k forks source link

"Add to Cart" button on product details page after buy all product quantity #33394

Closed LordHansolo closed 4 months ago

LordHansolo commented 3 years ago

Preconditions (*)

  1. Magento Open Source 2.4.2

Steps to reproduce (*)

  1. Create test source
  2. Create test stock
  3. Assing source and Main Website to test stock
  4. Assign Simple Product to source
  5. Buy all available product quantity on Main Website
  6. Go back to product details page

Expected result (*)

  1. "Out of stock" information appears instead "Add to Cart" button out_of_stock

Actual result (*)

  1. "Add to Cart" button appears. add_to_cart_product

Additional information

It looks like reservations are not considered during isSaleable check.


Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.

m2-assistant[bot] commented 3 years ago

Hi @LordHansolo. Thank you for your report. To help us process this issue please make sure that you provided the following information:

Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:

@magento give me 2.4-develop instance - upcoming 2.4.x release

For more details, please, review the Magento Contributor Assistant documentation.

Please, add a comment to assign the issue: @magento I am working on this


: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, please join the Community Contributions Triage session to discuss the appropriate ticket.

:movie_camera: You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel

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

m2-assistant[bot] commented 3 years ago

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

engcom-November commented 3 years ago

Verified the issue on Latest Magento version 2.4.2 and the issue is reproducible: Steps to reproduce:

  1. Add new Source (Stores -> Inventory -> Sources -> Add New Source)
  2. Add new Stock (Stores -> Inventory -> Stocks -> Add New Stock -> Assign main website and newly created source)
  3. Create new Simple Product and assign Source.
  4. Front End -> Buy all the product quantity
  5. Clear cache and refresh the pages
  6. Front end -> Navigate to Product Details page Note: Make sure Backorders are not allowed for the product to verify the issue. (Stores -> Configuration -> Catalog -> Inventory -> Expand Product Stock Options -> No Backorders) Issue: In Stock Status is displayed along with Add to Cart button. Note: However, on clicking Add to Cart button, error is displayed. Expected behavior: Out Of Stock status should be displayed and Add to Cart button should not be displayed. 33394-1 33394-2
magento-engcom-team commented 3 years ago

:white_check_mark: Confirmed by @sdzhepa Thank you for verifying the issue. Based on the provided information internal tickets MC-42772 were created

Issue Available: @sdzhepa, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.

github-jira-sync-bot commented 3 years ago

:x: Cannot export the issue. This GitHub issue is already linked to Jira issue(s): https://jira.corp.magento.com/browse/AC-778

quterorta commented 2 years ago

@magento I am working on this

engcom-Bravo commented 4 months ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 4 months ago

Hi @engcom-Bravo. Thank you for your request. I'm working on Magento instance for you.

engcom-Bravo commented 4 months ago

Hi @LordHansolo,

Thanks for your reporting and collaboration.

We have verified the issue in Latest 2.4-develop instance and the issue is no more reproducible.Kindly refer the screenshots.

Screenshot 2024-06-19 at 10 45 30

"Out of stock" information appears instead "Add to Cart" button

Hence We are closing this issue.

Thanks.

magento-deployment-service[bot] commented 4 months ago

Hi @engcom-Bravo, here is your Magento Instance: https://8b56509056290cd8ddfdc49db21c98d4.instances-prod.magento-community.engineering Admin access: https://8b56509056290cd8ddfdc49db21c98d4.instances-prod.magento-community.engineering/admin_39f2 Login: eda887b5 Password: ea9829206127