VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: usermee on April 24, 2013, 20:43:13 PM

Title: Category Image Change on Mouseover
Post by: usermee on April 24, 2013, 20:43:13 PM
Hi there, I would like to implement an image change on mouseover for category images, which file in the template should I edit and if possible a hint or example as to what code I should use to achieve this.
I was thinking of just creating a class for the current image and then in css add the mouseover image.

Thanks for any help regarding this.
Title: Re: Category Image Change on Mouseover
Post by: usermee on April 26, 2013, 15:31:24 PM
Hi, any possibility then of letting me know which php file in the views folder has the code in it for images for the categories.
Title: Re: Category Image Change on Mouseover
Post by: jenkinhill on April 26, 2013, 23:54:22 PM
It is /components/com_virtuemart/views/category/tmpl/default.php
Title: Re: Category Image Change on Mouseover
Post by: usermee on April 27, 2013, 11:47:15 AM
Hi, thanks, however I have previously looked through that file before, the only image that get's called form that page is the review/rating image and not the category image?
Title: Re: Category Image Change on Mouseover
Post by: jenkinhill on April 27, 2013, 12:39:01 PM
Look for displayMediaThumb
Title: Re: Category Image Change on Mouseover
Post by: usermee on April 29, 2013, 14:54:34 PM
Thanks!
Title: Re: Category Image Change on Mouseover
Post by: hoknight on November 21, 2013, 10:00:30 AM
hi,

I'm getting this issues too. Anyone can show me the code?So,the category image can be change on mouseover.

Thank You,
Johnny
Title: Re: Category Image Change on Mouseover
Post by: Maxim Pishnyak on November 22, 2013, 22:11:32 PM
Pay attention to this then
Quote from: jenkinhill on April 27, 2013, 12:39:01 PM
Look for displayMediaThumb