Magento Commerce, 1.14.x

Magento 1.x Software Support Notice
For Magento Commerce 1, Magento is providing software support through June 2020. Depending on your Magento Commerce 1 version, software support may include both quality fixes and security patches. Please review our Magento Software Lifecycle Policy to see how your version of Magento Commerce 1 is supported.

Smart Category Rules

Smart category rules dynamically change the product selection according to a set of conditions. Each category can have one smart category rule, but a single rule can have many conditions.

You can show only the products that meet the conditions of the rule, or add them to the list of products already in the category. For example, you can create a smart category for a specific brand. Products of the same brand are automatically added, even if they’re not assigned to the same category. You can add as many conditions to the expression as needed to describe the products to include.

Each condition has an attribute, value, and logical operator. Only attributes with the “Use in Product Listing” property set to “Yes” are available for smart category rules. If you want to use an attribute that is not included in the list, open the attribute in edit mode, and set “Use in Product Listing” to “Yes.”

Although Date attributes are not supported, you can use the Date Created or Date Modified attributes to define a date or range of dates. For example, to include only products that were created during the past week, set Date Created to a value of “<7.”


Add Attribute

To create a smart rule:

1. From the category’s Visual Merchandiser tab, click the Add Attribute button. Then, do the following:
a. Select the Attribute you want to base the condition upon.
Attributes Available for Smart Category Rules
Attributes Available for Smart Category Rules
b. Enter the Value to be matched.
c. Select the Logic that is needed to form the expression.
2. Repeat this process for each attribute needed to describe the condition(s) to be met. For example, to match products that were created between 7 and 30 days ago, do the following:
a. Set Date Created to “<30.”
b. Set Logic to “AND.”
c. Set Date Modified to “>7.”
Smart Category Attribute Date Range
Smart Category Attribute Date Range
3. To limit the product selection to only those that meet the conditions of the rule, set the Only include products matched by rules option to “Yes.”
Only Include Products Matched by Rules
Only Include Products Matched by Rules
4. To select a sort order that is automatically applied as the product selection changes, set Automatic Sort to one of the following:
  • Move out of stock to bottom
  • Special price to top
  • Special price to bottom

Automatic Sort
5. When complete, click the Save Category button.
  • Field Descriptions

    Field

    Description

    Attribute

    Identifies the attributes upon which the logic of the smart category is based. To include multiple attributes, click the Add Attribute button. Options include:

    Apply MAP

    Applies the Minimum Advertised Price to products in the smart category.

    Clone Category IDs

    Gives you the ability to dynamically include products from another category. Enter the ID of the category to be cloned into the Value field. For multiple categories, separate each ID with a comma.

    Date Created (days ago)

    Includes products that were created within the number of days specified.

    Date Modified (days ago)

    Includes products that were updated within the number of days specified.

    Image Label

    Includes products based on the Image Label value.

    Manufacturer’s Suggested Retail Price

    Includes products that match the MSRP value specified.

    Name

    Includes products that match the product Name value specified.

    Price

    Includes products that match the Price value specified.

    Small Image

    Includes products that match the Small Image value specified.

    URL Key

    Includes products that match the URL Key value specified.

    Date Created (days ago)

    Includes products that were created within the number of days specified.

    Status

    Includes products that match the Status value specified. Available values: Enabled / Disabled

    Thumbnail

    Includes products that match the Thumbnail value specified.

    Thumbnail Label

    Includes products that match the Thumbnail Label value specified.

    URL Key

    Includes products that match the URL Key value specified.

    Apply MAP

    Applies the Minimum Advertised Price to products in the smart category.

    Clone Category IDs

    Gives you the ability to dynamically include products from another category. Enter the ID of the category to be cloned into the Value field. For multiple categories, separate each ID with a comma.

    Date Created (days ago)

    Includes products that were created within the number of days specified.

    Date Modified (days ago)

    Includes products that were updated within the number of days specified.

    Image Label

    Includes products based on the Image Label value.

    Manufacturer’s Suggested Retail Price

    Includes products that match the MSRP value specified.

    Name

    Includes products that match the product Name value specified.

    Price

    Includes products that match the Price value specified.

    Short Description

    Includes products that match the Short Description value specified.

    Small Image

    Includes products that match the Small Image value specified.

    Small Image Label

    Includes products that match the Small Image Label value specified.

    Special Price

    Includes products that match the Special Price value specified.

    Status

    Includes products that match the Status value specified. Available values: Enabled / Disabled

    Thumbnail

    Includes products that match the Thumbnail value specified.

    Thumbnail Label

    Includes products that match the Thumbnail Label value specified.

    URL Key

    Includes products that match the URL Key value specified.

    Value

    Specifies the value that the attribute that is needed to meet the condition. Unless an operator is specified, the default “equal to” operator is applied. Operators include:

    =

    Equal to

    >

    Greater than

    <

    Less than

    !

    Not equal to

    >=

    Greater than or equal to

    <=

    Less than or equal to

    *

    Wildcard that can be used to match text-based attributes with multiple values.

    For example, *Blazer* matches any product name that includes the word Blazer.

    Logic

    Specifies the logical operator that is needed to describe multiple conditions. Options include: AND / OR