magento2
magento2 copied to clipboard
Catalog shown as out of stock if show_of_stock_option enabled
Preconditions and environment
- 2.4-develop Vanila instance
Steps to reproduce
- take Vanila instance by
magento give me 2.4-develoop instance - Go to Stores->Configuration->Catalog->Inventory and Enable
Display Out of Stock Products - Clear cache
- Got to catalog
Expected result
Product shown in stock
Actual result
Products show as out of stock

Additional information
No response
Release note
No response
Triage and priority
- [X] 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”.
Hi @Den4ik. 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.
- 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.
:pencil2: Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel
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: :point_down:
-
[ ] 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).
Details
If the issue has a valid description, the labelIssue: Format is validwill be added to the issue automatically. Please, edit issue description if needed, until labelIssue: Format is validappears. -
[ ] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add
Issue: Clear Descriptionlabel to the issue by yourself. -
[ ] 3. Add
Component: XXXXXlabel(s) to the ticket, indicating the components it may be related to. -
[ ] 4. Verify that the issue is reproducible on
2.4-developbranchDetails
- Add the comment@magento give me 2.4-develop instanceto deploy test instance on Magento infrastructure.
- If the issue is reproducible on2.4-developbranch, please, add the labelReproduced 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: Confirmedonce verification is complete. -
[ ] 6. Make sure that automatic system confirms that report has been added to the backlog.
@magento give me 2.4-develoop instance
Hi @engcom-Lima. Thank you for your request. I'm working on Magento instance for you.
Hi @engcom-Lima, unfortunately there is no ability to deploy Magento instance at the moment. Please try again later.
:heavy_check_mark: Issue confirmed
Issue got reproduced in 2.4-develop branch.
Description: Product is showing out of stock. Pre-requisite: 2.4-develop Vanila instance
Steps to reproduce:
- Take Vanila instance by
@magento give me 2.4-develoop instance. - Go to Stores->Configuration->Catalog->Inventory and Enable Display Out of Stock Products
- Clear cache
- Go to catalog,open categories like men,women.
- Configurable products are showing out of stock.
Expected result: Product should display in stock.
Actual result: Showing out of stock
Screenshot:

Hence,confirming the issue.
Thanks
Hi @engcom-Lima. Thank you for your request. I'm working on Magento instance for you.
Hi @engcom-Lima, unfortunately there is no ability to deploy Magento instance at the moment. Please try again later.
:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-6330 is successfully created for this GitHub issue.
:white_check_mark: 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.
:x: Cannot export the issue. This GitHub issue is already linked to Jira issue(s): https://jira.corp.adobe.com/browse/AC-6330
Is this happening on the just released 2.4.5? (I have not updated yet)
@magento give me 2.4-develop instance
Hi @engcom-November. Thank you for your request. I'm working on Magento instance for you.
Hi @engcom-November, here is your Magento Instance: https://7683f9eaeb9ce1a5d1b79af4a7a8a1d6.instances.magento-community.engineering Admin access: https://7683f9eaeb9ce1a5d1b79af4a7a8a1d6.instances.magento-community.engineering/admin_8ffa Login: b5f95a26 Password: b0718feec1e6
Issue is reproducible on 2.4-develop branch with sample data installed but is not reproducible on 2.4.4 project-community-edition
Uhm, I don't think this issue is valid @Den4ik @engcom-November, unless I'm misunderstanding the report.
The setting Display Out of Stock Products actually means: instead of hiding out of stock products, show them.
This could be useful for shopowners who want to tease their visitors about products that are only sometimes in stock so they come back often to check if it's finally in stock one day - for example.
Also see the documentation around this setting: https://docs.magento.com/user-guide/configuration/catalog/inventory.html
@hostep if you enable option in admin panel all products that in stock will be displayed as out of stock on frontend. It's bug
Aaaah okay, now I get it. Sorry completely misunderstood your initial post, my bad 🙂
Hello @Den4ik,
As I can see this issue got fixed in the scope of the internal Jira ticket AC-6330 by the internal team Related commits: https://github.com/magento/magento2/search?q=AC-6330&type=commits
Based on the Jira ticket, the target version is 2.4.6.
Thanks
Hi @engcom-Hotel That's great. Release of 2.4.6 version is not described in https://devdocs.magento.com/release/ is it possible include this fix into 2.4.5-p1?
cc @sidolov
@magento give me 2.4.5 instance
Hi @engcom-Hotel. Thank you for your request. I'm working on Magento instance for you.
Hi @engcom-Hotel, here is your Magento Instance: https://b962b01bee19bd5c47ad5543677c74d1.instances.magento-community.engineering Admin access: https://b962b01bee19bd5c47ad5543677c74d1.instances.magento-community.engineering/admin_35d4 Login: 20baadf7 Password: cb72f9e4cb63
Hello @Den4ik,
As the issue is not reproducible in the latest released version on Magento i.e. 2.4.5, so this issue will release with the 2.4.6 version.
Thanks