News:

Support the VirtueMart project and become a member

Main Menu

Product description on hover?

Started by Golden28, October 04, 2012, 13:38:24 PM

Previous topic - Next topic

Golden28

Hi,

Is it possible to modify VM so that when a product is hovered over, instead of just the product name appearing in the pop up box, you could have the text that you entered in the short description field instead?

Many thanks for any help.

bytelord

Hi,

I think you mean the tool-tip information. You should edit your vm template or create a template override for that. To be able to help you out please tell us your VM version you are using and where you want to place it, in category view, in product details view, where? and you could give a screenshot example ...

On the other hand you could use some CSS to create a beatifull tool-tip and inside there show the short description.

btw, if you want to try take a look on the following links how you could user firebug to examine your code and css styling: https://forum.virtuemart.net/index.php?topic=102850.0
and also how you can create template overrides: https://forum.virtuemart.net/index.php?topic=98505.0 and the use of the template system: https://dev.virtuemart.net/projects/virtuemart/wiki/Hints_for_the_use_of_the_template_system


Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!

Golden28

Hi Bytlelord, Thank you.

So, when I click on a category it then takes me to a product view (VM 2.0) where all of my products have a small image of them. When I hover over this image it pops up a small text box, what you are calling a tooltip I guess, with just the product name in it. What I need to do is find where this information is being called from and change it so that it shows the short description in there instead.

I have tried Firebug but I can't make out where this pop up comes from.

I am just using the standard VM install for now, but once I have got all th einformation entered I will use a theme from a 3rd party company, probably Yagendoo.

bytelord

#3
Hello,

I take a look and what i see is that you need to use a jquery plugin for tooltip because only with css cannot override the "function" the display the media thumb. You will need some PHP, CSS, JS knowledge to create it but it's easy.

Didn't have time to create one for you, in case i will create one for any of my web sites i will post the code with an example.

Regards
Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!