Τρίτη 18 Οκτωβρίου 2011

How to insert 'new product' icon in Virtuemart

Do you want to put a "new product" icon in your product's browse page of Virtuemart, that disappears after a predefined period?

Find your browse page, which is into this folder components\com_virtuemart\themes\your_theme\templates\browse and make the following changes.

Before


add this


And right after


put the following code




As you can see above, I put 10*86400, which means 10 days. Of course you can change this number.

Img has an "icon" class, so what you have to do last, is put the following css code at the top of the page, or at your stylesheet page.



1 σχόλιο: