



Facing same issue, i have searched a little bit about this, and was going to raise the issue, but found this issue. There is no syncing between the toolbar and products list.
I meet the similar issue.
under CategoryA, there are 3 products,
configProduct1,
simpleProduct1, simpleProduct2.
simpleProduct1 and simpleProduct2 are children of configProduct1.
all of them are visible.
When I go to category list page,
it says: Items 1-1 of 3, it should say Items 1-1 of 1
after checking the code, I found
The total is incorrectly set in the following code (magento 2.1.0):
class Collection extends MagentoCatalogModelResourceModelProductCollection
protected function _renderFiltersBefore()
{
...
$this->_totalRecords = $this->searchResult->getTotalCount();
...
}
The solution is removing this line.
Sorry @dbsdsun , I can't find that function in MagentoCatalogModelResourceModelProductCollection but I'm having the same issue too.
@hvstudio please identify which version of Magento this issue occurs on.
@veloraven hi,here

i have described installation here https://github.com/magento/magento2/issues/6588
But this issue is in all versions at least same result is on Magento CLI version 2.1.0
@veloraven This issue is also present in 2.0.7
@veloraven this problem happens on all magento 2. Please repeat my example mentioned before.
@magento-team @veloraven Do we have any update for this problem, can you suggest how long it would take to get the solution for this problem?
We already have internal ticket MAGETWO-54167 for such issue.
did anyone have a workaround for this issue?
I am facing the same issue on 2.2-dev.
Same issue here on 2.1.5
In the toolbar the total number is incorrect and Paging in the bottom of the category shows the total number of pages of all products including the simple products that make a CFG and are not visible on category pages.
@veloraven Hi Olga,
How is internal ticket MAGETWO-54167 going?
This is kinda critical when customers face a "can't find any products" message.
The go and buy with the other webshops.
@hvstudio, thank you for your report.
We were not able to reproduce this issue by following the steps you provided. If you'd like to update it, please reopen the issue.
Ok since @magento-engcom-team is unable to reproduce it here step by step for you:

IMO this issue is related to the issue on getSize() #7730 that is not returning the proper value. I think this is happening when adding distinct or group to a collection, for some reason the totalRecords propriety does not get updated when needed.
Why is this closed? It is not solved and is still an issue until today.
Most helpful comment
Ok since @magento-engcom-team is unable to reproduce it here step by step for you: