Create Dynamic Attributes

A dynamic attribute is an attribute whose value is calculated through a formula you create, allowing you to create weighted blends of different attributes to use when sorting. For example, if you want to create a result set where new products and best selling products are pushed to the top, you can create a dynamic attribute that blends Days Available and Sales Velocity.

Because dynamic attributes are calculated, they can only be numeric, such as integer or number. Date, string, boolean, and set-of value attribute types are not supported. For example, if you add a new sorting rule that is Boolean in site > Merchant Tools > Search > Sorting Rules > New it is not selectable in site > Merchant Tools > Search > Sorting Rules > Dynamic Attributes > Add.

Dynamic attributes are referenced by sorting rules, not defined for them; therefore, when a rule containing a dynamic attribute is copied and the dynamic attribute is changed, the changes to the dynamic attribute affect both the original rule and the copy.

Note: Dynamic attributes can't refer to other dynamic attributes.

For more examples, see Scenario 2, 7, and 8 in Active Merchandising Scenarios.

  1. Select site > Merchant Tools > Search > Sorting Rules.
  2. On the Sorting Rules page, click the Dynamic Attributes icon in the section header.

    The Dynamic Attributes window has two sections: a list of dynamic attributes and the list of attributes that, when blended, make up the dynamic attribute currently selected in the list.

  3. On the Dynamic Attributes window, click New to add a new dynamic attribute or select an attribute from the top section to edit it.

    A new attribute line appears in the top pane. If you have selected an existing dynamic attribute, the attributes that are blended to create the dynamic attribute value appear in the section below the list of dynamic attributes.

  4. Click Add to add an attribute to the currently selected dynamic attribute. A new attribute line opens in the lower pane.
  5. Click in the field and then select from the list of attributes.
    The attribute list for dynamic attributes is a subset of the attribute list available for sorting rules. For example, the Standard attributes that can be used as dynamic attributes include Text Relevance (sorting.text-relevance) and Predictive Sort (sorting.predictive-sort).
  6. In the Direction column, click in the cell for your attribute and select a sorting direction.
    • Ascending: Sorts the search results from the lowest value to the highest (A-Z, 1–100).
    • Descending: Sorts the search results from the highest value to the lowest (Z-A, 100-1).
  7. In the Default Value column, click in the attribute cell and select a replacement value for stale or undefined data. For example, if you have stale data, set whether the stale data is placed at the top, bottom, or middle of results by default.
  8. Enter a percentage weight for the attribute. All weights must add up to 100%.
  9. Click Apply.