- Posts: 116
- Thank you received: 1
ratings doubled
11 years 7 months ago #192436
by MWALTHER
ratings doubled was created by MWALTHER
-- 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
-- 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
Please Log in or Create an account to join the conversation.
11 years 7 months ago #192449
by Jerome
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.
Replied by Jerome on topic ratings doubled
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
By
And also
By
So it will not re-init an element.
Regards,
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
Code:
if(typeof(el) == 'string')
t.selectBox = d.getElementById(el);
else
t.selectBox = el;
Code:
if(typeof(el) == 'string')
t.selectBox = d.getElementById(el);
else
t.selectBox = el;
if(el.voteInit)
return;
And also
Code:
t.setRating(t.options.defaultRating);
Code:
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.
11 years 6 months ago #192631
by MWALTHER
Replied by MWALTHER on topic ratings doubled
Hi,
I am sorry, but where do i find this file. I cannot find it with "search".
Regards
Markus
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.
11 years 6 months ago #192657
by lousyfool
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" )
Replied by lousyfool on topic ratings doubled
/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.
11 years 6 months ago #192661
by Jerome
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.
Replied by Jerome on topic ratings doubled
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,
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.
11 years 6 months ago #192755
by MWALTHER
Replied by MWALTHER on topic ratings doubled
Hi Jer'ôme
It is working. many thanks.
Regards
Markus
It is working. many thanks.
Regards
Markus
Please Log in or Create an account to join the conversation.
Time to create page: 0.203 seconds