VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: erwinds on July 31, 2020, 15:23:51 PM

Title: Tooltip bug with HTML code
Post by: erwinds on July 31, 2020, 15:23:51 PM
hi

the tooltip is displayed with html code
Title: Re: Tooltip bug with HTML code
Post by: jjk on August 01, 2020, 20:32:25 PM
Is your screenshot from the demo on virtuemart.net or your own demo installation? As far as I remember it's caused by a conflict of mootools and jquery. Mootools is not included anymore in current Joomla/VirtueMart installations.
Title: Re: Tooltip bug with HTML code
Post by: jenkinhill on August 02, 2020, 11:13:39 AM
IIRC the fix is to include data-html="true" in the link.
Title: Re: Tooltip bug with HTML code
Post by: erwinds on August 02, 2020, 21:01:10 PM
hi jenkinhill,

Where can I find the link?

mvg,
Erwin
Title: Re: Tooltip bug with HTML code
Post by: jenkinhill on August 03, 2020, 11:41:42 AM
In the default template, the link is built in components/com_virtuemart/sublayouts/customfields.php


<?php if ($field->custom_tip) {
echo JHtml::tooltip (vmText::_($field->custom_tip), vmText::($field->custom_title), 'tooltip.png');
?>



I usually use the Hera template and do not use HTML in tooltips so have not tried to use data-html="true". The code in the Hera override for customfields.php is:


<?php if ($field->custom_tip) {
              echo 
'<span class="hasTooltip" title="'.vmText::($field->custom_tip).'"><i class="fa fa-info-circle"></i></span>';
?>


Title: Re: Tooltip bug with HTML code
Post by: erwinds on August 03, 2020, 13:53:01 PM
hi Jenkinhill,

i try this but is empty
Title: Re: Tooltip bug with HTML code
Post by: pinochico on August 03, 2020, 14:33:19 PM
To erwinds:
is not Hera template where do you try, jenkinhill show you option for Hera template...


Do you understand how BS tooltip function?
Find any info about bs tooltip on google or you are waiting for exatctly code?
Title: Re: Tooltip bug with HTML code
Post by: erwinds on August 03, 2020, 14:39:13 PM
Hi,

my template is VINO VERITAS - JOOMLA! TEMPLATE
Title: Re: Tooltip bug with HTML code
Post by: pinochico on August 03, 2020, 14:47:40 PM
Really? :)

But why do you send other?
Title: Re: Tooltip bug with HTML code
Post by: erwinds on August 03, 2020, 14:57:06 PM
hi,

sorry wrong website this is the right one