Author Topic: Show number of products in a category.  (Read 23168 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 :(