Create Subcategories for a Commerce Category
You can use any category as a subcategory, and you can assign the same category as a subcategory to more than one category. You assign subcategories on the Subcategory subtab of the Commerce Category page at Commerce > Content Management > Catalog & Categories > Commerce Categories.
When you create a category, you enter basic information like its name, title, and meta description. For more information, see Define Commerce Categories Basic Settings.
When you assign a category as a subcategory, you can override its basic settings with different values to use when the category is functioning as a subcategory. You can override all, some, or none of the category’s primary values. For example, say you have categories called Outdoors, Camping, and Equipment. You assign Equipment as a subcategory for both Camping and Outdoors. For the Outdoors category assignment, you want a different banner image than for the Equipment category assignment, so you set up an override for the banner image.
When you assign a category as a subcategory, it won't be accessible as a root-level category anymore—you'll only be able to get to it through its subcategory assignments.
Canonical Tags for Commerce Categories
When you use URL overrides for subcategories, you end up with category pages that have different URLs but the same content. To help with SEO, SuiteCommerce Advanced adds an HTML canonical link tag to these pages.
The page with the primary path URL has a self-canonical tag, and pages with overridden URLs have a canonical tag that points to the primary parent path as well. Going back to the example above, the canonical link tags might look like this:
Primary Parent URL |
http: |
|
URL With Override |
http: |
|
The Vinson release of SuiteCommerce Advanced uses relative paths in canonical URLs. Since search engines don't index canonical URLs with relative paths, you should extend the Facets.Browse.View.js in the Facets module to use absolute paths instead. For details, see Canonical Tags Populated With Relative Paths. You only need to do this for the Vinson release of SuiteCommerce Advanced.
Order of Subcategories
The order of the subcategories on the Subcategories subtab, can reflect the order of how categories will be listed on the site. You can use Site Management Tools to change the order of the categories. When you change the order of categories in Site Management Tools, those changes also show up on the Subcategories subtab. For more information, see Move a Category or Subcategory.
The order in which categories are displayed on the site can be specified in the SCA Categories Configuration. See Categories Subtab for more information about configuring Commerce Categories in SCA.
Before you can assign a category as a subcategory, you’ll need to create a category record for it. See Set Up Commerce Categories.
To assign a subcategory to a category:
-
Create a new category record or edit an existing category record.
-
Select the Subcategories subtab.
-
Pick the category you want to assign as a subcategory from the categories dropdown list. Enter override values for any of the fields below, or leave them blank to use the default from the category record for the subcategory.
-
Name Override
-
Description Override
-
URL Fragment Override
-
Title Override
-
Heading Override
-
Page Banner Override
-
Thumbnail Image Override
-
Addition to
<head>
Override -
Meta Keywords Override
-
Meta Description Override
-
Sitemap Priority Override
-
Display in Web Site Override
-
-
Click the Add to add the subcategory.
-
Keep repeating the last two steps for each subcategory you’d like to add.
View Category URL’s
The URL subtab in the Commerce Categories record gives you a list of all URLs you can use to access a subcategory page. This is especially helpful if a subcategory is assigned to more than one parent category, since its page can be reached through different URLs.
To see the URLs for a subcategory page:
-
Go to Commerce > Content Management > Catalog & Categories > Commerce Categories.
-
Select the category record you want to view URLs for.
-
Select the URL subtab.