VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: inu2005 on May 09, 2015, 09:46:01 AM

Title: Tooltip custom field shows HTML
Post by: inu2005 on May 09, 2015, 09:46:01 AM
In Virtuemart 3.0.8 / Joomla 3.4.1 the custom field Tooltip is showing HTML. How can the HTML be removed?
Title: Re: Tooltip custom field shows HTML
Post by: jenkinhill on May 09, 2015, 11:45:46 AM
That Joomla 3.4.1 related problem has been fixed in VM3.0.9 - available on http://dev.virtuemart.net/projects/virtuemart/files
Title: Re: Tooltip custom field shows HTML
Post by: inu2005 on May 11, 2015, 09:54:48 AM
I've just updated to VM 3.0.9, but the HTML is still showing in the customfield tooltip.....
Title: Re: Tooltip custom field shows HTML
Post by: jenkinhill on May 11, 2015, 11:48:13 AM
Caches cleared?
Title: Re: Tooltip custom field shows HTML
Post by: inu2005 on May 11, 2015, 23:44:02 PM
Yes, cache cleared. Also tried 2 other templates (Protostar and Beez3), but also here HTML in tooltip.
Title: Re: Tooltip custom field shows HTML
Post by: Studio 42 on May 12, 2015, 12:11:59 PM
Hi,
The HTML is added by Joomla in the php jhtml class
$result = '<strong>' . $title . '</strong><br />' . $content;
see YOURSITE\components\com_virtuemart\sublayouts\customfields.php
if ($field->custom_tip) {
echo JHtml::tooltip (vmText::_($field->custom_tip), vmText::_ ($field->custom_title), 'tooltip.png');

But Joomla 3 changed a little the code for tooltip, this mean you can have such bugs.

In Joomla 3 use JHtml::_('bootstrap.tooltip' ....)
see tutorial here : http://hwdmediashare.co.uk/blog/228-bootstrap-jhtml-library-joomla-3-0