Are you enjoying the extensions? Did you like the support? Help others decide.

Leave a review

check Multiple conflicts - Please help

More
10 years 2 months ago #3533 by 16ibs29
Multiple conflicts - Please help was created by 16ibs29
Hello!

I'm struggling with .js and keeping everybody happy :cheer:

I'm using HikaShop, Rockettheme, Community Builder & ArtZoom.

CB Social Login won't work without 1.5.2 which seems to conflict with ArtZoom & HikaShop Price Range Filter slider.

Please check out the site staclio.smezzea.com/store. Any suggestions how to best configure jquery easy?

Thank you for your assistance!

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

More
10 years 2 months ago #3534 by admin
Replied by admin on topic Multiple conflicts - Please help
Hello,

you are having several instances of jQuery loaded on the site.
My first advise would be to try and see if you can diable jQuery form the component hikashop.
Then use jQuery Easy to enable jQuery AND jQuery UI.
Hikashop uses jQuery v1.8.3 and jQuery UI v1.10.3.
Joomla loads jQuery v1.10.2.
So I would suggest loading jQuery v1.10.2 AND Migrate AND jQuery UI v1.10.3 from the jQuery Easy plugin.

In the advanced settings, you can specify in which pagesyou just need these modifications (but we can leave it at that until later on).

I went down the code on the page. You have got some serious issues.
The loading of jQuery, again (v1.5.2 as you noted before).

Such code as:
var cbjQuery = jQuery.noConflict( true );
window.$ = cbjQuery;
window.jQuery = cbjQuery;
cbjQuery( document ).ready( function( $ ) {
var jQuery = $;
$( '.facebook_button,.facebook_button_small' ).[...] });

is plain nightmare! And not the simplest way to deal with jQuery...

The right code should have been:
var cbjQuery = jQuery.noConflict();
cbjQuery( document ).ready( function( $ ) {
$( '.facebook_button,.facebook_button_small' ).[...] });

Set jQuery Easy plugin to NOT remove jQuery noconflict code for now because it will make things worse.

Try that and we will see how it goes. We will go from there.

Olivier.

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

More
10 years 2 months ago #3535 by 16ibs29
Replied by 16ibs29 on topic Multiple conflicts - Please help
Hello!

Thank you for the advice.

I disabled the Community Builder Login [will use something else for social login].

Current settings - See attachments:



Now I have my original theme back [from Rockettheme template], but I lost the HikaShop slider [staclio.smezzea.com/product-page] and the city & state [iProperty - staclio.smezzea.com/properties] are not functioning correctly.

I've tried several configurations, no luck with fixing the js conflicts. Any other suggestions?

Thank you!!!
Attachments:

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

More
10 years 2 months ago #3536 by admin
Replied by admin on topic Multiple conflicts - Please help
There is problem that I do not understand.
the script: media/jui/js/chosen.jquery.min.js is removed when it should not be. The removal is skipped on my test sites but not in yours, despite the fact that it is in the 'ignore scripts' parameter.
Try adding the path /media/jui/js/chosen.jquery.min.js to the 'add script'.

Also, in the 'strip remaining scripts', add /media/jui/js/jquery-noconflict.js

Let me know when you are done with that.

Olivier.

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

More
10 years 2 months ago #3537 by 16ibs29
Replied by 16ibs29 on topic Multiple conflicts - Please help
Made requested changes. Lost Rockettheme UI on the dropdowns, but the slider is working again.

The city, state still doesn't work. If you hover of the city/state dropdown you will see 'javascriptvoid(0)' in the browser notification [lower left in Firefox], but no errors in FireBug.

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

More
10 years 2 months ago #3538 by admin
Replied by admin on topic Multiple conflicts - Please help
If you need jQuery UI then you need to enable it in the jQuery Easy plugin. As far as I can see from your screenshots, jQuery UI is not enabled.

Olivier.

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