Quick Start Guide
NOTE: The Guided Navigation is only functional in the desktop mode (non-mobile). Ideally Departments/Sections should not be displayed on the mobile skin where possible to avoid navigation confusion such as in the Mobile.9HomeTopIntro Topic.
Setting up your categories to use guided navigation
To use the Guided Navigation on a category page you'll need to choose the entity.guidednavigationgrid.xml.config from the display xmlpackage drop down and save your category.
If you just want to use the guided navigation on all of your category pages you can run the following sql:
update category set xmlpackage = 'entity.guidednavigationgrid.xml.config'
*For help with this see the run sql section in the appendix
If you were to look at the category page now it would look something like this:
You can setup the number of columns displayed using the "Column Width:" field while editing the entity. You might also need to change the AppConfig value for the Default_CategoryColWidth for consistency, which the Search results will likely use.
Now it's time to add some attributes to these products.
Setting up your first reductive attributes.
To set up your reductive attributes you'll need to log in to the admin console and create a new department. We'll use "Color" for this example.
Go to Organization > Manage Departments and click the "Add New" Button.
Name the department with the name of your attribute group, "Color" for example and then click "Save and Close".
Now we'll add an attribute to our attribute group by clicking the plus sign next to the newly created attribute group.
Give your new attribute group its first attribute. "Red" for example and then click "Save and Close".
Repeat this process until you've got all the attributes you want.
Now that we've got an attribute group we need to map some products to these attributes. Open the first attribute (Red in our case) and assign some products to it using the products tab. Make sure to uncheck the "Show selected only" checkbox. If you did not choose to use the guided navigation on all of your categories, think about products that are in a category you are using guided navigation on.
Repeat this process until you've got a few products mapped up to the attributes.
Now your category page should look something like this:
Layout Options
Guided Navigation has a few different layout options. Feel free to try a few of these options until you get the one you are looking for.
One Column
The default option is the one column layout. This layout works well when your site already has a vertical navigation down one side on every page of the site. To turn this option on set the appconfig titled "GuidedNavigation.LayoutStyle" to "onecolumn". One drawback to this option however is that it can push a lot of your products down the page a ways. "Below the fold" as online marketers like to say.
Two Column
The second option is a two column layout. This is an excellent option if your site is full width. In other words does not have a vertical navigation on every page of the site. To turn this option on set the appconfig titled "GuidedNavigation.LayoutStyle" to "twocolumn".
Replace a column
If the one column and two column layouts do not work for you because you've got a two column template and you want to have a vertical navigation on all pages of your site, but you would like to replace the vertical navigation on other pages of the site then this is probably your best option. You can replace a given element in your template with the contents of the guided navigation by providing a CSS selector in the appconfig titled "GuidedNavigation.NavigationElementSelector". An example selector could be "#verticalNavWrapper" without quotes. On version 9.4 this would replace your vertical navigation with guided navigation. Try it out! If it doesn't look right just change the appconfig back to blank. If the guided navigation doesn't show up, check to make sure your css id is spelled correctly and includes the pound sign (#).
What is Guided Navigation?
Guided Navigation is a supplementary navigation that allows shoppers to narrow (or reduce) a product set based on attributes the shopper is looking for. It is more flexible than standard hierarchical navigation because it allows the user to define different combinations of search attributes rather than traversing a category hierarchy.
Guided Navigation always begins by showing a product set to the user. This product set can be defined by a top level category or a search the user performs. Guided Navigation only makes sense in the context of product listing pages and should not be shown on pages other than product listing pages.
Reductive Elements
Guided Navigation is comprised of two basic structures: Reductive Groups and Reductive Attributes. On any given reductive page there are multiple Reductive Groups, each containing multiple Reductive Attributes. The image below contains an example of a reductive group (Color) with multiple reductive attributes (Blue, Green, Red.). As a customer is browsing they will be able to choose one reductive attribute per group.
Building Guided Navigation
When a Guided Navigation page is loaded, the navigation is built based upon the product set currently being viewed. This is a key concept when planning or modifying your Guided Navigation. Every Reductive Attribute with matching products will be shown and every Reductive Group with Reductive Attributes will be shown. In other words, in the example above, if there were no "Blue" products in our current product set, the "Blue" Reductive Attribute would not be shown. If there were no products in any of the "Color" attributes, the "Color" Reductive Group would not be shown. This calculation is made every time a user selects another reductive attribute, so the navigation will narrow itself with each selection the user makes.
If you would like some Reductive Groups to show on some categories and not others, the only way to do that is to carefully map the products in each category such that each unwanted Reductive Group is empty for that category (A Reductive Group is considered empty when all of its Reductive Attributes are empty).
Guided Navigation Structure
Default instances of Guided Navigation use the AspDotNetStorefront Categories as top level product groupings. These should be the most basic product groupings on your site. They are the starting point for a user's shopping experience.
Guided Navigation is defined by AspDotNetStorefront Departments (A.K.A. Sections). Each top level Department defines a Reductive Group and each second level Department defines a reductive attribute. In the example below, the department hierarchy shows several Reductive Groups (Color, Price Range, Rating, etc.) and the Reductive Attributes under Color. Size, Color, and Price also have child Attribute departments.
Products should be mapped to the appropriate Reductive Attribute departments. There is no need to map anything to Reductive Group departments.
Configuration Options
To see all of the different configuration options for the guided navigation search the appconfigs for "guided".
GuidedNavigation.UseDropdowns
- If this is set to true, Reductive Groups will be shown as drop downs rather than link lists.
- Tip: if any particular reductive group has "dropdown" in its extension data, that particular group will show as a drop down.
GuidedNavigation.LinkCount
- The number of Reductive Attribute links to show before a "more..." button.
GuidedNavigation.ShowCounts
- When true the number of products in each reductive attribute will be shown next to each reductive attribute.
GuidedNavigation.UseHierarchy
-
(Advanced) Enables Reductive Hierarchy. Children will only be displayed when the parent is selected. Hierarchical levels alternate between section headers and actual departments. If this is set to false only the first two levels (group and departments) will display on the site.
GuidedNavigation.ShowSelected
-
If true the "You have selected" section will show above the Guided Navigation.
GuidedNavigation.UseFullTextSearch
- Full Text Search for Guided Navigation must be enabled here.
GuidedNavigation.ShowEmpties
-
Show empty categories (unlinked). This drastically changes the behavior of the navigation. All Reductive Groups and Attributes will be shown on every page, regardless of their count. When an attribute is chosen in a group, the whole group will still show, with the selected attribute bolded, and the rest disabled.
GuidedNavigation.LayoutStyle
-
This allows you to change the layout of the guided navigation page from a one column layout to a two column layout. The default value is 'onecolumn'. The other option is 'twocolumn'.
GuidedNavigation.NavigationElementSelector
-
This option allows you to replace a section of your website with the guided navigation options. To do this you need to find a unique CSS selector that identifies a section of your template. This is designed to be used to override a default navigation area.
Appendix
Running SQL in the admin console
Warning! You should always back up your database before running sql statements. You can easily break your website with a typo in your sql command.
- Log in to the admin console of your website.
- Navigate to Configuration > Advanced > Run SQL.
- Copy the sql you want run and paste it into the textbox on the Run SQL admin screen. Click Submit.
- Click the Reset Cache button in the Admin screen.