Author Topic: Show number of products in a category.  (Read 24628 times)

riasztobolt

  • Beginner
  • *
  • Posts: 2
  • A beginner
Re: Show number of products in a category.
« Reply #75 on: April 20, 2017, 16:45:45 pm »
Quote
Then edit the file and search for "$cattext = $category->category_name;" and replace it with "$cattext = $category->category_name. ' ('.$categoryModel->countProducts($category->virtuemart_category_id ).')';"

then search for "$cattext = $child->category_name;" and replace it with "$cattext = $child->category_name. ' ('.$categoryModel->countProducts($child->virtuemart_category_id ).')';"

It's a good solution but it slows down loading the page :(

bmw2182

  • Jr. Member
  • **
  • Posts: 82
Re: Show number of products in a category.
« Reply #76 on: July 29, 2017, 14:29:55 pm »
I'm using Joomla 3.7.4, Virtuemart 3.2.2 and SW Menu? Would like to show the number of products in each category.

 I'm trying to get my number count to show up in the top menu.