Skip to Content
Account
Enter the email address on your account.
Forgot Your Username?
Enter your password.
Forgot Your Password?

Or continue with

You're Viewing J2Store 4 Documentation.

View This Section for J2Commerce 6

J2Store 4

Category Tree for displaying filters

2 Min Read
On This Page

Sometimes you might want to display the filters in a tree structure. Or achieve a SEF URL for category filters. Here is what you can do to achieve that.

Steps to be followed:

  1. Create a menu with the name filters by going under Menu > Manage.

  2. Select New to create a new menu item named Filters with the Unique Name: filters (lower case)

  3. Create menu items with the names of the categories.

  4. Add the menu items to the Filters menu.

  5. Navigate to Content > Site Modules > New > Menu Module.

  6. Choose the Filters menu in the option “Select Menu”.

  7. If your filters are displayed on the right, then set the position to j2store-filter-right-top. If your filters are displayed on the left, then set the position to j2store-filter-left-top.

  8. Please note that you have to type this fully in the position field and then hit enter (it won't automatically display in the list of module positions).

  9. If you're unsure where to see the filter positions, click here

    1. The first photo below is where you find the filter position

Filter position

Relevant Screenshots

The following screenshots will be of help:

Create a Filter Menu

Go to Menus > Manage > New

categorytree

Title: Filters

Unique Name: filters

Joomla Menus: Edit form, Menu Details tab: Title Filters and Unique Name filters highlighted

Add menu items with category names to the Filter menu:

Joomla Menus list with the Filters menu showing 2 published menu items, the Published count highlighted

Create a new Filter Sub-Menu

You can either click where the sub-menu section is highlighted in the image above, or go to Menus > Filters > New

categorytree2

Setting up the Filter Categories Parameters

Step 4: Details Tab:

Menu item form, Details tab: Menu Item Type Menu Item Alias pointing to the Watches menu item, in the Filters menu

Title: Name the Filter Category

Menu Item Type: Select > System Links > Menu Item Alias

Menu Item Type dialog with the System Links group expanded and the Menu Item Alias option highlighted

Menu Item: Assign the menu item

Save and Close

Create a Filter Menu Module

Go to Content > Site Modules > New

Joomla Modules (Site) list with Content > Site Modules in the sidebar and the New button highlighted

Setting up the Filter Module Parameters

Module Tab:

Menu module form, Module tab: Select Menu set to Filters, Title shown, and Position set to j2store-filter-right-top, all highlighted

Title: Show

Select Menu: Filters

Position: type, j2store-filter-right-top

Frontend View

The frontend view will be as follows:

categorytree4

Still stuck? Our team can help.

Back to Top