Phoca Cart Filter collapsible categories

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 collapsible categories

Post by Drex »

Hey,

Does anybody know how the code should be modified in order to make the categories and subcategories in the filtering panel collapsible?

For example if we have this structure:

Code: Select all

Filter by Category:
Category A
	Subcategory 
		Sub-subcategory
		Sub-subcategory
		Sub-subcategory
Category B
	Subcategory
		Sub-subcategory
		Sub-subcategory
		Sub-subcategory
Category C
	Subcategory
		Sub-subcategory
		Sub-subcategory
		Sub-subcategory
When you open the the products page the filtering panel should display only:

Code: Select all

Filter by Category:
Category A
Category B
Category C
and when you click on one of them it should show the Subcategory, if clicked again show Sub-subcategory.

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

Re: Phoca Cart Filter collapsible categories

Post by Jan »

Hi, I think, for this completely new module needs to be written, e.g. based on some AJAX, when opening root category, subcategories will be loaded by AJAX :idea:

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