VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: encreplus on August 30, 2012, 01:56:46 AM

Title: Need NEW tag or image beside category name ...
Post by: encreplus on August 30, 2012, 01:56:46 AM
Good day

Im using VM as a store selling inkjet and laser cartridge ...

I need the possibility to add a tag or image beside the category name saying NEW ... for category added in the past 30 days...

Does anybody knows a way to do this ?? Any hint !!!

Stefan
Title: Re: Need NEW tag or image beside category name ...
Post by: encreplus on December 22, 2012, 20:39:53 PM
Anybody on this ?
Title: Re: Need NEW tag or image beside category name ...
Post by: bytelord on December 22, 2012, 21:48:21 PM
Hello,

You could create an override for your category view and use some php/css to add the badges you want, like new, offer, etc

Regards
Title: Re: Need NEW tag or image beside category name ...
Post by: encreplus on December 23, 2012, 00:35:37 AM
I know this but what i need help with is the php ... :)
Title: Re: Need NEW tag or image beside category name ...
Post by: bytelord on December 23, 2012, 00:39:56 AM
You could work with your solution, create something and then come back and i will help you on that.

So, create your CSS for the badge - e.g. NEW Category, find where you wanna place your code, create your template override and then i could check it and give you some code snippets to do it, because now with that input from your side i have to create a custom solution for you.

Regards
Title: Re: Need NEW tag or image beside category name ...
Post by: peetee on March 20, 2013, 12:39:47 PM
Hello, have You solved it ? I am not at all php etc .. so it is quite difficult for me. Thank You for any answer. Petr