How to Create Categories and Sub-Categories in OpenCart 3.x

Video transcript:

Hey there. Welcome to our new OpenCart 3 tutorial. Last time, we explained how to create products.

Now it’s time to show you how to create the categories and subcategories for these products.

This is the main menu where the categories are located in your storefront.

The main category you see in this menu is called a Parent in the admin panel. The categories underneath are subcategories. You can see all of the categories by clicking the View All button.

This will show you all of the products from each subcategory assigned to the parent.

Let’s show how to configure all of that in the admin panel.

Go to your dashboard and select Catalog and then... Categories.

You will see the Category list.

To create a new category, click the Add New button.

You will see four tabs - General, Data, SEO and Design.

Let’s start with General.

First, you need to enter your Category name. This should be a general phrase for all the products you will assign to the category. For instance - Hardware.

The next field is a general description of the category. Let’s enter a short description as an example.

The meta tag title is the headline that appears in your browser tab when you open the page. It also serves for SEO purposes. We will use Computer Hardware.

Your meta tag description is also for better indexing by search engines. For our example, we’ll just enter PC Hardware: Motherboards, processors, RAM.

Meta tag keywords can be all types of keywords related to the products you’re assigning to your category. For instance - Hardware, PC, PC Components, Processors, Motherboards, RAM, GPUs.

Okay, this is enough for the General tab. Let’s move on to Data.

The first field is called Parent. It’s where you determine the type of category you’re creating. If you leave this empty, it means that you’re creating a parent category that will be able to hold subcategories.

If you are creating a subcategory, you use the parent menu to select the main category.

In our case, we’re creating a main category, so we’re leaving the parent field empty.

The second field is for filters. They are created from the Filters menu in your Catalog. For our example, we have created a few filters for memory. Let’s add them now.

These filters will let customers narrow down results and find products faster.

Next, it’s the stores field. You can use this to select multiple stores for assigning the same category to all of them. This is in case you’re running a multi-store setup. If not, leave it as it is.

Now, the Image.

This is where you enter a single main image for the category. Click the empty image, then the blue pencil and upload your image. Then simply click on it and it will be assigned to the category.

The next field is called Top. Ticking this field will assign your category to the main menu in the storefront.

If you want your category to have multiple columns with subcategories when customers hover over it, enter their number in the Columns field.

Now, give your category a sort order number for better organization in the category list and the storefront.

The last field lets you enable or disable your category.

Moving on.

SEO.

If you’re using SEO URLs in OpenCart, this is where you assign the keyword your store will use for the shorter URL. Enter the main name of the category. We will enter PC - Hardware.

Finally, Design.

This section lets you override other layouts to your category page and assign modules to them.

This means that if you want to have the account layout showing in your category pages, you select it here and click save. We won’t be doing that right now.

Let’s click Save and take a look at our new category in the storefront.

Hit refresh. As we see, the new Hardware category appears in the first spot in the main menu.

Here is how it looks.

Now, let’s create a subcategory and assign it to this one.

Go back to the admin panel and add a new category.

Our subcategory will be called Processors.

We repeat the process we did with the previous category and enter the rest of the information.

Now, as you remember the Parent field is the one that determines the type of category you’re creating. Since we’re creating a subcategory for the one we added earlier, we will enter Hardware in the Parent field.

This means that our new category for processors is now a subcategory for the main Hardware category.

We complete the rest of the information quickly and continue to the storefront again.

Refresh the page and you will be able to see the subcategory.

Hover over the Hardware category in the main menu and the Processors subcategory will appear underneath it.

It’s also visible in the Refine Search area where all subcategories will be located if there is more than one.

And that is how you create categories and subcategories in OpenCart 3. We hope you learned something new today. Give us a like if this video helped you and subscribe to our channel for more OpenCart 3 tutorials. Thanks for watching!

comments powered by Disqus