-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Visibility is not respected by layered nav counts #5670
Comments
We are facing exactly same issue with toolbar. Is there any solution for this issue? |
Same here... |
Thanks for reporting the issue. Here is the public PR #6035 but seems to be stuck |
+1: |
@dmitry-fedyuk |
fixed #7968 |
@shuaiZend I'm running into the same issue. Just updated to 2.1.3, ran "setup:upgrade", "di:compile", "indexer:reindex", "c:f" and the problem still persists. Is there anything else to fix this issue? Thanks. |
@shuaiZend Not fixed...It is actually a completely different problem. That issue is the 500 product limit per category. |
This issue persists in Magento 2 CE 2.1.5 |
This issue persists in Magento 2 EE 2.1.6 |
Issue is still present on 2.1.7. Please fix this guys. What's the point of allowing us to set a product's visibility to "Search" only if the toolbar pagination and count totals still see it on category pages?? I hope you are aware of this issue |
I'm responding to my own post from just above. It just occurred to me that if a product is set to be visible in "Search" only, it does not need to be in a category. The pagination issue can be fixed by simply untagging the search only products from all categories. |
I tried the fix/ workaround from #6035 but without any luck. |
still buggy in 2.1.9, even without filtering layer category. |
@rhoerr, thank you for your report. |
Steps to reproduce
Expected result
Actual result
Technical Info
I traced the issue back to
\Magento\CatalogSearch\Model\ResourceModel\Fulltext\Collection::_renderFiltersBefore()
(this is where$this->_totalRecords
is set, from the search result). The search result returns 14 entity IDs matching the layered navigation criteria. The actual product list load ($this
, in that class context) loads products in the category matching those results, with some other filters.I took the product list collection query, added the entity_id results explicitly, and then picked out constraints to find the difference. Visibility was it: There are 5 set to visibility 4 (the number of actual results shown), and 9 set to 3 (search-only), for a total of 14 (the total results count shown above).
Best guess is that use of a search results object in the context of layered navigation is making Magento think 'search!' and ignore that it's actually on a category.
Issue occurs on both 2.0.6 and 2.1.0.
The text was updated successfully, but these errors were encountered: