VirtueMart Forum

VirtueMart 2 + 3 + 4 => Templating & Layouts => Topic started by: Tryer on December 24, 2018, 22:00:49 PM

Title: Tooltip in custom fields displayed in product descriptions not working correctly
Post by: Tryer on December 24, 2018, 22:00:49 PM
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.

Title: Re: Tooltip in custom fields displayed in product descriptions not working correctly
Post by: Tryer on December 28, 2018, 21:03:01 PM
Am I the only Virtuemart-user suffering from this problem?
Title: Re: Tooltip in custom fields displayed in product descriptions not working correctly
Post by: Studio 42 on December 28, 2018, 23:07:07 PM
Some live site to verify the problem ?
Title: Re: Tooltip in custom fields displayed in product descriptions not working correctly
Post by: Tryer on December 30, 2018, 20:57:47 PM
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
Title: Re: Tooltip in custom fields displayed in product descriptions not working correctly
Post by: jjk on December 30, 2018, 22:42:13 PM
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.
Title: Re: Tooltip in custom fields displayed in product descriptions not working correctly
Post by: Tryer on December 31, 2018, 11:23:45 AM
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.
Title: Re: Tooltip in custom fields displayed in product descriptions not working correctly
Post by: GJC Web Design on December 31, 2018, 12:42:02 PM
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?
Title: Re: Tooltip in custom fields displayed in product descriptions not working correctly
Post by: Tryer on December 31, 2018, 17:04:16 PM
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"
Title: Re: Tooltip in custom fields displayed in product descriptions not working correctly
Post by: Tryer on December 31, 2018, 17:20:04 PM
OK, I found the tooltips stored in databasename_virtuemart_customs. They are stored as plain text - ie "Select size" with no HTML tags.