Skip to main content

Overview

Use hierarchies to organize your products into categories and sub-categories. Define hierarchies that work for the products in your store.

A hierarchy is a tree structure that consists of a root node with 1 or more parent nodes. Each parent node can also have one or more children nodes, and so on, creating a parent-child relationship between nodes.

Hierarchy Nodes

A product can belong to multiple nodes in multiple hierarchies. The following example of Elpa basketball shoe for men shows different hierarchies and nodes that the product might be in:

  • Brands > Elpa
  • Shoppers > Men
  • Shoes > Sports > Basketball

The root of a hierarchy specifies the aspect of the product data that the hierarchy displays. For example, root can be categories, brands, types, or manufacturers of the products. You cannot assign products to a root node.A node in a hierarchy contains products grouped in a specific theme, such as a products from a specific brand.

Characteristics of Hierarchies and Nodes​

Below is an example of a hierarchy and its nodes.

Hierarchy Example

  • Sibling nodes are nodes with the same parent. Sibling nodes must have unique names and unique slugs. The nodes Electric Ranges and Gas Ranges are siblings. They must have unique names and slugs.
  • Nodes that are in different locations in a hierarchy, or across multiple hierarchies, do not need unique names and slugs.
  • If you move the Electric Ranges node to the Built-in node, all the children of the Electric Ranges node also move to the Built-in node.
  • The Double Oven nodes can have the same name because they have different parents.

Once you have created your products, (for more information, see Products API or Hierarchies in Commerce Manager), you can use Hierarchies to organize your products.

  • You can associate products with nodes. You cannot associate a product with the root node. For more information, see Create Node Product Relationships.
  • You can duplicate an existing hierarchy. This is useful because it enables you to quickly and easily create multiple hierarchies with the same node structure. Any nodes in the existing hierarchy are also created in the duplicated hierarchy. In addition, you can optionally specify whether you want products associated with the nodes in an existing hierarchy to be associated with the nodes in the duplicated hierarchy. See Duplicate a Hierarchy.
  • You can move an existing node to a different location within the same hierarchy by changing its parent node. If the node has child nodes, they retain their relationship with the moved node. In other words, the node and all its children move to the new location in the hierarchy. For more information, see Create a Node in a hierarchy.
  • If your store supports multiple languages, you can localize new and existing hierarchies and nodes.

Hierarchies and Catalogs​

The hierarchies determine which products appear in the catalog. When you create a catalog, you specify one or more hierarchies. Only the products that are associated with the selected hierarchies are included in the catalog. Your Front-end developers use the hierarchies to create and populate navigation menus in your storefront. You can improve how your customers search your store using the Catalog View API.

You can also specify the order you want your hierarchies to display in a published catalog. You can order your hierarchies on a catalog-by-catalog basis.

Hierarchy_sorting

Node Sort Order​

You can set the order of nodes anywhere in a hierarchy. The sort order determines the order in which sibling nodes display in your storefront. The node with the highest value displays first. For example, 100, 50, 1. A sort order must be 1 or higher.

In Commerce Manager, you can set a node's sort order in its node panel, or drag and drop nodes in Re-order mode without entering numbers. See Re-order nodes.

The Hierarchies Page​

Go to Merchandise > Hierarchies to see all hierarchies in your store. Hierarchies and nodes display in an expandable table, so you can browse the tree and see each row's details at the same time. By default, the table shows each row's name, slug, and last updated date.

The Hierarchies page with the All products hierarchy expanded and selected

  • Each hierarchy has a Hierarchy badge.
  • A number badge beside a hierarchy or node shows how many child nodes it has.
  • Select the chevron next to a row to expand it. Nodes without children show a dot instead.
  • When a node has many children, select Load more next to it to show the rest.
  • Select a row to highlight it. The action bar above the table then enables the actions for that row: New node, View, Duplicate, Delete, Move, and Re-order.
  • To show only one hierarchy, hover over its row and select Jump to. To filter hierarchies by name, select Add Filter.
  • Select New hierarchy at the top of the page to create a hierarchy.

Customizing the Hierarchies Table​

You can choose which columns the Hierarchies table shows and how it's displayed.

Show or hide columns​

  1. Select the column selector icon at the right end of the table header.
  2. Turn columns on or off: Name, Slug, Last updated, Description, and ID.

By default, the table shows name, slug, and last updated date. To restore these, select Reset to defaults.

Column selector with the Description column turned on

Change view options​

Select Options in the action bar to change how the table looks.

GroupSettingWhat it does
SpacingCompactTighter rows. Fits more of a large hierarchy on screen.
SpacingComfortableTaller rows, easier to scan.
ViewsShow alternating row coloursShades every other row. Turn off to show simple lines between rows.
ViewsShow org badgesShows or hides the organization badges beside row names.
ViewsShow hierarchy badgesShows or hides the Hierarchy badges beside hierarchy names.

Options menu with Compact spacing and alternating row colours selected

Ask External AI