Tooltip in custom fields displayed in product descriptions not working correctly

Started by Tryer, December 24, 2018, 22:00:49 PM

Previous topic - Next topic

Tryer

I am using Joomla 3.9.1, PHP 7.2 and Virtuemart 3.4.2.

The tooltip in custom multivariant fieldsdisplayed in product descriptions shows formatting information as well as the tooltip text. The incorrect display always has the same format - see below:

<strong>Custom Field Title</strong><br/>Tooltip Text.

Of course, the Custom Field Title should not be displayed before the Tooltip, but at least the fault symptoms are consistent.

I have read numerous previous posts regarding similar problems but it seems modifications were made to correct the problem. I have also read that this problem can be caused by jQuery conflicts.

Any comments would be appreciated.


Tryer


Studio 42


Tryer

Thanks for your reply.

This is a development site living in a subfolder of an unrelated site! To reach the page it is first necessary to login using USN "VMtest" and PW "VMtest" at the bottom right of the home page - ie: http://openphotographicsociety.org/jadance/index.php

The problem can then be seen at : http://openphotographicsociety.org/jadance/index.php/classes-details/fees/ballet/grades-1-4

Any comments welcomed,

Thanks

jjk

I didn't try to add a tooltip, but the setting in my screenshot below works. In your case I think you can also omit the tooltip if you change the label for example to 'Select size'. In my opinion it doesn't make a lot of sense to duplicate the product name in the tooltip.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

Tryer

Thanks for your reply.

It is interesting that your example shows in the custom field "<strong>text</strong>" but does not display an incorrect tooltip, but in my case the entry is "text" but displays as "<stong>text</strong>". It makes me feel that I am missing something quite basic here!

Also, I note that when "Show Title" is set to "No" in the custom field, no tooltip blue button or text is displayed at all.

I would like to use the tooltips although, because of the problem, I have not yet troubled to set them up with relevant text etc. No point if it is not going to work.

GJC Web Design

how is the <strong>text</strong> saved in the DB? which encoding etc?
When you look at the source code of the display I assume its &lt;strong&gt; etc?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Tryer

Thanks again for you reply.

Here is an examle of the page source for one of the tooltips:
<span class="hasTooltip" title="&lt;strong&gt;Black Capezio Leotard&lt;/strong&gt;&lt;br /&gt;Select size">

Strangely, I cannot find the tooltip text stored in the database (ie databasename_virtuemart_product_customfields). However, the tooltip text is stored as " text utf8_general_ci"

Tryer

OK, I found the tooltips stored in databasename_virtuemart_customs. They are stored as plain text - ie "Select size" with no HTML tags.