Dev GuideAPI Reference
Dev GuideAPI ReferenceUser GuideGitHubNuGetDev CommunitySubmit a ticketLog In
GitHubNuGetDev CommunitySubmit a ticket

## Create a category dynamically

Finally, they click **Regenerate** to populate the Category with the matching Products, then rebuild the product search index so the category and products appear on the website.

Dynamic Categories use rules to determine if products are or are not displayed on its category page. The Rules Engine cycles through of a set of rules and statements resolving as either True or False, then returns the appropriate values to the Dynamic Category.

## Use case: Dynamic category for items $20 and under

Hero Tools offers many different types of products, from circular saws and grinders to spare parts. To help their users find deals, they want to create a category to list all products priced at $20 or less.

They create a category in the Admin Console called "$20 or Less." Then, they make it a Dynamic Category by accessing the Category’s **Products** finger tab and toggling the **Use Dynamic Rules** toggle to **YES**.

At the top of the screen, they choose to match **All** of the following rules, because this use case only requires one rule to accomplish the objective.

The new rule finds all products priced at $20 or less. To create this rule, they choose **Product Fields** as the Rule Type. Then, they select **Basic List Price** as the Source Data Field. They select Based On **Range**, enter **0** as the Minimum Value, and **20** as the Maximum Value.

These steps show how to create and implement a new dynamic category.

  1. Go to **Admin Console** \> **Catalog** \> **Categories**.

  2. Using the **Website selector** menu, in the Category list toolbar, select the targeted Website.

  3. Click **Add New Category** to create a new Category.

  4. Add a Name, Category Title, URL Segment, and Activate On to the Category.

  5. Save the newly created Category by clicking **Save**.

  6. Click the **Products** finger tab.

  7. Ensure the **Use Dynamic Rules** toggle reflects **Yes**.

  8. Select the **Rule Type** from the drop-down.

  9. Configure the rule using the contextual **Source Data Table** and **Fields**.

  10. If there are more rules that you wish to create, repeat steps 9-10.

  11. Click **Save** to save the new rule.

  12. Click **Regenerate**.

  13. In the Primary Navigation, go to **Marketing** \> **Indexing**.

  14. In the **Category** section, click **Full Rebuild** to rebuild the newly created category.

  15. Click the **Product** section, click **Partial Rebuild** to rebuild the website's product search index and make it so products are visible and searchable.