ratings doubled

  • Posts: 116
  • Thank you received: 1
7 years 2 months ago #192436

-- url of the page with the problem -- : walliser-weine.ch
-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.5
-- Browser(s) name and version -- : all
-- Error-message(debug-mod must be tuned on) -- : multiple ratings

Hi,

When i add 2 ore more modules like
- bestseller
- most rated
the rating stars are doubled or tripled, depending on how many modules i am using on the website.

Any idea how i can fix this?

Thanks

Markus

Attachments:

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

  • Posts: 25251
  • Thank you received: 3908
  • MODERATOR
7 years 2 months ago #192449

Hi,

It's strange because the initialization is made by the javascript file itself.
Because the javascript is just added once, the initialization should be done once.

One solution will be to edit the vote.js file and replace

if(typeof(el) == 'string')
	t.selectBox = d.getElementById(el);
else
	t.selectBox = el;
By
if(typeof(el) == 'string')
	t.selectBox = d.getElementById(el);
else
	t.selectBox = el;

if(el.voteInit)
	return;

And also
t.setRating(t.options.defaultRating);
By
t.setRating(t.options.defaultRating);

el.voteInit = true;

So it will not re-init an element.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 116
  • Thank you received: 1
7 years 2 months ago #192631

Hi,

I am sorry, but where do i find this file. I cannot find it with "search".

Regards
Markus

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

  • Posts: 2115
  • Thank you received: 729
  • Hikashop Business
7 years 2 months ago #192657

/media/com_hikashop/js/vote.js


Need help with customisations of layouts, style or other site development? PM me!
(Don't forget to turn on "E-mail notification of new messages" )

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

  • Posts: 25251
  • Thank you received: 3908
  • MODERATOR
7 years 2 months ago #192661

Hi,

Like lousyfool wrote, you can find that file in the folder media/com_hikashop/js.
You can't edit it via your backend unless you're using a file manager extension for Joomla like ExtPlorer.
You can also edit it via FTP or your hosting's Cpanel file manager.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 116
  • Thank you received: 1
7 years 2 months ago #192755

Hi Jer'ôme

It is working. many thanks. :)

Regards

Markus

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

Time to create page: 0.074 seconds
Powered by Kunena Forum