-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
"Add to Cart" button appear on category pages for "Out of Stock" products #26942
Comments
Hi @LordHansolo. Thank you for your report.
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:
For more details, please, review the Magento Contributor Assistant documentation. @LordHansolo do you confirm that you were able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
Hi @m2-assistant[bot] Here is your new Magento Instance: https://i-26942-2-4-develop.magento-testing-service.engineering |
Hi @krishprakash. Thank you for working on this issue.
|
Hi @m2-assistant[bot] Here is your new Magento Instance: https://undefined |
It's behavior by default. Potentially Index (Stock) could be stored in dedicated data storage not related to SourceItems(reservations) at all. That's segregation between Read and Command which provide ability to scale Read and Write infrastructure independently. Maybe make sense to create a separate module for cases when system is not supposed to be split. |
I also facing the same problem in my Magento 2.3.4 system. |
Anyone know how to solve this issue ? |
Same issue on 2.3.6 |
Same issue on 2.3.1 If the source has 10 qty and the total salable qty is zero If the source has 0 qty and the total salable qty is zero |
Please Re-Open this issue. |
This is a HUGE bug that must be fixed! |
Preconditions (*)
Steps to reproduce (*)
Expected result (*)
Actual result (*)
On category page fully sold product has button "Add to Cart".
On product details page everything is fine. We can see "Out of Stock" status and "Add to Cart" button does not appear.
Additional Information
Problem also exists in sections like "cross-sell", "up-sell" and "related" where product data is get from products collection. Product stock status comes from column "is_salable" of specified "inventory_stock_*" table. That table is populated during reindex process but it does not care of reservations.
On product details page problem does not exist because stock status is assigned in plugin Magento\InventoryCatalog\Plugin\CatalogInventory\Helper\Stock\AdaptAssignStatusToProductPlugin and it take care of reservations.
The text was updated successfully, but these errors were encountered: