0

As the title says could anyone help me with adding the number of active products within a category to the navigation menu. To clarify i want to make it display as follows:

Product(23)

Other Product(13)

And have it do that for all categories. Anyone got any idea on how to do this in magento 2.1.1

0

It is Magento2 default functionality

Go admin side STORES -> Configuration -> Catalog -> Layered Navigation : Display Product Count field set Yes and save

enter image description here

Show frond like

enter image description here

  • Thanks for your help but for some reason even though i did exactly what you did it doesnt display the numbers. i tried clearing the cache but that didnt help either – AquaProgramming Jan 3 '17 at 10:21
  • Pls reindex all via below command : php bin/magento indexer:reindex – Abdul Jan 3 '17 at 10:35
  • I ran the command and still the numbers are not shown on the frontend. any other ideas? – AquaProgramming Jan 3 '17 at 10:43
  • can you share url? – Abdul Jan 3 '17 at 10:47
  • it is currently running on a localhost. and i made sure the feature was enabled in the admin but cache clearing and reindexing didnt seem to have done anything – AquaProgramming Jan 3 '17 at 10:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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