A nicer image-tooltip then the "B00001K9MV2.01-AGHGUBPQ._SCMZZZZZZZZZ_.jpg"

If you want another tooltip (image-alt) then the ugly

B00001K9MV2.01-AGHGUBPQ.SCMZZZZZZZZZ.jpg or so then just open

[SIZE=“1”](or is there another way for this i have missed, since i’m kinda new to cscart…:smiley: )[/SIZE]



[COLOR=“Red”]/skins//customer/common_templates/image.tpl[/COLOR]



and replace this line (approx line 34)

{$images.icon.alt}



with this line

{$product.product|escape:html}



in other words, just replace the alt tag in that line where it says

[COLOR=“Blue”]$images.icon.alt[/COLOR] with [COLOR=“blue”]$product.product|escape:html[/COLOR]



then you have the nice product as tooltip, like so:



[ATTACH]204[/ATTACH]





if someone finds a bug (not very tested) let me know here thx



just a 1-minute-hack…:rolleyes:

tooltip.gif

Hi nwsco



Fine in IE7 no work in FF nice hack.

try adding

```php

title=“{$product.product|escape:html}”

```

to this img-tag as well.



if that doesnt even work, also include this line to the -tage

that surrounds this image. must work then.



i hate browser-incompatibility lol

Hi nwsco



Works fine with title, thanks :rolleyes:

yes indeed, very nice.

I updated the image.tpl file in skins/myskin/customer/common_templates and replaced alt=“{$images.icon.alt}” with alt=“{$product.product|escape:javascript}”

and the moouse over alt worked



I added colors in a drop down selection box and it still worked



When I build or add option combinations where I upload a graphic for each one of the product combinations, the Alt reverts to the image file name.



Any Ideas?

[quote name=‘jc214’]I updated the image.tpl file in skins/myskin/customer/common_templates and replaced alt=“{$images.icon.alt}” with alt=“{$product.product|escape:javascript}”

and the moouse over alt worked



I added colors in a drop down selection box and it still worked



When I build or add option combinations where I upload a graphic for each one of the product combinations, the Alt reverts to the image file name.



Any Ideas?[/QUOTE]



But alt not work in category image plus image pair in category not work too, i mean when click on thumb image in category no popup window.

[quote name=‘nwsco’]try adding

```php

title=“{$product.product|escape:html}”

```

to this img-tag as well.



if that doesnt even work, also include this line to the -tage

that surrounds this image. must work then.



i hate browser-incompatibility lol[/QUOTE]



Can you just explain where the ‘title=’ is

Hi Demon Templates



Try replacing “alt=” with “title” :rolleyes:

Thanks for that



I am sctrating my head why CS do not do this themselves. How can some people make such a great shoppingcart and forget simple littlle things like this.





Great mod anyhow - Thanks

Nice Mod, thanks

This should be default in CS-Cart.

Nice & usefull.

Thanks NWSCO

The problem I have with this is if I hover over an image which is NOT a product then the tooltip does not make sence.



e.g.

If I hover over a Nvidia Graphics Card I get “Picture of Nvidia Graphics Card” (“Picture of” added by me :slight_smile:

If I hover over an advert I get “Picture of”