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

#   JQuerry error in affiliate plugin breaks component

##

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

Less More

- Posts: 259
- Thank you received: 10
-
-
- [](http://www.soliweb.be)
-

13 years 11 months ago [\#78201](#78201) by [Ch3vr0n](/forum/user/2857-ch3vr0n "View Ch3vr0n's Profile")  *[JQuerry error in affiliate plugin breaks component](/forum/3-bug-report/76057-jquerry-error-in-affiliate-plugin-breaks-component#78201 "I'm using a component called CookieConfirm to be in compliance of the EU privacy cookie directive. However with hikashop installed, there is an error in the JQuery that stops the banner asking for...")* was created by *[Ch3vr0n](/forum/user/2857-ch3vr0n "View Ch3vr0n's Profile")*

I'm using a component called CookieConfirm to be in compliance of the EU privacy cookie directive. However with hikashop installed, there is an error in the JQuery that stops the banner asking for cookie permission to work. The author of the component has found the problem and it lies with the hikashop affiliate plugin. The exact error is as followed.
Code:

&lt;script type="text/javascript"&gt; jQuery(document).ready(function (){ jQuery('select').chosen({ Uncaught TypeError: Object [object Object] has no method 'chosen' disable_search_threshold : 10, allow_single_deselect : true }); }); window.addEvent('load', function() { new JCaption('img.caption'); }); &lt;/script&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83NjA1Ny1qcXVlcnJ5LWVycm9yLWluLWFmZmlsaWF0ZS1wbHVnaW4tYnJlYWtzLWNvbXBvbmVudD90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 11 months ago [\#78204](#78204) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[JQuerry error in affiliate plugin breaks component](/forum/3-bug-report/76057-jquerry-error-in-affiliate-plugin-breaks-component#78204 "I'm using a component called CookieConfirm to be in compliance of the EU privacy cookie directive. However with hikashop installed, there is an error in the JQuery that stops the banner asking for...")*

Hi,

We do not have such javascript code in HikaShop because we do not initialize chosen directly.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83NjA1Ny1qcXVlcnJ5LWVycm9yLWluLWFmZmlsaWF0ZS1wbHVnaW4tYnJlYWtzLWNvbXBvbmVudD90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 259
- Thank you received: 10
-
-
- [](http://www.soliweb.be)
-

13 years 11 months ago [\#78209](#78209) by [Ch3vr0n](/forum/user/2857-ch3vr0n "View Ch3vr0n's Profile")  Replied by *[Ch3vr0n](/forum/user/2857-ch3vr0n "View Ch3vr0n's Profile")* on topic *[JQuerry error in affiliate plugin breaks component](/forum/3-bug-report/76057-jquerry-error-in-affiliate-plugin-breaks-component#78209 "I'm using a component called CookieConfirm to be in compliance of the EU privacy cookie directive. However with hikashop installed, there is an error in the JQuery that stops the banner asking for...")*

That's rather weird, cause when the affiliate plugin gets disabled the component works just fine. I can provide the CookieConfirm component if you like

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83NjA1Ny1qcXVlcnJ5LWVycm9yLWluLWFmZmlsaWF0ZS1wbHVnaW4tYnJlYWtzLWNvbXBvbmVudD90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 11 months ago [\#78210](#78210) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[JQuerry error in affiliate plugin breaks component](/forum/3-bug-report/76057-jquerry-error-in-affiliate-plugin-breaks-component#78210 "I'm using a component called CookieConfirm to be in compliance of the EU privacy cookie directive. However with hikashop installed, there is an error in the JQuery that stops the banner asking for...")*

Hi,

HikaShop can call the Joomla 3 "chosen" library, but we do not initialized it.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83NjA1Ny1qcXVlcnJ5LWVycm9yLWluLWFmZmlsaWF0ZS1wbHVnaW4tYnJlYWtzLWNvbXBvbmVudD90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 259
- Thank you received: 10
-
-
- [](http://www.soliweb.be)
-

13 years 11 months ago [\#78217](#78217) by [Ch3vr0n](/forum/user/2857-ch3vr0n "View Ch3vr0n's Profile")  Replied by *[Ch3vr0n](/forum/user/2857-ch3vr0n "View Ch3vr0n's Profile")* on topic *[JQuerry error in affiliate plugin breaks component](/forum/3-bug-report/76057-jquerry-error-in-affiliate-plugin-breaks-component#78217 "I'm using a component called CookieConfirm to be in compliance of the EU privacy cookie directive. However with hikashop installed, there is an error in the JQuery that stops the banner asking for...")*

The error is gone when I disable the hikashopaffiliate plugin. It's also not happening when that plugin is enabled and the Hikashop helper is not loaded, by commenting the include in hikashopaffiliate.php:

if(!include_once(rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php')) return true;

I've enabled the plugin and you can see the error at the following website (Firebug -&gt; console) [my personal browser is firefox 16.0.2. Firebug is an extension]:

[ www.soliweb.be/](http://www.soliweb.be/) This is either a bug in Hikashop or in Joomla 3.

Could you please give it a look? Thanks!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83NjA1Ny1qcXVlcnJ5LWVycm9yLWluLWFmZmlsaWF0ZS1wbHVnaW4tYnJlYWtzLWNvbXBvbmVudD90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 11 months ago [\#78219](#78219) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[JQuerry error in affiliate plugin breaks component](/forum/3-bug-report/76057-jquerry-error-in-affiliate-plugin-breaks-component#78219 "I'm using a component called CookieConfirm to be in compliance of the EU privacy cookie directive. However with hikashop installed, there is an error in the JQuery that stops the banner asking for...")*

Hi,

Without an access to the front end, it would be difficult.

Please add a new element in the #__hikashop_config table.
config_namekey : bootstrap_forcechosen
config_value : 0
config_default : 1

It would remove the Joomla 3 chosen initialization.
But as I already said 2 times, this is not an HikaShop bug. This is a Joomla 3 Template problem.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83NjA1Ny1qcXVlcnJ5LWVycm9yLWluLWFmZmlsaWF0ZS1wbHVnaW4tYnJlYWtzLWNvbXBvbmVudD90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 259
- Thank you received: 10
-
-
- [](http://www.soliweb.be)
-

13 years 11 months ago [\#78227](#78227) by [Ch3vr0n](/forum/user/2857-ch3vr0n "View Ch3vr0n's Profile")  Replied by *[Ch3vr0n](/forum/user/2857-ch3vr0n "View Ch3vr0n's Profile")* on topic *[JQuerry error in affiliate plugin breaks component](/forum/3-bug-report/76057-jquerry-error-in-affiliate-plugin-breaks-component#78227 "I'm using a component called CookieConfirm to be in compliance of the EU privacy cookie directive. However with hikashop installed, there is an error in the JQuery that stops the banner asking for...")*

Key added and its working Thanks. about the bug issue, sorry. I understood where you said it was not a hikashop issue but didn't know where else to look. Now that you've said it's a template issue, i can go knock on Joomla's door ![:)](/media/kunena/emoticons/3.png ":)")

Check your hikashop domain mailbox for Superuser access to the site if you still need it. Ifnot lemme know and ill remove the account. If needed FTP access will be granted aswell

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83NjA1Ny1qcXVlcnJ5LWVycm9yLWluLWFmZmlsaWF0ZS1wbHVnaW4tYnJlYWtzLWNvbXBvbmVudD90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

13 years 11 months ago [\#78231](#78231) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[JQuerry error in affiliate plugin breaks component](/forum/3-bug-report/76057-jquerry-error-in-affiliate-plugin-breaks-component#78231 "I'm using a component called CookieConfirm to be in compliance of the EU privacy cookie directive. However with hikashop installed, there is an error in the JQuery that stops the banner asking for...")*

Hi,

When Joomla ask for the "chosen" library, the template should include it.
Joomla adds some javascript to initialize chosen on the page but if the library is not include, the javascript fails.

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83NjA1Ny1qcXVlcnJ5LWVycm9yLWluLWFmZmlsaWF0ZS1wbHVnaW4tYnJlYWtzLWNvbXBvbmVudD90bXBsPW1hcmtkb3du) or [Create an account](/register) to join the conversation.

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

Less More

- Posts: 259
- Thank you received: 10
-
-
- [](http://www.soliweb.be)
-

13 years 11 months ago [\#78251](#78251) by [Ch3vr0n](/forum/user/2857-ch3vr0n "View Ch3vr0n's Profile")  Replied by *[Ch3vr0n](/forum/user/2857-ch3vr0n "View Ch3vr0n's Profile")* on topic *[JQuerry error in affiliate plugin breaks component](/forum/3-bug-report/76057-jquerry-error-in-affiliate-plugin-breaks-component#78251 "I'm using a component called CookieConfirm to be in compliance of the EU privacy cookie directive. However with hikashop installed, there is an error in the JQuery that stops the banner asking for...")*

If i could ask a favor if you (or someone else on the HS team has the time), could this template bug in combo with CookieConfirm &amp; HS be added &amp; followed up on the J3 [ joomlacode.org/gf/project/joomla/tracker...owse&amp;tracker\_id=8103](http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemBrowse&tracker_id=8103). Since you guys are obviously more skilled then i am in the whole joomla code &amp; javascript thing and how it works (or interferes) with proper component &amp; template function.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC83NjA1Ny1qcXVlcnJ5LWVycm9yLWluLWFmZmlsaWF0ZS1wbHVnaW4tYnJlYWtzLWNvbXBvbmVudD90bXBsPW1hcmtkb3du) or [Create an account](/register) 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.100 seconds

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

[](#top)
