# Organise your categories (/en/products/categories)

<BeforeYouStart>
- Your role needs the <UI>Edit the menu and products</UI> permission. Owners and managers have it by default.
- If Helm shows <UI>Categories are edited in your shop system</UI>, your products come from your shop system and show in Helm read only. Change categories there.
</BeforeYouStart>

## Watch the steps [#watch-the-steps]

<Walkthrough device="browser" url="helm.tryportus.online/catalogue/categories">
<WalkStep image="/articles/categories/en-1-list.png" spot="0.9,52.3,17.5,4.8" title="Open Categories">
In the menu, under **Products**, select **Categories**.
</WalkStep>

<WalkStep image="/articles/categories/en-1-list.png" spot="82,4,12,5.6" title="Add a category">
Select **New category**.
</WalkStep>

<WalkStep image="/articles/categories/en-2-new.png" spot="26.1,18.5,47.8,49.5" title="Name it">
Type the name in each of your store's languages. The main language is required.
</WalkStep>

<WalkStep image="/articles/categories/en-4-inside.png" spot="26.1,73.5,47.8,11" title="Put one inside another">
Under **Inside**, choose a category to make this one a subcategory.
</WalkStep>

<WalkStep image="/articles/categories/en-3-filled.png" spot="26.1,48.5,47.8,34" title="Its look on the POS">
Choose the colour and icon of its tab on the POS.
</WalkStep>

<WalkStep image="/articles/categories/en-3-filled.png" spot="62.7,85.5,11.4,6" title="Save it">
Select **Save category**. It's added at the end of its level.
</WalkStep>

<WalkStep image="/articles/categories/en-5-group.png" spot="24.7,68.1,68.8,25.8" title="See the group">
Subcategories are listed, indented, under the category they sit in.
</WalkStep>

<WalkStep image="/articles/categories/en-5-group.png" spot="78.5,87,3.8,5.8" title="Change the order">
Move a category up or down in this list, among the categories at its level.
</WalkStep>

<WalkStep image="/articles/categories/en-7-delete.png" spot="56.2,56.4,9,6" title="Delete an empty one">
Only a category with no products and no subcategories can be deleted.
</WalkStep>
</Walkthrough>

## Add a category [#add-a-category]

<Steps>
<Step title="Open Categories">
<Path to="Products > Categories" />

The page is called <UI>Categories</UI>. Each row shows the category's products, for example <UI>Products: 8</UI>.
</Step>

<Step title="Start a new one">
Select <UI>New category</UI>. The form <UI>New category</UI> opens.
</Step>

<Step title="Name it">
Under <UI>Name</UI>, enter the name in each language your store uses, up to 80 characters each. The first field, marked <UI>main</UI>, is required.
</Step>

<Step title="Choose where it sits">
Under <UI>Place</UI>, leave <UI>Inside</UI> on <UI>Top level</UI>, or choose a category to put this one inside it.
</Step>

<Step title="Choose its look on the POS">
Under <UI>On the POS</UI>, choose a <UI>Tile colour</UI> and a <UI>Category icon</UI>. Both are optional.
</Step>

<Step title="Save">
Select <UI>Save category</UI>.
</Step>
</Steps>

<Example>
A store could add "Gift ideas" with "For him" and "For her" inside it.
</Example>

<WhatHappensNext>
- The form closes and the new category appears in the list, at the end of its level, with <UI>Products: 0</UI>.
- It's ready to choose for a product, under <UI>Where it goes on the menu</UI> in the product form.
</WhatHappensNext>

## Rename, move or restyle a category [#rename-move-or-restyle-a-category]

<Steps>
<Step title="Open it">
On the <UI>Categories</UI> page, select the pencil on its row. The form <UI>Edit category</UI> opens.
</Step>

<Step title="Change what you need">
Fix the <UI>Name</UI>, choose another category under <UI>Inside</UI>, or change the colour and icon. Every product in the category keeps it.
</Step>

<Step title="Save">
Select <UI>Save category</UI>.
</Step>
</Steps>

<Note>
A category can't go inside one of its own subcategories. Helm leaves those out of the <UI>Inside</UI> list.
</Note>

## Change the order [#change-the-order]

Select the up or down arrow on a row to move the category one place among the categories at the same level. This changes the order of this list only; products stay in their categories. While Helm saves, you see <UI>Saving the new order…</UI>. The first row's up arrow and the last row's down arrow are greyed out.

<Note>
The list shows categories up to 9 levels deep.
</Note>

<Screenshot src="/articles/categories/en-5-group.png" alt="The Categories page with a category holding two subcategories" caption="The test categories in this picture were deleted after the capture." title="A category and its subcategories" url="helm.tryportus.online/catalogue/categories" width={1280} height={800}>
<Hotspot x={35.6} y={81.5} title="Subcategory">
Indented under the category it sits in.
</Hotspot>

<Hotspot x={80.4} y={89.9} title="Move up">
Moves it one place up among the categories at its level.
</Hotspot>

<Hotspot x={87.2} y={72.8} title="Edit">
Rename it, move it inside another category, or change its look.
</Hotspot>

<Hotspot x={90.6} y={72.9} title="Delete">
Greyed out here: it holds other categories, so it cannot be deleted.
</Hotspot>
</Screenshot>

## Delete an empty category [#delete-an-empty-category]

<Steps>
<Step title="Check it's empty">
A row that says <UI>Holds products, so it cannot be deleted.</UI> or <UI>Holds other categories, so it cannot be deleted.</UI> has its bin greyed out.
</Step>

<Step title="Delete">
Select the bin on its row. Helm asks to confirm, for example <UI>Delete For him?</UI>, and says <UI>The category leaves your store. It has no products, so no menu changes.</UI>
</Step>

<Step title="Confirm the delete">
Select <UI>Delete</UI>.
</Step>
</Steps>

<Note>
<UI>Uncategorized</UI> is your store's default category. It can't be deleted, even when it's empty.
</Note>

<Careful>
Deleting can't be undone. To delete a category that still holds products, first move each product to another category in its product form, under <UI>Where it goes on the menu</UI>. To delete one that holds subcategories, delete or move those first.
</Careful>

<IfSomethingGoesWrong>
<Problem message="Add a name in the main language.">
The first name field, marked <UI>main</UI>, is empty. Type a name there, then select <UI>Save category</UI> again.
</Problem>

<Problem message="Products still in it: 2, counting drafts, hidden and archived ones. Move them to another category first.">
The category still holds products, including ones you may not see, such as drafts, hidden and archived ones. Move them to another category, then delete it.
</Problem>

<Problem message="Could not save. Try again.">
You tried to delete <UI>Uncategorized</UI>, your store's default category, which can't be deleted. Or another category at the same level already has this name: choose a different name, or a different place under <UI>Inside</UI>.
</Problem>

<Problem message="A category cannot sit inside one of its own subcategories.">
Choose another category under <UI>Inside</UI>, or <UI>Top level</UI>.
</Problem>

<Problem message="Someone changed this while you were editing. Load the latest and try again.">
The category changed since you opened it. Reload the page, then make your change again.
</Problem>

<Problem message="Helm could not reach your shop. Check the connection and try again.">
Nothing was saved. Check your connection and try again.
</Problem>

<Problem message="Tile colours need the latest Perks plugin in your store. Update it, then come back.">
Your store's plugin is older than tile colours. You can still choose an icon. Update the plugin to choose colours.
</Problem>

<Problem message="You cannot change categories">
Your role doesn't hold <UI>Edit the menu and products</UI>, so <UI>Categories</UI> isn't in your menu; you see this only when you open the page by its link. The owner can add the permission to your role.
</Problem>
</IfSomethingGoesWrong>