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

Assigning a product to multiple categories

2 Min Read
On This Page

With the conventional list layout, it is possible to organize products based on their categories. However, there is one catch. It is not possible to assign a product to multiple categories.

Overcoming this, now we have the tag layout, where it is possible for a product to be assigned to multiple categories.

Steps to be followed:

Step 1: Create tags that you wish to link with the product. Go to Components > Tags > New

Joomla Tags list with Components and Tags highlighted in the sidebar and the New button highlighted above existing tags such as Gifts and Kitchen Appliances

Step 2: Create a product and add the tags to the product.

Articles: Edit for Men's Baseball Hat with the Tags field highlighted, showing multiple tags assigned: Adidas, Sports, Hats and Baseball Caps

Step 3: Create menus and link the tags with the respective menus.

Scenario

Products like Coffee mugs should be available under two categories- Kitchen appliances and Gifts.

Steps to be done:

Step 1: Create two tags: Gifts, Kitchen and Accessories. Go to Components > Tags > New

Step 2: Create a product named coffee mugs. Go to Content > Articles > New

Step 3: Assign both tags to the product article. See photo below

Articles: Edit for Coffee Mugs with the Title and Tags field highlighted, showing tags Gifts, Kitchen Appliances, Mugs, Kitchen and Accessories and Ceramic & Porcelain

Step 4: Create menu items for the Tags. Go to Menu > Main Menu > New

Joomla Menus: Items (Main Menu) list with Menus and Main Menu highlighted in the sidebar and the New button highlighted

Step 5: Assign the Menu Item Type. Click on Select > J2Commerce > Product Tag View.

Step 6: Choose Tag Category. ie: Kitchen and Accessories, associating the tag Kitchen and Accessories, Gifts, associating the tag Gifts.

Menus: Edit Item for Gifts, Details tab: Products Tag View type, Tag set to Gifts and Parent Item Shop, with red notes on the tag and type

Now the product coffee mugs will be available in both Kitchen and Accessories, and Gifts.

Likewise, we can assign products to as many categories as we wish through the Tag system.

The frontend view is like this:

Kitchen frontend view

Gifts frontend view

Still stuck? Our team can help.

Back to Top