Phoca Cart Filter not collapsing

Phoca modules - support for all Phoca modules except Phoca Gallery modules
Drex
Phoca Member
Phoca Member
Posts: 35
Joined: 04 Nov 2020, 16:39

Phoca Cart Filter not collapsing

Post by Drex »

Hi there,

URL: http://devel2.alphabeta.ro/alex/urzeala ... i-promotii

Issue: For some reason the collapsing isnt working and i have no idea why. It refuses to change the class from "panel-collapse collapse show" to "panel-collapse collapse in". Load Component Media is enabled.

If you could provide some help would be wonderful!

Thanks,
Alex

Tags:
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48345
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Cart Filter not collapsing

Post by Jan »

Hi, first of all check your CSS and JS libraries:

- check if e.g. bootstrap is loaded in the right version (template version should be the same like Phoca Cart output version)
- check if some of the library (mostly BS) is not loaded twice
- etc.

Try to install Phoca Upgrade System plugin and test different settings there (e.g. disabling obsolete libraries, loading newest jQuery)
https://www.phoca.cz/phoca-upgrade-system-plugin

Jan
If you find Phoca extensions useful, please support the project
Drex
Phoca Member
Phoca Member
Posts: 35
Joined: 04 Nov 2020, 16:39

Re: Phoca Cart Filter not collapsing

Post by Drex »

Hi Jan,

Thanks for your advice, i fixed it.
Load chosen was set to yes, including bs&js and i set it to excluding and fixed the issue.

Thanks again!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48345
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Cart Filter not collapsing

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
attis119
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 11 Nov 2022, 10:30

Re: Phoca Cart Filter not collapsing

Post by attis119 »

Hello,

During testing Phoca cart and filter module on Joomla 4.2.5 and latest Helix ultimate template, when I click to collapse any filter I get this error:
phocafilter.min.js?75324662a419714dcaf82f2f464a420b:1 Uncaught TypeError: Cannot read properties of undefined (reading 'replace')

I checked and tried the methods mentioned above, but without success.
With default Cassiopeia it works.
Any help would be appreciated.

Thank you in advance,
Ati
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48345
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Cart Filter not collapsing

Post by Jan »

Hi, can you enable debug mode in Joomla global configuration (this will load not minimize version of Javascript and tell use exactly the place where this error occurs). Can you then paste the error messge again (including the line)?

Thank you,

Jan
If you find Phoca extensions useful, please support the project
attis119
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 11 Nov 2022, 10:30

Re: Phoca Cart Filter not collapsing

Post by attis119 »

Hello Jan,
Thank you for your answer.
Error from the console, with debug on (I hope that's what you asked for):

Code: Select all

phocafilter.js?11a99b129cfa548a71ed482676b6c7ee:614 Uncaught TypeError: Cannot read properties of undefined (reading 'replace')
    at HTMLDivElement.<anonymous> (phocafilter.js?11a99b129cfa548a71ed482676b6c7ee:614:15)
    at HTMLDivElement.dispatch (jquery.js?3.6.0:5430:27)
    at elemData.handle (jquery.js?3.6.0:5234:28)
    at Object.trigger (jquery.js?3.6.0:8719:12)
    at HTMLDivElement.<anonymous> (jquery.js?3.6.0:8797:17)
    at Function.each (jquery.js?3.6.0:385:19)
    at jQuery.fn.init.each (jquery.js?3.6.0:207:17)
    at jQuery.fn.init.trigger (jquery.js?3.6.0:8796:15)
    at Object.trigger (bootstrap.bundle.min.js:6:5235)
    at bootstrap.bundle.min.js:6:19368
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48345
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Phoca Cart Filter not collapsing

Post by Jan »

Hi, thank you for the info, I changed the code there and hopefully this will be OK in next version.

Thank you, Jan
If you find Phoca extensions useful, please support the project
Post Reply