News:

Looking for documentation? Take a look on our wiki

Main Menu

Show number of product in category view

Started by belsaas, June 03, 2014, 14:24:34 PM

Previous topic - Next topic

belsaas

Hi
I want to display a number after the category name, like the pictures attached this message.
I tried with the code

<h2>
<a href="<?php echo $caturl ?>" title="<?php echo $category->category_name ?>">
<?php echo $category->category_name;
          echo $category['number_of_products']; ?>
</a>
</h2>

But this code don't work.
Can someone give some help here?

I have Joomla 2.5.19 and VM 2.6.6



[attachment cleanup by admin]
-------------------------------
Joomla 3.8.1
Virtuemart 3.2.4
PHP 7.1
-------------------------------

balai

You can try the custom filters module. Its in the free edition.
http://breakdesigns.net/extensions/custom-filters

I think that with some css you can make it like the image.