1

I am using Magento 2 and have noticed a wrong products count on Advanced Search & Catalog Product List.

For example for Advanced search it may show 3 products and total count will say 10. Same for Catalog Product List Widget total is incorrect. We have only configurable products visible on front end we have disable all static products.

any ideas?

1 Answer 1

0

I think this was mentioned sometimes

See this

https://github.com/magento/magento2/blob/2.1/app/code/Magento/CatalogSearch/Model/Search/FilterMapper/TermDropdownStrategy.php#L101

    $this->storeManager->getWebsite()->getId()

This was fixed on 2.2 and 2.3 but not 2.1. It should be

    $this->storeManager->getStore()->getId()

Try to override this model or use cweagans/composer-patches to patch. Hope this help

3
  • I think the issue is with total count, seems like it is counting out of stock products too, on page 2 sometimes is shows like Items 25 to 24 of 43 total
    – Faisal I
    Jan 10, 2019 at 21:03
  • So check Inventory settings from Catalog Configurations Jan 11, 2019 at 3:52
  • it seems like if a configurable product's all children are out of stock the configurable is still not out of stock and magento is counting those too
    – Faisal I
    Jan 11, 2019 at 17:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.