Dynamic attributes for weighted sorting
Key Takeaway
A dynamic attribute blends Integer and Number attributes by percentage weight into one calculated value that sorting rules can use. Each blended attribute's Default Value decides where products with null values for that attribute sort. Maximum sorts them toward the beginning.
A dynamic attribute is an attribute whose value is calculated by a formula that blends other attributes using percentage weights. Merchants create dynamic attributes so that one sorting rule can rank products by a mix of signals, such as newness and sales, instead of by a single attribute.
What a dynamic attribute is
A dynamic attribute is a custom, weighted combination of other attributes. B2C Commerce calculates its value instead of storing it. Because the value is calculated, a dynamic attribute can only be numeric.
For example, to push new products and best-selling products to the top of the results, you can create a dynamic attribute that blends Days Available and Sales Velocity.