problem with javascript conflict on phoca cart

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

problem with javascript conflict on phoca cart

Post by sohrab330 » 03 Dec 2020, 00:37

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: 43426
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: problem with javascript conflict on phoca cart

Post by Jan » 03 Dec 2020, 13:27

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

User avatar
sohrab330
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 sohrab330 » 04 Dec 2020, 07:07

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: 43426
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: problem with javascript conflict on phoca cart

Post by Jan » 04 Dec 2020, 13:52

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

User avatar
sohrab330
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 sohrab330 » 04 Dec 2020, 21:28

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