Problem: Category product count does not take in account the visibility of products. Because of this products with status "not visible individually" are counted in the total here at getProductCount.
This also means that child products for configurable products are counted towards the total even though they are in most cases not shown individually.
Solution: Visibility check is added to getProductCount
Problem: Category product count does not take in account the visibility of products. Because of this products with status "not visible individually" are counted in the total here at getProductCount.
This also means that child products for configurable products are counted towards the total even though they are in most cases not shown individually.
Solution: Visibility check is added to getProductCount