Author Topic: Tool tip doesn't work  (Read 310 times)

kiscompany

  • Beginner
  • *
  • Posts: 4
Tool tip doesn't work
« on: June 30, 2015, 00:08:51 am »
Hello,

I am running Virtuemart 3.08

I have a registration form here

http://www.chinomayorista.com.ar/registro-tienda

I need a blue icon with a tooltip at the right hand side of some fields. I tried to add the tooltip text in the Shopper Field Details (Description, field-tip ) but it doesn't show nothing in the frontend.

What I am doing wrong?

Thank you in advance

Spyros Petrakis

  • 3rd party VirtueMart Developer
  • Jr. Member
  • *
  • Posts: 96
    • OlympianThemes
  • VirtueMart Version: Always latest Stable
Re: Tool tip doesn't work
« Reply #1 on: June 30, 2015, 11:21:21 am »
Hi,

you will need to modify the edit_address_userfields.php in the user view folder in your existing template overrides or create a template override.

open the file and find:
Code: [Select]
<?php echo $field['formcode'?>


right after it insert the following

Code: [Select]
<?php if (!empty($field['description'])) {
  echo 
JHtml::tooltip (strip_tags($field['description']), '''tooltip.png');
?>

Fast and simple to use templates with fanatical support
https://www.olympianthemes.com

kiscompany

  • Beginner
  • *
  • Posts: 4
Re: Tool tip doesn't work
« Reply #2 on: June 30, 2015, 13:48:46 pm »
Works perfectly well! Thank you so much!

Mentalhacker

  • Beginner
  • *
  • Posts: 1
  • A beginner
  • Skype Name: logoswarrior
Re: Tool tip doesn't work
« Reply #3 on: March 21, 2017, 00:08:31 am »
you will need to modify the edit_address_userfields.php in the user view folder in your existing template overrides or create a template override.

What the "hack" is this?
It's fantastic, and thank you so much. I'm glad that I have found the solution, but excuse me, shouldn't it be part of the Joomla core? Tooltips may be very important parts of a website os webshop, and the tooltip options are there in the backend. Is there any explanation?
Thanks anyway.

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 8782
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Tool tip doesn't work
« Reply #4 on: March 21, 2017, 10:21:16 am »
the post is from June 30, 2015

I think it is already added, you may test yourself first.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/