News:

Support the VirtueMart project and become a member

Main Menu

Tooltip bug with HTML code

Started by erwinds, July 31, 2020, 15:23:51 PM

Previous topic - Next topic

erwinds

hi

the tooltip is displayed with html code

jjk

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.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

jenkinhill

IIRC the fix is to include data-html="true" in the link.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

erwinds

hi jenkinhill,

Where can I find the link?

mvg,
Erwin

jenkinhill

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>';
?>


Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

erwinds

hi Jenkinhill,

i try this but is empty

pinochico

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?
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

erwinds

Hi,

my template is VINO VERITAS - JOOMLA! TEMPLATE

pinochico

Really? :)

But why do you send other?
www.minijoomla.org  - new portal for Joomla!, Virtuemart and other extensions
XML Easy Feeder - feeds for FB, GMC,.. from products, categories, orders, users, articles, acymailing subscribers and database table
Virtuemart Email Manager - customs email templates
Import products for Virtuemart - from CSV and XML
Rich Snippets - Google Structured Data
VirtueMart Products Extended - Slider with products, show Others bought, Products by CF ID and others filtering products

erwinds

hi,

sorry wrong website this is the right one