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.5k stars 9.3k forks source link

"Add to Cart" button should not be shown if the salable quantity is 0 or less #38905

Closed MeeranKasvala closed 2 months ago

MeeranKasvala commented 3 months ago

Preconditions and environment

Steps to reproduce

Expected result

Actual result

Triage and priority

m2-assistant[bot] commented 3 months ago

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

m2-assistant[bot] commented 3 months ago

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:

engcom-Bravo commented 3 months ago

Hi @MeeranKasvala,

Thanks for your reporting and collaboration.

We have verified the issue in Latest 2.4-develop instance and we are able to see the add to cart button.Kindly refer the screenshots.

Screenshot 2024-07-05 at 12 49 21 Screenshot 2024-07-05 at 12 49 29

For out of stock products there will be no add to cart button.We can see by enabling Backorders under advanced inventory for salable quantity 0.

Kindly let us know if you are still facing any issue.

Thanks.

MeeranKasvala commented 3 months ago

Hello @engcom-Bravo

Thanks for response

We have checked that the backorder service is disabled, but the "Add to Cart" button is still showing.

If the backorder service is enabled, orders can be placed successfully.

However, if backorders are enabled and we try to place an order, we encounter an error when pressing the "Add to Cart" button:

Error Message: "The requested qty is not available."

engcom-Bravo commented 2 months ago

@magento give me 2.4-develop instance

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

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

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

Hi @engcom-Bravo, here is your Magento Instance: https://114207d8da211ac0ddbe9de3262ade75.instances-prod.magento-community.engineering Admin access: https://114207d8da211ac0ddbe9de3262ade75.instances-prod.magento-community.engineering/admin_6ad7 Login: e4b96806 Password: 04c56cebd2a4

engcom-Bravo commented 2 months ago

Hi @MeeranKasvala,

Thanks for your update.

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

Steps to reproduce

Screenshot 2024-07-10 at 11 16 04 Screenshot 2024-07-10 at 11 16 42

There is no Add to Cart button for the product.

Kindly check the issue in Latest 2.4-develop instance and elaborate the steps to reproduce if the issue is still reproducible.

Thanks.

engcom-Bravo commented 2 months ago

Hi @MeeranKasvala,

We have noticed that this issue has not been updated since long time.
Hence we assume that this issue is fixed now, so we are closing it. Please feel to raise a fresh ticket or reopen this ticket if you need more assistance on this.

Thanks.