VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: minh_br on March 06, 2012, 06:03:32 AM

Title: Image Tooltip VM2 ?
Post by: minh_br on March 06, 2012, 06:03:32 AM
is there anyone know how to add tooltip to image of virtuemart 2? I tried to search for this, but it all about virtuemart 1 :(

thanks all (sorry cause my bad english)
Title: Re: Image Tooltip VM2 ?
Post by: fastestpc on July 26, 2013, 12:10:14 PM
Give me a cup off coffee  i will help you. Make tooltip image for module, and catogory virtuemar 2.0.
Demo: http://www.chupanhcuoidep.vn
           http://www.aodaihanoi.vn
           http://www.lorca.vn
Title: Re: Image Tooltip VM2 ?
Post by: Maxim Pishnyak on July 26, 2013, 12:55:53 PM
Just curious, Fastestpc.

How image tooltips could be useful for your customers when IPad or IPhone are used for viewing your web shop?
Title: Re: Image Tooltip VM2 ?
Post by: fastestpc on July 29, 2013, 21:51:30 PM
Quote from: Maxim Pishnyak on July 26, 2013, 12:55:53 PM
Just curious, Fastestpc.

How image tooltips could be useful for your customers when IPad or IPhone are used for viewing your web shop?


If it not usefull, nobody asked it. Sometime your customer (who rend you code) need it. Maybe It is not useful,  In fact that Ipad and Iphone need different template. And Joomla 3.x direct to it. Hope Virtuemart 3.x will resolve it.
Title: Re: Image Tooltip VM2 ?
Post by: Maxim Pishnyak on July 30, 2013, 21:35:30 PM
Quote from: fastestpc on July 29, 2013, 21:51:30 PM
If it not usefull, nobody asked it. Sometime your customer (who rend you code) need it. Maybe It is not useful,  In fact that Ipad and Iphone need different template. And Joomla 3.x direct to it. Hope Virtuemart 3.x will resolve it.
Well, it's nice that you was already warned that tips are not mobile friendly.

Also I'm not agree that mobile device need different template nowadays. Template could stay the same. There're plenty mobile friendly designs for J2.5 and VM2 already around you.

As for resolving, could you find any example over Internet where image tips actually work?

Or post here html code where these tips are already configured somehow.

I made such tips a long ago for VM 1, but that web shop is dead now.

I have nothing to start with.
Title: Re: Image Tooltip VM2 ?
Post by: Maxim Pishnyak on July 30, 2013, 22:21:26 PM
Ah, found something from backup of my dead web shop.

Peace of code was (for VM1)

<div align=left class="ww">

{tip <img src="<?php echo IMAGEURL.'product/'.ps_product::get_field($product_id,'product_full_image'); ?>" class="vmxtooltipimage" >}<a href="<?php echo $product_flypage ?>" class="browse-product-title"> <?php echo $product_name ?></a>{/tip}

</div>


or this

$data[$row][] = '<a href="'.$product['product_flypage'].'">{tip <img src='.$product['product_full_image'].'  class=vmxtooltipimage}'.$product['product_name'].'{/tip}</a>';


.ww{display:inline}

and was used nonumber tooltip plugin

I'm not sure that you need further help from me, Fastestpc:
1. it's possible to find for tooltip any 3rd party custom system plugin for J2.5
2. possible to use plugin tags in the override for VM category
3. adjust to VM2 standards given php code for showing images as tooltips
4. use one css class in VM2 css file