I noticed in your category template file \components\com_virtuemart\views\category\tmpl\default.php following:
$BrowseTotalProducts = 0;
foreach ($this->products as $product) {
$BrowseTotalProducts++;
}
Can I use: $ this-> category-> productcount,
then there is a need for this code? (ibid. appropriate comment from Max Milbers)
(VirtueMart v.2.0.18a)
does that code work???
$BrowseTotalProducts = count($this->products);
should work, but not productcount,imho. totalproducts is the amount of products which you see, productcount is the value of all products in the category.