magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

Catalog shown as out of stock if show_of_stock_option enabled

Open Den4ik opened this issue 3 years ago • 19 comments

Preconditions and environment

  • 2.4-develop Vanila instance

Steps to reproduce

  1. take Vanila instance by magento give me 2.4-develoop instance
  2. Go to Stores->Configuration->Catalog->Inventory and Enable Display Out of Stock Products
  3. Clear cache
  4. Got to catalog

Expected result

Product shown in stock

Actual result

Products show as out of stock 2022-08-09-16-48-41@2x

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

Den4ik avatar Aug 09 '22 13:08 Den4ik

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.


: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

m2-assistant[bot] avatar Aug 09 '22 13:08 m2-assistant[bot]

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

    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.

m2-assistant[bot] avatar Aug 09 '22 13:08 m2-assistant[bot]

@magento give me 2.4-develoop instance

engcom-Lima avatar Aug 09 '22 13:08 engcom-Lima

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:

  1. Take Vanila instance by @magento give me 2.4-develoop instance.
  2. Go to Stores->Configuration->Catalog->Inventory and Enable Display Out of Stock Products
  3. Clear cache
  4. Go to catalog,open categories like men,women.
  5. Configurable products are showing out of stock.

Expected result: Product should display in stock. Actual result: Showing out of stock Screenshot: image image

Hence,confirming the issue.

Thanks

engcom-Lima avatar Aug 09 '22 14:08 engcom-Lima

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.

github-jira-sync-bot avatar Aug 09 '22 14:08 github-jira-sync-bot

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

m2-assistant[bot] avatar Aug 09 '22 14:08 m2-assistant[bot]

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

github-jira-sync-bot avatar Aug 09 '22 14:08 github-jira-sync-bot

Is this happening on the just released 2.4.5? (I have not updated yet)

FadedOut avatar Aug 10 '22 17:08 FadedOut

@magento give me 2.4-develop instance

engcom-November avatar Aug 11 '22 06:08 engcom-November

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

engcom-November avatar Aug 11 '22 18:08 engcom-November

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 avatar Aug 11 '22 18:08 hostep

@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

Den4ik avatar Aug 11 '22 19:08 Den4ik

Aaaah okay, now I get it. Sorry completely misunderstood your initial post, my bad 🙂

hostep avatar Aug 11 '22 21:08 hostep

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

engcom-Hotel avatar Aug 19 '22 11:08 engcom-Hotel

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

Den4ik avatar Aug 19 '22 12:08 Den4ik

@magento give me 2.4.5 instance

engcom-Hotel avatar Aug 23 '22 14:08 engcom-Hotel

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

engcom-Hotel avatar Aug 23 '22 15:08 engcom-Hotel