VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: belsaas on June 03, 2014, 14:24:34 PM

Title: Show number of product in category view
Post by: belsaas on June 03, 2014, 14:24:34 PM
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]
Title: Re: Show number of product in category view
Post by: balai on June 03, 2014, 17:26:27 PM
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.