[Skip to main content](#vessel-content)

#   Bug rating &amp; problem with compare

##

- **[fdesanto](/forum/user/4029-fdesanto "View fdesanto's Profile")**
- [![fdesanto's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4029.jpg)](/forum/user/4029-fdesanto "View fdesanto's Profile") Topic Author
- [ Offline](/forum/user/4029-fdesanto)

Less More

- Posts: 25
- Thank you received: 1
-
-

14 years 2 weeks ago [\#69866](#69866) by [fdesanto](/forum/user/4029-fdesanto "View fdesanto's Profile")  *[Bug rating &amp; problem with compare](/forum/3-bug-report/69866-bug-rating-problem-with-compare#69866 "Hi, Bug rating: in the product listing div, if i show the votes and hide the button &quot;add to chart&quot; the rating don't work(javascript error)  Problem with Compare product You can not compare the products on different pages")* was created by *[fdesanto](/forum/user/4029-fdesanto "View fdesanto's Profile")*

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](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC82OTg2Ni1idWctcmF0aW5nLXByb2JsZW0td2l0aC1jb21wYXJlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86291
- Thank you received: 14269
-
-

14 years 1 week ago [\#70034](#70034) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Bug rating &amp; problem with compare](/forum/3-bug-report/69866-bug-rating-problem-with-compare#70034 "Hi, Bug rating: in the product listing div, if i show the votes and hide the button &quot;add to chart&quot; the rating don't work(javascript error)  Problem with Compare product You can not compare the products on different pages")*

Hi,

1. What is the javascript error you have ?

2. Yes, that's note supported for now.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC82OTg2Ni1idWctcmF0aW5nLXByb2JsZW0td2l0aC1jb21wYXJlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[fdesanto](/forum/user/4029-fdesanto "View fdesanto's Profile")**
- [![fdesanto's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4029.jpg)](/forum/user/4029-fdesanto "View fdesanto's Profile") Topic Author
- [ Offline](/forum/user/4029-fdesanto)

Less More

- Posts: 25
- Thank you received: 1
-
-

14 years 1 week ago [\#70062](#70062) by [fdesanto](/forum/user/4029-fdesanto "View fdesanto's Profile")  Replied by *[fdesanto](/forum/user/4029-fdesanto "View fdesanto's Profile")* on topic *[Re: Bug rating &amp; problem with compare](/forum/3-bug-report/69866-bug-rating-problem-with-compare#70062 "Hi, Bug rating: in the product listing div, if i show the votes and hide the button &quot;add to chart&quot; the rating don't work(javascript error)  Problem with Compare product You can not compare the products on different pages")*

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

- [ ![Schermata&#95;2012-10-15&#95;alle&#95;09&#95;41&#95;02.png](/forum/attachment/6279) ](/forum/attachment/6279 "...e&#95;09&#95;41&#95;02.png") [ ](/forum/attachment/6279?download=1 "...e&#95;09&#95;41&#95;02.png")
- [ ![Schermata&#95;2012-10-15&#95;alle&#95;09&#95;41&#95;45.png](/forum/attachment/6280) ](/forum/attachment/6280 "...e&#95;09&#95;41&#95;45.png") [ ](/forum/attachment/6280?download=1 "...e&#95;09&#95;41&#95;45.png")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC82OTg2Ni1idWctcmF0aW5nLXByb2JsZW0td2l0aC1jb21wYXJlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[fdesanto](/forum/user/4029-fdesanto "View fdesanto's Profile")**
- [![fdesanto's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4029.jpg)](/forum/user/4029-fdesanto "View fdesanto's Profile") Topic Author
- [ Offline](/forum/user/4029-fdesanto)

Less More

- Posts: 25
- Thank you received: 1
-
-

14 years 1 week ago [\#70066](#70066) by [fdesanto](/forum/user/4029-fdesanto "View fdesanto's Profile")  Replied by *[fdesanto](/forum/user/4029-fdesanto "View fdesanto's Profile")* on topic *[Re: Bug rating &amp; problem with compare](/forum/3-bug-report/69866-bug-rating-problem-with-compare#70066 "Hi, Bug rating: in the product listing div, if i show the votes and hide the button &quot;add to chart&quot; the rating don't work(javascript error)  Problem with Compare product You can not compare the products on different pages")*

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

&lt;script src="/media/com_hikashop/js/hikashop.js?v=160" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="/media/system/js/mootools-core.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="/media/system/js/core.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="/media/system/js/mootools-more.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="/media/com_hikashop/js/vote.js" type="text/javascript"&gt;&lt;/script&gt;

if the chart button is hidden is Code:

&lt;script src="/media/com_hikashop/js/hikashop.js?v=160" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="/media/com_hikashop/js/vote.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="/media/system/js/mootools-core.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="/media/system/js/core.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="/media/system/js/mootools-more.js" type="text/javascript"&gt;&lt;/script&gt;

**The mootool scripts are loaded after vote.js, this causes an error**

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC82OTg2Ni1idWctcmF0aW5nLXByb2JsZW0td2l0aC1jb21wYXJlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[fdesanto](/forum/user/4029-fdesanto "View fdesanto's Profile")**
- [![fdesanto's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4029.jpg)](/forum/user/4029-fdesanto "View fdesanto's Profile") Topic Author
- [ Offline](/forum/user/4029-fdesanto)

Less More

- Posts: 25
- Thank you received: 1
-
-

14 years 1 week ago [\#70068](#70068) by [fdesanto](/forum/user/4029-fdesanto "View fdesanto's Profile")  Replied by *[fdesanto](/forum/user/4029-fdesanto "View fdesanto's Profile")* on topic *[Re: Bug rating &amp; problem with compare](/forum/3-bug-report/69866-bug-rating-problem-with-compare#70068 "Hi, Bug rating: in the product listing div, if i show the votes and hide the button &quot;add to chart&quot; the rating don't work(javascript error)  Problem with Compare product You can not compare the products on different pages")*

I solved so:
in com_hikashop/views/vote/view.html.php at line 217 i move $doc-&gt;addScript(HIKASHOP_JS.'vote.js'); after $class-&gt;loadJS();

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC82OTg2Ni1idWctcmF0aW5nLXByb2JsZW0td2l0aC1jb21wYXJlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

14 years 1 week ago [\#70084](#70084) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[Re: Bug rating &amp; problem with compare](/forum/3-bug-report/69866-bug-rating-problem-with-compare#70084 "Hi, Bug rating: in the product listing div, if i show the votes and hide the button &quot;add to chart&quot; the rating don't work(javascript error)  Problem with Compare product You can not compare the products on different pages")*

Hi fdesanto,

Thanks to have shared your solution. I will correct it on our end for the next release.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC82OTg2Ni1idWctcmF0aW5nLXByb2JsZW0td2l0aC1jb21wYXJlP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.279 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
