- Posts: 25
- Thank you received: 1
Bug rating & problem with compare
13 years 11 months ago #69866
by fdesanto
Bug rating & problem with compare was created by fdesanto
Hi,
Bug rating:
in the product listing div, if i show the votes and hide the button "add to chart" the rating don't work(javascript error)
Problem with Compare product
You can not compare the products on different pages
Bug rating:
in the product listing div, if i show the votes and hide the button "add to chart" the rating don't work(javascript error)
Problem with Compare product
You can not compare the products on different pages
Please Log in or Create an account to join the conversation.
13 years 11 months ago #70034
by nicolas
Replied by nicolas on topic Re: Bug rating & problem with compare
Hi,
1. What is the javascript error you have ?
2. Yes, that's note supported for now.
1. What is the javascript error you have ?
2. Yes, that's note supported for now.
Please Log in or Create an account to join the conversation.
13 years 11 months ago #70062
by fdesanto
Replied by fdesanto on topic Re: Bug rating & problem with compare
Uncaught ReferenceError: Class is not defined vote.js:1
Uncaught TypeError: undefined is not a function 12-cat1.html:1011
if the add to chart button is displayed, work well
Uncaught TypeError: undefined is not a function 12-cat1.html:1011
if the add to chart button is displayed, work well
Please Log in or Create an account to join the conversation.
13 years 11 months ago #70066
by fdesanto
Replied by fdesanto on topic Re: Bug rating & problem with compare
I investigated:
if the chart button is displayed the html head code is
if the chart button is hidden is
The mootool scripts are loaded after vote.js, this causes an error
if the chart button is displayed the html head code is
Code:
<script src="/media/com_hikashop/js/hikashop.js?v=160" type="text/javascript"></script>
<script src="/media/system/js/mootools-core.js" type="text/javascript"></script>
<script src="/media/system/js/core.js" type="text/javascript"></script>
<script src="/media/system/js/mootools-more.js" type="text/javascript"></script>
<script src="/media/com_hikashop/js/vote.js" type="text/javascript"></script>
Code:
<script src="/media/com_hikashop/js/hikashop.js?v=160" type="text/javascript"></script>
<script src="/media/com_hikashop/js/vote.js" type="text/javascript"></script>
<script src="/media/system/js/mootools-core.js" type="text/javascript"></script>
<script src="/media/system/js/core.js" type="text/javascript"></script>
<script src="/media/system/js/mootools-more.js" type="text/javascript"></script>
The mootool scripts are loaded after vote.js, this causes an error
Please Log in or Create an account to join the conversation.
13 years 11 months ago #70068
by fdesanto
Replied by fdesanto on topic Re: Bug rating & problem with compare
I solved so:
in com_hikashop/views/vote/view.html.php at line 217 i move $doc->addScript(HIKASHOP_JS.'vote.js'); after $class->loadJS();
in com_hikashop/views/vote/view.html.php at line 217 i move $doc->addScript(HIKASHOP_JS.'vote.js'); after $class->loadJS();
Please Log in or Create an account to join the conversation.
13 years 11 months ago #70084
by Xavier
Replied by Xavier on topic Re: Bug rating & problem with compare
Hi fdesanto,
Thanks to have shared your solution. I will correct it on our end for the next release.
Thanks to have shared your solution. I will correct it on our end for the next release.
Please Log in or Create an account to join the conversation.
Time to create page: 0.232 seconds