Bug rating & problem with compare

  • Posts: 25
  • Thank you received: 1
12 years 1 month ago #69866

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

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
12 years 1 month ago #70034

Hi,

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.

  • Posts: 25
  • Thank you received: 1
12 years 1 month ago #70062

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

Attachments:

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

  • Posts: 25
  • Thank you received: 1
12 years 1 month ago #70066

I investigated:
if the chart button is displayed the html head code is

<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>
if the chart button is hidden is
<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.

  • Posts: 25
  • Thank you received: 1
12 years 1 month ago #70068

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();

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

  • Posts: 13201
  • Thank you received: 2322
12 years 1 month ago #70084

Hi fdesanto,

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.070 seconds
Powered by Kunena Forum