Customize site navigation

This article describes how to create a customized online navigation hierarchy to organize your products for browsing on your Microsoft Dynamics 365 Commerce site.

Online storefronts typically let customers discover and browse products by navigating through product categories. This capability is usually provided by tabs at the top of the page or by a navigation bar on the left. In Dynamics 365 Commerce, you can create and manage the hierarchical structure of your category navigation and the products that are included in the various categories.

Create a channel navigation hierarchy

To create a channel navigation hierarchy, follow these steps.

  1. Go to Retail and Commerce > Products and categories > Category and product management.

  2. Select Category hierarchies, and then select New.

  3. Name the hierarchy.

    Note

    The topmost category that you create is the root category node. It won't be shown on your site. To create a category hierarchy where a single top-level node is shown on your site, create and name the category as a child of the root category.

  4. Select New category node, and name the category.

  5. Continue to create sibling and child categories as you require.

You can now assign products to each category that you created under the top-level category.

Customize the order of categories

By default, the categories that you define will appear in alphabetical order on your site. However, you can also customize the display order of categories. For more information, see Configure the display order for categories in the product hierarchy.

Assign a category hierarchy type

  1. Go to Retail and Commerce > Products and categories > Category and product management.
  2. Select Category hierarchies.
  3. On the Action Pane, on the Category hierarchy tab, in the Set up group, select Associate hierarchy type.
  4. Select New.
  5. In the Category hierarchy type field, select Channel navigation hierarchy.
  6. In the Category hierarchy field, select the channel navigation hierarchy that you created earlier.

Publish new or updated navigation hierarchies

To make your navigation hierarchy available to your online storefront, follow these steps.

  1. Go to Retail and Commerce > Channel setup > Channel categories and product attributes.
  2. In the tree on the left, select your online store.
  3. Select Publish channel updates.
  4. Go to Retail and Commerce > Retail and Commerce IT > Distribution schedule.
  5. In the list, find and select Job 1040.
  6. Select Run now.
  7. Repeat steps 5 and 6 for jobs 1070 and 1150.

Show categories on your site

To show your category hierarchy on your online storefront, you must add the navigation menu module in the appropriate location in a template or fragment. The navigation menu module will then show your navigation hierarchy, provided that you've published your navigation hierarchy to the channel that your site is bound to.

Note

The navigation menu module that is included in the module library lets users navigate only to categories that don't have subcategories. If your customers should be able to navigate to categories that have subcategories, you must customize the navigation menu module.

Add custom navigation options

On your navigation menu, you can add navigation options that aren't part of your product category hierarchy. For example, at the end of the list of product categories, you can add a Contact Us item that points to a contact page that you've built for your site.

To add custom navigation options to your navigation menu, follow these steps.

  1. In the template or fragment that you want to customize, select the navigation menu module.
  2. In the property pane, on the Data tab, select Add item to create a new content management system (CMS) navigation item.
  3. Enter link text and a URL.
  4. Repeat steps 2 and 3 to add more custom navigation options.
  5. When you've finished, select Save to save the template or fragment, and then select Finish editing to check it in.

Additional resources

Templates and layouts overview

Work with templates

Work with preset layouts

Work with fragments

Work with modules

Create a page URL

Work with publish groups