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

#   LOADING JQUERY MULTIPLE TIMES

##

- **[paulocamacho](/forum/user/822-paulocamacho "View paulocamacho's Profile")**
- [![paulocamacho's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/822-paulocamacho "View paulocamacho's Profile") Topic Author
- [ Offline](/forum/user/822-paulocamacho)

Less More

- Posts: 188
- Thank you received: 0
-
-

14 years 8 months ago [\#42133](#42133) by [paulocamacho](/forum/user/822-paulocamacho "View paulocamacho's Profile")  *[LOADING JQUERY MULTIPLE TIMES](/forum/3-bug-report/42133-loading-jquery-multiple-times#42133 "Hi Nic, I have a little problem here ,   us.miicards.com/business-cards/silk-card...silk-business-cards-  , went change the quantity the application below not work , I think...")* was created by *[paulocamacho](/forum/user/822-paulocamacho "View paulocamacho's Profile")*

Hi Nic, I have a little problem here , [ us.miicards.com/business-cards/silk-card...silk-business-cards-](http://us.miicards.com/business-cards/silk-cards/product/203-fold-over-silk-business-cards-) , went change the quantity the application below not work , I think has something to do with LOADING JQUERY MULTIPLE TIMES , the template developer said this :

HOW TO PREVENT LOADING JQUERY MULTIPLE TIMES?

There is an ongoing discussion in the Joomla community on how to prevent loading jQuery multiple times across extensions. We have already taken steps and measures by implementing a widely accepted solution. We register through JApplication whether jQuery is loaded or not. In case a 3rd party extension loads the jQuery library you can use the following code snippet to prevent our ZOO extension, Widgetkit or Warp theme from loading it twice:

// load jQuery, if not loaded before
if (!JFactory::getApplication()-&gt;get('jquery')) {
JFactory::getApplication()-&gt;set('jquery', true);
// add jQuery
...
}
You can also get in touch with the 3rd party extension developer and kindly ask them to implement this.

Thanks so much for your help.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC80MjEzMy1sb2FkaW5nLWpxdWVyeS1tdWx0aXBsZS10aW1lcz90bXBsPW1hcmtkb3du) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

14 years 8 months ago [\#42134](#42134) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: LOADING JQUERY MULTIPLE TIMES](/forum/3-bug-report/42133-loading-jquery-multiple-times#42134 "Hi Nic, I have a little problem here ,   us.miicards.com/business-cards/silk-card...silk-business-cards-  , went change the quantity the application below not work , I think...")*

The only place where jquery is loaded by HikaShop is when you use a filter of the type "slider".
Otherwise, HikaShop does not use it. And no one reported any problems with it so far.

The solution we recommend when you have such problems is to install and enable the jquery easy plugin. It should sort out any jquery incompatibility problem and it's really easy to do.

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

- **[paulocamacho](/forum/user/822-paulocamacho "View paulocamacho's Profile")**
- [![paulocamacho's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/822-paulocamacho "View paulocamacho's Profile") Topic Author
- [ Offline](/forum/user/822-paulocamacho)

Less More

- Posts: 188
- Thank you received: 0
-
-

14 years 8 months ago [\#42135](#42135) by [paulocamacho](/forum/user/822-paulocamacho "View paulocamacho's Profile")  Replied by *[paulocamacho](/forum/user/822-paulocamacho "View paulocamacho's Profile")* on topic *[Re: LOADING JQUERY MULTIPLE TIMES](/forum/3-bug-report/42133-loading-jquery-multiple-times#42135 "Hi Nic, I have a little problem here ,   us.miicards.com/business-cards/silk-card...silk-business-cards-  , went change the quantity the application below not work , I think...")*

Thanks men, I install that but still give me the same thing, only happens went change the product options, ummm any other idea ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC80MjEzMy1sb2FkaW5nLWpxdWVyeS1tdWx0aXBsZS10aW1lcz90bXBsPW1hcmtkb3du) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

14 years 8 months ago [\#42137](#42137) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: LOADING JQUERY MULTIPLE TIMES](/forum/3-bug-report/42133-loading-jquery-multiple-times#42137 "Hi Nic, I have a little problem here ,   us.miicards.com/business-cards/silk-card...silk-business-cards-  , went change the quantity the application below not work , I think...")*

The quantity change works fine for me on that page now.

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

- **[paulocamacho](/forum/user/822-paulocamacho "View paulocamacho's Profile")**
- [![paulocamacho's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/822-paulocamacho "View paulocamacho's Profile") Topic Author
- [ Offline](/forum/user/822-paulocamacho)

Less More

- Posts: 188
- Thank you received: 0
-
-

14 years 8 months ago [\#42139](#42139) by [paulocamacho](/forum/user/822-paulocamacho "View paulocamacho's Profile")  Replied by *[paulocamacho](/forum/user/822-paulocamacho "View paulocamacho's Profile")* on topic *[Re: LOADING JQUERY MULTIPLE TIMES](/forum/3-bug-report/42133-loading-jquery-multiple-times#42139 "Hi Nic, I have a little problem here ,   us.miicards.com/business-cards/silk-card...silk-business-cards-  , went change the quantity the application below not work , I think...")*

Yes I know that works great , is the below application , that work application works good if you dont change the product options , but after you change any option the application stop working.

thanks so much

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

- **[paulocamacho](/forum/user/822-paulocamacho "View paulocamacho's Profile")**
- [![paulocamacho's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/822-paulocamacho "View paulocamacho's Profile") Topic Author
- [ Offline](/forum/user/822-paulocamacho)

Less More

- Posts: 188
- Thank you received: 0
-
-

14 years 8 months ago [\#42140](#42140) by [paulocamacho](/forum/user/822-paulocamacho "View paulocamacho's Profile")  Replied by *[paulocamacho](/forum/user/822-paulocamacho "View paulocamacho's Profile")* on topic *[Re: LOADING JQUERY MULTIPLE TIMES](/forum/3-bug-report/42133-loading-jquery-multiple-times#42140 "Hi Nic, I have a little problem here ,   us.miicards.com/business-cards/silk-card...silk-business-cards-  , went change the quantity the application below not work , I think...")*

Nic I just got answer from the template people and they said this , ( if have something todo with hika ? )

Some extension is loading jQuery from Google CDN,

[ ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js](http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js)

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

- **[paulocamacho](/forum/user/822-paulocamacho "View paulocamacho's Profile")**
- [![paulocamacho's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/822-paulocamacho "View paulocamacho's Profile") Topic Author
- [ Offline](/forum/user/822-paulocamacho)

Less More

- Posts: 188
- Thank you received: 0
-
-

14 years 8 months ago [\#42145](#42145) by [paulocamacho](/forum/user/822-paulocamacho "View paulocamacho's Profile")  Replied by *[paulocamacho](/forum/user/822-paulocamacho "View paulocamacho's Profile")* on topic *[Re: LOADING JQUERY MULTIPLE TIMES](/forum/3-bug-report/42133-loading-jquery-multiple-times#42145 "Hi Nic, I have a little problem here ,   us.miicards.com/business-cards/silk-card...silk-business-cards-  , went change the quantity the application below not work , I think...")*

Nic, I discover something , here I just use options and work find , [ us.miicards.com/designs/business-cards-t...gn-for-your-card-102](http://us.miicards.com/designs/business-cards-templates/product/2822-design-for-your-card-102)

in the other product I use characteristics and not works , thanks for your help.

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

- **[paulocamacho](/forum/user/822-paulocamacho "View paulocamacho's Profile")**
- [![paulocamacho's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/822-paulocamacho "View paulocamacho's Profile") Topic Author
- [ Offline](/forum/user/822-paulocamacho)

Less More

- Posts: 188
- Thank you received: 0
-
-

14 years 8 months ago [\#42160](#42160) by [paulocamacho](/forum/user/822-paulocamacho "View paulocamacho's Profile")  Replied by *[paulocamacho](/forum/user/822-paulocamacho "View paulocamacho's Profile")* on topic *[Re: LOADING JQUERY MULTIPLE TIMES](/forum/3-bug-report/42133-loading-jquery-multiple-times#42160 "Hi Nic, I have a little problem here ,   us.miicards.com/business-cards/silk-card...silk-business-cards-  , went change the quantity the application below not work , I think...")*

Nic , the template people said:

Did you show them how to load jQuery conditionally by pointing them to the Tutorial /

[url=http://][ www.yootheme.com/themes/documentation/tr...ng/javascript-errors](http://www.yootheme.com/themes/documentation/troubleshooting/javascript-errors)[/url]

thanks so much ,

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC80MjEzMy1sb2FkaW5nLWpxdWVyeS1tdWx0aXBsZS10aW1lcz90bXBsPW1hcmtkb3du) 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?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

14 years 8 months ago [\#42161](#42161) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: LOADING JQUERY MULTIPLE TIMES](/forum/3-bug-report/42133-loading-jquery-multiple-times#42161 "Hi Nic, I have a little problem here ,   us.miicards.com/business-cards/silk-card...silk-business-cards-  , went change the quantity the application below not work , I think...")*

Again, HikaShop does NOT load jQuery AT ALL. So the suggestions from yootheme are moot.
This does not concerns HikaShop. The fact that some JS process in HikaShop doesn't working properly is the result of an error generated by something else on your website using jQuery.

I checked again your first link and I think I understand now what does not work. It's your tabbed content in the product description. It has nothing to do with jQuery or the template.
That's because when you change a characteristic, the description is changed on the page. But since the JS of the tabs is only done when the page is loaded the tabs don't work after that.
So the solution is simple. Edit the file "show" of the view "product" via the menu Display-&gt;Views and remove the code: Code:

&lt;div id="hikashop_product_description_&lt;?php echo $variant_name;?&gt;" style="display:none;"&gt; &lt;?php echo JHTML::_('content.prepare',preg_replace('#&lt;hr *id="system-readmore" */&gt;#i','',$variant-&gt;product_description));?&gt; &lt;/div&gt;

Then it will work.

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

- **[paulocamacho](/forum/user/822-paulocamacho "View paulocamacho's Profile")**
- [![paulocamacho's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/822-paulocamacho "View paulocamacho's Profile") Topic Author
- [ Offline](/forum/user/822-paulocamacho)

Less More

- Posts: 188
- Thank you received: 0
-
-

14 years 8 months ago [\#42165](#42165) by [paulocamacho](/forum/user/822-paulocamacho "View paulocamacho's Profile")  Replied by *[paulocamacho](/forum/user/822-paulocamacho "View paulocamacho's Profile")* on topic *[Re: LOADING JQUERY MULTIPLE TIMES](/forum/3-bug-report/42133-loading-jquery-multiple-times#42165 "Hi Nic, I have a little problem here ,   us.miicards.com/business-cards/silk-card...silk-business-cards-  , went change the quantity the application below not work , I think...")*

wow, you the men, work fantastic, the best app for joomla , I wish you the best of best ,

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC80MjEzMy1sb2FkaW5nLWpxdWVyeS1tdWx0aXBsZS10aW1lcz90bXBsPW1hcmtkb3du) 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.061 seconds

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