magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

Configurable product shown in category page even if its simple has salable qty = 0

Open micheleguerri96 opened this issue 1 year ago • 8 comments

Preconditions and environment

  • Magento 2.4.6 p3

Steps to reproduce

Step 1: run the comand bin/magento indexer:set-mode schedule Step 2: make sure that the Display Out of Stock Products configuration is NO (stores/configuration/catalog/inventory) Step 3: Create new configurable with 1 simple Step 4: update stock value of the simple product with qty 1 Step 5: conclude an order with the simple product previously created without shipping (qty must stay greater than 0 and salable qty = 0) Step 6: make sure the product quantity is 1 and the salable qty is 0 Step 7: run bin/magento cron:run or wait the normal flow of the indexes

Expected result

the configurable product with its simple product previously created with quantity > 0 and salable = 0 is no longer visible on the category page

Actual result

the configurable product with its simple variant with qty >0 and salable qty = 0 is still visible on the category page image

Additional information

No response

Release note

No response

Triage and priority

  • [ ] 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.
  • [X] 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”.

micheleguerri96 avatar Feb 21 '24 11:02 micheleguerri96

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


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.

m2-assistant[bot] avatar Feb 21 '24 11:02 m2-assistant[bot]

Hi @engcom-Dash. 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).
    1. Verify that issue has a meaningful description and provides enough information to reproduce the issue.
    1. Add Area: XXXXX label to the ticket, indicating the functional areas it may be related to.
    1. 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!

m2-assistant[bot] avatar Feb 21 '24 13:02 m2-assistant[bot]

Hi @micheleguerri96

Thanks for reporting and collaboration.

Verified the issue on magento 2.4 dev instance but the issue is not reproducible.

We are not seeing the configurable product when the salable qty=0

Steps to reproduce Step 1: run the comand bin/magento indexer:set-mode schedule Step 2: make sure that the Display Out of Stock Products configuration is NO (stores/configuration/catalog/inventory) Step 3: Create new configurable with 1 simple Step 4: update stock value of the simple product with qty 1 Step 5: conclude an order with the simple product previously created without shipping (qty must stay greater than 0 and salable qty = 0) Step 6: make sure the product quantity is 1 and the salable qty is 0 Step 7: run bin/magento cron:run or wait the normal flow of the indexes

Please refer the attached screenshots. Screenshot 2024-02-22 at 4 25 03 PM Screenshot 2024-02-22 at 5 04 26 PM Screenshot 2024-02-22 at 5 04 44 PM Screenshot 2024-02-22 at 5 05 09 PM

Let us know if we have missed anything.

engcom-Dash avatar Feb 22 '24 11:02 engcom-Dash

Hi,

I tried again with a clean version of Magento 2.4.6 p3 and I encountered the same problem, what I notice from the shared screenshots is that a test was carried out with a simple variant with quantity 0, the problem occurs when the quantity of the variant is greater than 0 while the salable quantity is , I attach screenshots of the test carried out image

as you can see from the screenshot, the Hyperion Elements Jacket-55 cm product has a quantity of 10 while a salable quantity is 0, in this case I expect it not to be shown on the page so that the error I am about to report can be avoided image the product is shown even in category page image

the version used to report the test is a clean version of magento ver. 2.4.6-p3

micheleguerri96 avatar Feb 23 '24 11:02 micheleguerri96

@magento give me 2.4-develop instance

engcom-Dash avatar Feb 26 '24 14:02 engcom-Dash

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

Hi @engcom-Dash, here is your Magento Instance: https://4afae8b66cf9b5864bf5e73df37b7817.instances-prod.magento-community.engineering Admin access: https://4afae8b66cf9b5864bf5e73df37b7817.instances-prod.magento-community.engineering/admin_1d76 Login: a571c0ef Password: 7eba8db990cb

Hi @micheleguerri96

Thanks for reporting and collaboration.

Verified the issue in magento 2.4 dev instance but the issue is not reproducable.

Please refer the below screenshots.

When quantity is greater than 0 and salable quantity is 0

38458_1

We are not seeing the product on UI when the salable is 0

Screenshot 2024-02-26 at 7 54 49 PM

engcom-Dash avatar Feb 26 '24 14:02 engcom-Dash

Hi @micheleguerri96

As there is no activity on this issue for a long time, we believe the issue has been resolved, hence closing this issue. Feel free to raise a new issue or reopen this if you need more assistance.

Thank you.

engcom-Dash avatar Mar 11 '24 08:03 engcom-Dash