Skip to main content

jQuery checkout conflict with HIkamarket upload

More
13 years 1 week ago #128434 by Marsbrook
-- HikaShop version -- : 2.2.1
-- HikaMarket version--: 1.3.0
-- Joomla version -- : 3.15
-- PHP version -- : 5.3.22
-- Browser(s) name and version -- : Firefox 24
-- Error-message(debug-mod must be tuned on) -- : Error_message

I seem to be in a catch 22 situation here..... my template supports jQuery and permits me to say whether I want it loaded or not. If I load it the checkout process works just fine with as per the attached image. However, I am then not able to upload images either via drag & drop or browsing using HikeMarket! There's no error message, indeed the message tell me everything has worked although it obviously hasn't.



If I disable jQuery in my template I can upload images using HikaMarket, however, the buttons in the checkout process no longer change colour to indicate which options have been chosen (shipping & payment mechanism). Here's how it them looks:



I'm not sure where I go from here - any ideas on what my next step should be please?
Thanks,

Richard

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

More
13 years 1 week ago #128437 by Jerome
Hi,

Can you send me a link to your website.
I want to analyze how jQuery is include in your website so I could how how HikaMarket can work without having a library problem.
You can send me such private information by private message.

Thanks

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

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

More
13 years 1 week ago - 13 years 1 week ago #128440 by Marsbrook
Sending it to you now....thanks Jerome.
Last edit: 13 years 1 week ago by Marsbrook.

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

More
13 years 1 week ago - 13 years 1 week ago #128441 by Jerome
Hi,

There is no specific problem with HikaMarket or HikaShop.
Your template, when including jQuery override all previous inclusions of jQuery modules like the HikaMarket uploader and the bootstrap modals.

HikaMarket made a backup of his jQuery library in order to have correctly the uploader lib loaded.
But in the page, the error is linked to the modals (and the scripts stopped so the uploaders are not initialized).

You can configure HikaShop to use the mootools modals or we can see how fix the problem in the checkout when jQuery is not loaded by your template.
But for most I see, you should have same problem with other extensions which will ask for modals in the front-end.

Regards,

PS: I disable jQuery in your template and put a little patch in the view "checkout | step". So you now have a little override.

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Last edit: 13 years 1 week ago by Jerome.

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

More
13 years 1 week ago #128443 by Marsbrook
I'm happy with the easiest solution....which do you think that would be?

Is there a way of disabling the jQuery override of the template such that the modals then work? It seems as though switching off the inclusion of jQuery via the template controls doesn't do this.

Thanks
Richard

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

More
13 years 1 week ago - 13 years 1 week ago #128455 by Jerome
Hi,

I don't think I understand clearly your question.
Your template can include jQuery, but jquery is also included by Joomla 3.
The jquery version of Joomla 3 have bootstrap and some libs (like the modal lib).

If your template includes jQuery, it broke the Joomla 3 jquery inclusion.
That's why it is better to disable it in your template.

About HikaShop, I think that there is a little missing line in the checkout in order to ask for the inclusion of the Joomla 3 jquery lib. At this moment the problem will be solve.
But for the moment, I fix your problem using a little view override :)

Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Last edit: 13 years 1 week ago by Jerome.

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

More
13 years 1 week ago #128491 by Marsbrook
Thanks for your help Jerome - much appreciated.

Richard

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

Time to create page: 0.126 seconds
Powered by Kunena Forum