problem with javascript conflict on phoca cart

Phoca Cart - complex e-commerce extension
wizarddesign
Phoca Enthusiast
Phoca Enthusiast
Posts: 61
Joined: 04 Nov 2012, 23:40
Location: Iran
Contact:

problem with javascript conflict on phoca cart

Post by wizarddesign »

Hi,

I installed phoca cart on my website and on the shop page it has java script conflict.
I cannot select checkboxes for different attributes of the product.
The images doesn't open in lightbox.
how can I check where is the conflict?
Any idea?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: problem with javascript conflict on phoca cart

Post by Jan »

Hi, just see browser Javascript console:

https://www.phoca.cz/documents/16-jooml ... -conflicts

Jan
If you find Phoca extensions useful, please support the project
wizarddesign
Phoca Enthusiast
Phoca Enthusiast
Posts: 61
Joined: 04 Nov 2012, 23:40
Location: Iran
Contact:

Re: problem with javascript conflict on phoca cart

Post by wizarddesign »

Hi Jan,

Thanks for your reply.
I checked the java consol and the conflicts are only in phocacart itself.

Code: Select all

Uncaught TypeError: select.oldChosen is not a function
    chosen https://www.bahramabedini.com/media/com_phocacart/js/chosen/chosen.required.js?fb67dfb5f625ccc24fd7438f1b12e6b5:15
    <anonymous> https://www.bahramabedini.com/en/shop:91
    jQuery 4
chosen.required.js:15:19
    chosen https://www.bahramabedini.com/media/com_phocacart/js/chosen/chosen.required.js?fb67dfb5f625ccc24fd7438f1b12e6b5:15
    <anonymous> https://www.bahramabedini.com/en/shop:91
    jQuery 4
and

Code: Select all

Uncaught TypeError: select.oldChosen is not a function
    chosen https://www.bahramabedini.com/media/com_phocacart/js/chosen/chosen.required.js?fb67dfb5f625ccc24fd7438f1b12e6b5:15
    <anonymous> https://www.bahramabedini.com/en/shop/1-digital-image/2-eskel:98
    jQuery 4
        i
        fireWith
        ready
        K
chosen.required.js:15:19
    chosen https://www.bahramabedini.com/media/com_phocacart/js/chosen/chosen.required.js?fb67dfb5f625ccc24fd7438f1b12e6b5:15
    <anonymous> https://www.bahramabedini.com/en/shop/1-digital-image/2-eskel:98
    jQuery 4
        i
        fireWith
        ready
        K
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48402
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: problem with javascript conflict on phoca cart

Post by Jan »

Hi, hard to say, what can be wrong with chosen. For test, disable loading of chosen in Phoca Cart option, to see if there will be no other issue.

Jan
If you find Phoca extensions useful, please support the project
wizarddesign
Phoca Enthusiast
Phoca Enthusiast
Posts: 61
Joined: 04 Nov 2012, 23:40
Location: Iran
Contact:

Re: problem with javascript conflict on phoca cart

Post by wizarddesign »

Hi Jan,

It was the easy query conflict.
I disabled the plugin on that specific page and it is working now.
the image is now opening alright. there is no conflict error.
However, the select checkboxes cannot be selected.
I need to switch to selection dropdown to see how it works.
Post Reply