Skip to content

Layered navigation counts only IN STOCK products #12223

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

Closed
maqlec opened this issue Nov 13, 2017 · 6 comments
Closed

Layered navigation counts only IN STOCK products #12223

maqlec opened this issue Nov 13, 2017 · 6 comments
Assignees
Labels
duplicate Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release

Comments

@maqlec
Copy link
Contributor

maqlec commented Nov 13, 2017

Preconditions

  1. Magento 2.1.10 or 2.2

Steps to reproduce

  1. Set category with 3 products, 2 in stock and 1 out of stock with the same attribute on layered navigation
  2. Turn on "Display Out of Stock Products" in admin panel

Expected result

  1. On layered navigation is count of 3 products and on list are 3 products

Actual result

  1. On list are 3 products (2 in stock, 1 out of stock) and on layered navigation are 2 (in stock only).

I don't know, maybe this should work like this but in 2.1.7 worked well. It is broke since MAGETWO-57475 was merged.

@magento-engcom-team magento-engcom-team added the Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed label Nov 13, 2017
@magento-engcom-team
Copy link
Contributor

@maqlec, thanks for reporting.
Please specify what attributes are used for layered navigation in Your case.

@maqlec
Copy link
Contributor Author

maqlec commented Nov 14, 2017

It could be any attribute, I found the place where this condition is hardcoded
b043944#diff-c04b442549dd53e9620aa23f581ff1b5R115
I could fix this but I don't know purpose why sombody did that :)

@magento-engcom-team
Copy link
Contributor

Hello @maqlec. Still we would like You to specify the following information about the attribute You've used: what it is set to in Storefront Properties -> Use in Layered Navigation - Filterable (with results) or Filterable (no results) because it directly concerns the situation. Till now we've been able to get Your actual result only with Filterable (with results) selected. But that is a normal behavior for an attribute. With selected Filterable (no results) it will have done just like You have expected.

@maqlec
Copy link
Contributor Author

maqlec commented Nov 15, 2017

Ok, so It's not dependant on Use in Layered Navigation option.
My attribute is a dropdown with 3 value options. Filterable (with results or no results) causes the same behavior. There is one difference with no results is showed attribute with 0 count number.
Maybe in the picture it will be better shown
test

@maqlec maqlec closed this as completed Nov 15, 2017
@maqlec maqlec reopened this Nov 15, 2017
@magento-engcom-team
Copy link
Contributor

@maqlec, thank you for your report.
We've created internal ticket(s) MAGETWO-83983 to track progress on the issue.

@magento-engcom-team magento-engcom-team added 2.1.x Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed labels Nov 16, 2017
@p-bystritsky p-bystritsky self-assigned this Dec 18, 2017
@p-bystritsky
Copy link
Contributor

Duplicatates #11946

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release
Projects
None yet
Development

No branches or pull requests

4 participants