Mouse hover over rating

  • Posts: 62
  • Thank you received: 1
9 years 7 months ago #216002

-- url of the page with the problem -- : fabulosa.ch
-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.4
-- PHP version -- : 5.4.44

Hi
I have a problem with the display of average rating when hovering over. See Image here:
www.fabulosa.ch/images/tooltipError.png
I have noticed that the the jQuery funtion for the tooltip is different than on site where it is working.
Working:

jQuery(document).ready(function()
				{
					jQuery('.hasTooltip').tooltip({"html": true,"container": "body"});
				});
Not working:
jQuery(function($) {
			 $('.hasTip').each(function() {
				var title = $(this).attr('title');
				if (title) {
					var parts = title.split('::', 2);
					var mtelement = document.id(this);
					mtelement.store('tip:title', parts[0]);
					mtelement.store('tip:text', parts[1]);
				}
			});
			var JTooltips = new Tips($('.hasTip').get(), {"maxTitleChars": 50,"fixed": false});
		});
Do you have any clue where this could be coming from?
Thanks in advance for helping
Best regards

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
9 years 7 months ago #216004

Hi,

The code used to generate that tooltip is:

<?php echo JHTML::tooltip($row->hikashop_vote_average_score.'/'.$row->hikashop_vote_nb_star, JText::_('VOTE_AVERAGE'), '', ' '.$row->hikashop_vote_total_vote.' '); ?>
And is in the view "vote / mini", please check that you have that code on your view and not an old one.

As you can see we use "JHTML::tooltip" which is a Joomla function, so you should not have issues with that.

Please Log in or Create an account to join the conversation.

Time to create page: 0.040 seconds
Powered by Kunena Forum