Page 1 of 1

Phoca Cart Filter not collapsing

Posted: 21 Apr 2021, 21:16
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

Re: Phoca Cart Filter not collapsing

Posted: 25 Apr 2021, 11:28
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

Re: Phoca Cart Filter not collapsing

Posted: 26 Apr 2021, 12:58
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!

Re: Phoca Cart Filter not collapsing

Posted: 28 Apr 2021, 16:30
by Jan
Ok

Re: Phoca Cart Filter not collapsing

Posted: 11 Nov 2022, 15:40
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

Re: Phoca Cart Filter not collapsing

Posted: 15 Nov 2022, 00:24
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

Re: Phoca Cart Filter not collapsing

Posted: 15 Nov 2022, 15:57
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

Re: Phoca Cart Filter not collapsing

Posted: 18 Nov 2022, 23:56
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