Cert++
Close

Sorting rule attribute types and eligibility

Key Takeaway

A sorting rule can use single-value Product attributes such as Boolean, Date, and Integer whether or not they're searchable, but it can't use set types. Dynamic attributes are stricter: they take only numeric types, such as Integer, which they can blend with attributes like Sales Velocity.

A sorting rule in B2C Commerce orders search and category results by a ranked list of attributes. You build rules in Business Manager at site | Merchant Tools | Search | Sorting Rules. Each rule has a site-specific or global context. A global rule is usable in all sites. Not every attribute can go into a rule, because eligibility depends on two things: the attribute's type and its data type.

Five types of attributes

A sorting rule can use five types of attributes:

  • Standard attributes let you step in with explicit placement of results, based on attributes meant for search ranking or availability. Text Relevance (sorting.text-relevance) and Predictive Sort (sorting.predictive-sort) are examples.
  • Product attributes are attributes of the Product system object, either system or custom.
  • Active Data attributes hold data collected from orders on your production system and from storefront pages. Their values are useful for sorting only when the active merchandising feature is implemented.
  • Availability model attributes need the availability feature, active merchandising, or both to be useful for sorting.
  • Dynamic attributes are merchant-built blends of other attributes, with a value calculated by a formula.
B2C Commerce Developer Study Guide

Checklist progress

0/237Learned

Given a business requirement, create and configure a new search refinement and sorting definition that can be used on the storefront

0/9

Prepare for the Exam

Play Today's Certle

Study Community

Ask questions and get the latest info from other B2C Commerce Developer studiers.