-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Magento 2.2.2 layered navigation shows also out of stock products #20593
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
Comments
Hi @LouNik1984. 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:
where @LouNik1984 do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
Hi @GovindaSharma. Thank you for working on this issue.
|
@magento-engcom-team give me 2.2-develop instance |
Hi @GovindaSharma. Thank you for your request. I'm working on Magento 2.2-develop instance for you |
Hi @GovindaSharma, here is your Magento instance. |
Hi @amol2jcommerce. Thank you for working on this issue.
|
Hi @LouNik1984 Not reproduce 2.2-develop |
I have two environments that are almost identical. The only difference I have on those two environments is the mysql version. On the environment with mysql 5.6 the layered navigation works properly. On the environment with mysql 5.7 the layered navigation shows the described issue. What mysql version had the magento instance that was used to try and reproduce the issue? |
Hi @engcom-backlog-nazar. Thank you for working on this issue.
|
Hi @LouNik1984 thak you for you report, seesm like this already fixed in 2.2-develop branch, i'm tested on |
"seesm like this already fixed in 2.2-develop branch" so how can I fix mine? |
@LouNik1984 give me 10 minutes i will try find related commit |
Unfortunately those commit didn't help me, so I created a clone of my buggy version on the same server to further test and finally I found the root of the issue: elasticsearch. If I switch to mysql as search engine via magento backend configuration and clear cache (magento cache:clean) then the layered navigation works as expected. If I switch back to elasticsearch and clear cache (again with cache:clean) then the issue is present again. |
@LouNik1984 ok, which version elasticsearch you're used ? |
I'm using aws elasticsearch service, version 5.3.2 |
@LouNik1984 i'm will retest with elasticsearch |
Thank you very much, sorry for my previous mistake |
@LouNik1984 |
@anatolij-p |
Please reopen. |
I know there are already closed issues for this problem but none has worked for me.
Preconditions (*)
magento 2.2.2 on ubuntu 16.04, apache2, php 7.1.26, mysql 5.7.25, with configurable products with a text swatch attribute (eg: size) which is filterable with results in layered navigation. Option "show out of stock products" is set to NO.
Steps to reproduce (*)
Expected result (*)
Search should list only configurable product that have size 42 available (in stock)
Actual result (*)
Search shows also the product which has the size 42 out of stock among the product which have that size available
Notes
I have a staging environment with mysql 5.6 as only difference from the production environment and here the layered navigation works as expected.
The text was updated successfully, but these errors were encountered: