Manage Product Categories in Medusa Admin

In this guide, you’ll learn how to create and manage product categories.

Product Categories to Organize Products#

A product category is a group of products that belong to a similar type or theme. For example, a "Shoes" category can include products like sneakers, boots, and sandals. Categories help customers find products that are relevant to them and make it easier to browse your store.

Categories can be nested within other categories to create a hierarchy. For example, you can have a "Shoes" category nested within a "Women's" category.

A product can be in multiple categories. You can learn how to set the categories of a product in this guide.

Product Categories List#

To view all product categories, go to the Product → Categories page. From here, you can see a list, filter, and search through all categories.

Product Categories List


Create a Product Category#

To create a product category:

  1. Go to the Product → Categories page.
  2. Click on the "Create" button at the top right.
  3. In the form that opens, there are two steps:
    1. Details Step:
    2. Enter the category's name in the Title field. This is the only required field.
    3. The value of the Handle field is used in the category's URL on the storefront. It allows you to create a human-readable URL for the category. The handle must be unique across all categories, and it must contain lowercase letters, numbers, and hyphens (-). If not specified, Medusa will generate a handle from the title.
    4. Optionally set the category's description in the Description field.
    5. In the Status field, you can change the status to "Inactive" if you don't want the category to be shown on the storefront.
    6. In the Visibility field, you can change the visibility to "Private" if you’re creating an internal category that shouldn’t be shown to the customer.
    7. Once you're done, click the "Continue" button.
    8. In the second step, you can organize the category's ranking among other categories:
    • To move the category around, use the icon to drag categories to their correct position.
    • To nest the category, drag it under another category and move it slightly to the right.
  4. Once you’re done, click the Save button.

Create Category Form


View Product Category Details#

To view a category's details:

  1. Go to the Product → Categories page.
  2. From the list, choose the category you want to view.

Category details page

Product Category Status and Visibility#

At the top right of the first section, you'll find two badges:

  • The first from the left is the category's status:
    • Active: The category is active and shown on the storefront.
    • Inactive: The category is inactive and not shown on the storefront.
  • The second from the left is the category's visibility:
    • Public: The category is visible to customers on the storefront.
    • Private: The category is not visible to customers on the storefront. It's only used by admin users.

Edit Product Category's Details#

To edit a product category:

  1. Go to the Product → Categories page.
  2. Click on the category to edit. If the category is nested in another, you may need to expand the parent category by clicking the icon.
  3. Click the icon in the first section of the category page.
  4. Choose Edit from the dropdown.
  5. In the side window that opens, you can edit the category's title, handle, description, status, and visibility.
  6. Once you’re done, click the Save button.

Edit category details


Edit Product Category Metadata#

Metadata is custom data that can be associated with the product category in key-value pairs. This is usually used by developers for custom integrations or to store additional information about the product category.

To edit the product category's metadata:

  1. Go to the product category's details page.
  2. Click the icon at the right of the "Metadata" section.
  3. In the side window that opens:
    • Manage the key-value pairs in the table.
    • To add a new row of key-value pairs before or after a row:
      • Hover over the row and click the icon at its right.
      • Choose "Insert row above" or "Insert row below" from the dropdown.
    • To delete a row of key-value pairs:
      • Hover over the row and click the icon at its right.
      • Choose "Delete row" from the dropdown.
  4. Once you're done, click the Save button.

Manage Category's Products#

From the product category's details page, you can manage the products in the category.

Add Products to a Category#

To add products to a category:

  1. Go to the category's details page.
  2. In the Products section, click the icon.
  3. Choose "Add" from the dropdown.
  4. In the list that opens, check the products you want to add to the category.
  5. Once you’re done, click the Save button.

Add products to category form

Remove Products from a Category#

To remove products from a category:

  1. Go to the category's details page.
  2. In the Products section, check the products you want to remove from the category.
  3. Once you're done, either press R or click "Remove" at the bottom center of the page.
  4. Confirm removing the products by clicking the "Remove" button in the pop-up.

Remove products from category


Edit Categories Ranking#

To change the categories' ranking and hierarchy:

  1. Go to the Product → Categories page.
  2. Click on the "Edit ranking" button.
  3. In the form that opens, you can change the ranking and hierarchy of the categories:
    • Changes are saved every time you move a category.
    • To move categories around, use the icon to drag categories to their new position.
    • To nest a category in another, drag it under the other category and move it slightly to the right.
  4. Once done, you can close the form as the changes have been saved.

Edit categories ranking form


Delete a Category#

WarningDeleting a category is irreversible.
  1. Go to the Product → Categories page.
  2. Click the icon at the right of the category to delete.
  3. Choose Delete from the dropdown.
  4. Confirm deleting the category by clicking the "Delete" button in the pop-up.
Was this guide helpful?
Edit this page
Ask Anything
FAQ
What is Medusa?
How can I create a module?
How can I create a data model?
How do I create a workflow?
How can I extend a data model in the Product Module?
Recipes
How do I build a marketplace with Medusa?
How do I build digital products with Medusa?
How do I build subscription-based purchases with Medusa?
What other recipes are available in the Medusa documentation?
Chat is cleared on refresh
Line break