Categories in PrestaShop helps in organizing your products in a better way. This also enables your users to browse your products easily by separating them in groups. PrestaShop provides an easy to use interface to manage your categories.
To follow this tutorial, you must have PrestaShop installed in your server. To learn installing PrestaShop see our previous tutorial How to Install PrestaShop and also see Most Important Things To Do After Installing PrestaShop.
To manage the categories go to “Categories” page of the “Catalog” menu. This page displays the existing top-level categories of the PrestaShop. To display the sub-categories of the top-level categories, click on parent category or select “View” in the action menu.
The categories table contains six columns i.e Id, Name, Descriptions, Position, Displayed and action. You can change a category position by moving the category up and down from Position. You can hide a category from user by clicking on the green check-mark icon, thus turning it into a red “x” mark.
You can edit a menu by selecting “Edit” in action menu. Merchant can also delete a category by selecting “Delete” in action menu.
Add New Category
All categories of PrestaShop are actually sub-categories of “Home” category. To create a new category click on the “Add new category” button on the top-right of the page from any level of categories. Creating a new category in existing category will make it a sub-category of that category.
This page will ask some general information about your category. Name. Provide a name to your category. The name should be short and descriptive. Displayed. it indicate if this category will be displayed or not to your customers.
Parent Category. If you want this category to be a subcategory of a category you can choose the parent category under which it will appear.
Description. This is the short description for your category. You must fill this as some themes make use of this by displaying it to your customers. Category cover image. Chose an image for your category, by clicking “Add File”, to upload an image from your computer. It will be displayed on the category page.
Category thumbnail. Provide a small image for your category. It will be displayed on parent’s category page. Menu thumbnail. This thumbnail image displayed in menu, if theme allows it.
Meta title. The title of the category, displayed in search results of the search engine. Choose it wisely as its effects your search visibility on search engines. Meta description. The description of your category that will appear in search results. Describe it in few lines to grab the attention of your customers.
Meta keywords. Keywords are very important for your search results. You can enter more than one keywords, by separating them by commas. Friendly URL. Allows you to provide search engine friendly urls for your category, helps in increasing search engine visibility.
Group access. Restricts access to this category and its products to certain group of customers. To add a new group go to “Groups” tab in the “Customers settings” page, from the “Shop Parameters” menu.
Once you have filled all the fields, click on “Save” to create this category. You are now ready to add products to this category.
Adding Category to Menu
As you have create a category, but it will not be visible of front-end. To create a new menu item, you will have to edit “Main menu” module. To add category to menu, click on “Module and Services”, in the “Modules” menu. Search for the “Main menu” in the search bar on the top and click on “configure” button to edit it. This will open the “Main menu” module page.
To add the newly created category to the menu, select it from the available items and click on “Add” button to add it to navigation menu. Don’t forget to click on “Save”, after adding the category to selected item.
You can also add any CMS pages as well as supplier or brands to the main menu. You can even add a custom link to your menu in the “Add a new Link” section.
Label. Enter the text for the menu that will appear on Main menu. Link. This is the custom link of your menu. New Window. enables you to choose, if your link will open in a new window or not.
Importing and exporting categories
PrestaShop also enables you to import and export categories. Besides the “Add new” button, the list’s button bar also features three buttons Import, Export and Refresh List.
Import. This opens the “Import” page of the “Advanced Parameters” menu, with the expected data type set to “Categories”. You can upload a csv file containing categories information in following format:
ID;Name;Description;Position;Displayed; 3;Home and Furniture;Buy beautiful home decor and furniture to make your home like new;1;1; 4;Baby Products;World class baby products to pamper your baby;2;1; 5;Sports and Accessories;Be the next Sachin, using our sports and accessories products;3;1;
Export. This button allows you to download the list of all categories available, in CSV format. Refresh list. It reloads the current list of categories with all the changes you have made.
Adding products to a category
In add a product in a category, you must add a new product or edit existing product and go to its “Categories” sections, on the “Basic Settings” tab. This is where you can set the category to a product. For more information on adding product and categories, see our previous tutorial Managing Products in PrestaShop 1.7.
I hope by now you have understood how to manage categories in PrestaShop. Do share your views and suggestions in your comments below.