Define category trees and categories in Optimizely PIM
Overview
Use category trees and categories to organize your products and create taxonomies for customers to browse one or more of your websites. Use a clear category structure with products assigned to the proper categories to ensure that customers can find products on your website easier. Your category attributes enable filters on your product list pages in Optimizely Commerce. You can maintain multiple category trees, if needed, to support multiple websites.
Build category trees by adding categories. Include basic category information on the Details tab and use the Products and Attributes tabs to assign these items to a category. You can manually assign products or set up dynamic rules for product assignments on the Products tab, and assign relevant attributes to the category on the Attributes tab.
B2B Commerce Storefront View
See Review How Optimizely PIM Data Appears to Customers for more details.
Best Practices
Categories in Optimizely PIM function the same way as categories in Optimizely Commerce. If you are using PIM, you should create and manage categories only in PIM. This ensures that PIM is your one source of truth. Communicate this expectation to anyone managing categories in PIM.
If you have multiple websites that share the same category structure, you do not need to create a category tree for each. Only create category trees for websites with distinct taxonomies.
Use Case
Carrie knows that Victory wants to set up their website to show they sell both kitchen and bathroom faucets within their Plumbing product offerings. To mirror this structure, Carrie goes to Configure > Categories and first creates a Victory category tree by clicking the More Options icon. She then creates a Plumbing category and a Faucet subcategory with two additional subcategories for Kitchen and Bathroom.
Carrie was considering adding a further level of faucet types under Kitchen (Pot Filler and Bridge) and Bathroom (Sink and Shower), but decided to stay with three levels for now and watch customer shopping patterns to see if she needs to add more granularity later.
Carrie needs to wait to assign products to her new categories until she has imported them. At that point, she would go to the Kitchen category, select the Products tab and enable the Use Dynamic Rules toggle. She would then select a property of Product Template, an operator of Equals, and a value of Kitchen Faucets. Once she clicks Save, the assigned product list automatically populates with every product that uses the Kitchen Faucets template. She then repeats these steps for the Bathroom category, selecting the appropriate template.
Because the Enable auto-assignment of category attributes toggle on the Configure page Settings tab is enabled, the category attributes for the new Kitchen category are automatically assigned based on the properties mapped as an attribute for the products in the category. Carrie knows that she does not want the filter options for the Kitchen category to contain all of the mapped attributes for her faucet products on the B2B Commerce site. She returns to the Kitchen category, selects the Attributes tab, and clicks the Assign icon to deselect the Auto assigned attributes checkbox. She now selects from the available list the attributes that she wishes to include in the Kitchen category filter options.
Category List Page
Use the Category list page to search for, filter, and select categories for editing, assigning properties, and assigning to products.
You can sort data by clicking column headers, and filter records by clicking the filter icon to expose column header filters. Edit individual categories by clicking on the name, which takes you to the Category details page. If a category is active, the Deactivate On cell is empty.
Category Tree Navigation
Select Category Tree - Select the category tree with which you wish to work from the drop-down list.
Filter by Name - Enter a partial or full category name to narrow the results across the selected category tree folders.
Expand all and Collapse all - Click to expand or collapse the entire category tree.
Select folder - Select a folder in the category tree to apply a parent category filter. The selected folder and its sub categories display in the category list results.
Category List Navigation
Editing - Click an individual category record to view and edit its details.
Search by name - Enter a partial or full category name to narrow the results across all folders in the selected category tree.
Filters - Click the Filter icon to enable or disable column filters. This adds a row below the column headers with options for filtering each property. Filtering also updates the count of records and paging options. Click a filter to open a window to change the filter option or value. Depending on the column's property data type and control type, you may see the following options:
-
Search operator of Contains, Does not contain, Starts with, Ends with, Equals, Does not equal, or Reset
-
Property value of Yes, No, Is Empty, or Is Not Empty
Pagination - By default, 25 categories display in the list, with options to view 50 or 100 per page. Go to other pages using the pagination controls under the list.
Organize Category Trees
Create a Category Tree
- Click Categories in the navigation menu.
- Click the More Options icon next to the drop-down list and select Create Category Tree.
- Enter a Category Tree Name.
- Select a website from the Assign Available Websites list. Websites with category trees already assigned cannot be selected. Be sure to assign a website to each category tree, since this setting will help make categories available in Optimizely Commerce once you publish products.
- Click Create.
Edit a Category Tree
- Select a category tree from the category tree drop-down list.
- Click the More Options icon next to the drop-down list and select Edit Category Tree.
- Edit the name and websites in the same window where you created the category tree.
- Click Save.
Delete a Category Tree
- Select a category tree from the category tree drop-down list.
- Click the More Options icon next to the drop-down list and select Delete Category Tree.
- Click OK when the confirmation message appears.
Organize Categories and Assigned Products
Add Categories
You add categories to category trees. Categories then appear as folders within each category tree.
- Select a category tree from the category tree drop-down list.
- Click the Add Category icon.
- Select a Parent Category, if applicable, and enter a Category Name and a URL Segment on the Category Details page.
- Enter dates on which to activate and/or deactivate this category.
- Flip the toggle to Exclude From Dynamic Product Recommendations if you do not want to include products in this category in dynamic recommendations on your website.
- Enter a Category Description.
- Add a category image from the Asset Drawer if desired.
- Add the Page Title, Meta Description, and Meta Keywords to enhance the category's metadata if desired.
- Add the Open Graph Image, Open Graph Title, and Open Graph URL if you want the category's preview link to display attractively when shared on social media. If these fields are left blank, the category's small image (Category Images section), name, and URL (Category Details section) display instead.
- Click Save.
You can expand or collapse all categories using the links at the top of the category list.
Delete Categories
- Select a category tree from the category tree drop-down list.
- Use the category tree navigation options to locate the category you wish to delete.
- Hover your cursor over the category and then click the Delete icon that appears.
Add Products to Categories Manually
- Click the Products tab for a Category.
- Click the Assign Products icon.
- Select the products you want to assign in the Assign Products window. You can sort or filter products, or use the toggle to see only products not assigned to any categories.
- Click Assign when you finish selecting products.
Add Products to Categories using Dynamic Categories
If you want to ensure that products are automatically assigned to a category when they meet certain criteria, you can use the Dynamic Rules option. Dynamic Rules are dependent on properties and product templates, so you will want to ensure your properties and product templates are set up before trying to implement Dynamic Rules.
When published products are added or removed from a dynamic category, their status is automatically updated to Approved. All other product statuses remain the same.
- Click the Products tab for a category.
- Flip the Use Dynamic Rules toggle.
- Define the rules for this category:
- Choose whether the category will include products that match ALL ("and" operator) or ANY ("or" operator) of the rules
- Choose a property on which you want to set a rule.
-
Choose the operator - given operators are
Equals, Is Not Equal To, Matches, and
Is Included in List. The operators that are available will vary based on the control type used by the property.
- For the operators Equals and Is Not Equal To, select the corresponding value from a drop-down list or enter the value in a text box. If the property from which you are pulling is a multi-select property, you will have the ability to select multiple values from the drop-down list. If you select multiple values here, each product must match all values in order to be added to the category ("and" operator).
- If you choose Is Included in List, select the corresponding value from the drop-down menu. If you select multiple values here, products that have any of the selected values will be added to the category ("or" operator).
- If you use Matches, enter the match value in the text box. You can also use a * wildcard to make any number of characters and ? as a wildcard for a specific character.
-
Click + Rule to add another rule. Note that products assigned will either match ALL ("and" operator) or ANY ("or" operator) of the rules you add depending on your initial selection.
-
Click the Delete icon to remove a rule.
-
When you are finished, click Save. The products that meet your rule requirements populate in the grid below.
If you would like to stop using dynamic categories, toggle Use Dynamic Rules to the off position. This removes any existing rules and no products will be auto-assigned to this category moving forward.
Unassign Products from Categories
You can unassign a single, multiple, or all products from a category that does not have dynamic rules implemented.
- Click the Products tab for a category.
- Use the various search and filter options to locate the product(s) you wish to unassign.
- Select the checkbox beside each product you wish to unassign, or select the checkbox in the header row to select all products on the current page. When you select any number of products, you can click Select all products in this category in the footer bar to select all products across all pages.
- Click Unassign. The products are no longer assigned to the category.
Organize Category Attributes for B2B Commerce
Assign Attributes to Categories Manually
In PIM, an attribute refers to any property that is mapped to an attribute in B2B Commerce. Attributes assigned to a category can be used as filters on the category-specific product list.
- Click the Attributes tab for a Category.
- Click the Assign Attributes icon.
- Select the attributes you want to assign in the Assign Attributes window. You can choose to view all attributes, or show only the attributes that are related, based on the products assigned to the category you are currently editing.
- Click Save when you finish selecting attributes.
Auto-Assign Category Attributes
It can be a lengthy process to manually assign attributes to categories in PIM. To save time, users can set up an auto-assignment process for category attributes. This process takes any attribute on a product included in a certain category and sets it as an attribute for that category, removing the need for users to do this work manually.
Turn On Auto-Assignment of Category Attributes
- Log in to PIM.
- Go to Configure > Settings.
- Click the toggle under Enable auto-assignment of category attributes to flip it to the active position.
- A warning displays, which indicates that attributes will be assigned based on the products in each category and unrelated attributes will be unassigned. To proceed, click Auto-Assign.
- The toggle will turn blue, indicating that auto-assignment is active.
- Click Save.
When this setting is active, any new categories created manually or through imports during this time will include the auto-assignment of attributes feature.
Auto-assignment of category attributes will not take place instantly; the auto-assignment process runs with the B2B Commerce integration job. When the Publish Approved Products job runs, every property mapped as an attribute on products in a category will be assigned as a category attribute for any category that has auto-assignment enabled.
In cases where you want to use auto-assignment of category attributes for most categories but have specific categories you want to manage manually, you can disable auto-assignment for these categories.
Disable Auto-Assignment for a Specific Category
- To remove auto-assignment for a particular category in PIM, go to Categories.
- Click the category from which you want to remove auto-assignment.
- In the category menu, select Attributes.
- Click the link icon in the upper right.
- To remove auto-assignment, uncheck the Auto assigned attributes checkbox.
- Click Save.
Import Categories
You can import categories and their tree structure in bulk. Use the provided import template to add new categories or update details for existing categories. If you have the Auto assigned attributes checkbox selected, all categories added through import will include the Auto-Assign Category Attributes feature.
- Click the Import Categories icon in the top right.
- If you have not already formatted your categories according to the template format, click Download Template.
- Once you have a formatted template file, click Choose File.
- Locate your category file and click Open.
- Click Continue. If you receive any validation errors, please resolve them before attempting to import again. You can download the provided file to view error messages that are specific to each row.
- View your import progress at the top of the Categories list page or click Cancel to stop it. A log of the import displays on the Imports page.
Export Categories
You can export the category information for all categories, a filtered list, or selected categories.
- If you wish to export only selected categories, ensure you have them selected.
- Click Export, and then select either Filtered list or Selected assets.
- Click Continue. The export window appears in the lower right corner.
- Once the file is ready for download, the Download exported file link appears. Click the link to download the file.