News:

Support the VirtueMart project and become a member

Main Menu

How to highlight some category in a native "VirtueMart Category" module?

Started by borro, April 06, 2015, 15:31:08 PM

Previous topic - Next topic

borro

Hello.

I'm using VM 2.6.6. Is there any possibility built-in to highlight(mark out) some category in list of catigries displayed by built-in "VirtueMart Category" module?
Wish you happiness!

Studio 42

Hi,
Overide the mod_virtuemart_category/tmpl/XXX.php file you use and add the category_id to a class
eg :
Quoteclass="catnum-<?php echo $category->virtuemart_category_id ?>"
this is only for the idea, you have to make your own code, derivate from this

borro

Quote from: Studio 42 on April 07, 2015, 23:37:23 PM
Hi,
Overide the mod_virtuemart_category/tmpl/XXX.php file you use and add the category_id to a class
eg :
Quoteclass="catnum-<?php echo $category->virtuemart_category_id ?>"
this is only for the idea, you have to make your own code, derivate from this
Thank you. Yes, it's fairly easy solution.
Wish you happiness!