Author Topic: Number of search results?  (Read 181 times)


  • Jr. Member
  • **
  • Posts: 462
Number of search results?
« on: December 31, 2021, 13:13:31 pm »

In the search results page (category layout), how do I get the total number of the results/products found?
If I do something like:
Code: [Select]
count($this->products)I only get the number of products in the first page of results.

(The pagination shows the correct number of total results, but the pagination logic is in a different file and I don't know how it extracts that result.)


Spyros Petrakis

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 103
  • VirtueMart Version: Always latest Stable
Re: Number of search results?
« Reply #1 on: Yesterday at 15:01:51 »
If you are talking about the category view and not the products sublayout try this $this->vmPagination->total
Joomla templates and extensions development


  • 3rd party VirtueMart Developer
  • Full Member
  • *
  • Posts: 1286
    • MiniJoomla
  • Skype Name: support-easysoftware
  • VirtueMart Version: 3
Re: Number of search results?
« Reply #2 on: Yesterday at 16:02:50 »

This is not count of pages?

I think for count of products you need some other :)  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds from products, orders and database table
Virtuemart Email Manager - customs email templates