This article explains how Salesforce B2C Commerce uses custom Product Active Data attributes in sorting rules applied to Product Listing Pages (PLPs), particularly when Variation Groups Display Mode is enabled.
This feature is disabled per default. To enable the display settings for Variation Groups, check the preference "Enable merged/individual display setting for Variation Groups" at Administration > Global Preferences > Feature Switches in Business Manager.
, and then selecting Merchant Tools | site | Site Preferences | Search Preferences.
, and then selecting Merchant Tools | site | Products and Catalogs | Catalogs | catalog | Edit | Category Attributes.The customer observes that sorting works as expected when Variation Groups Display Mode is disabled but does not produce the expected results when Variation Groups Display Mode is enabled.
Note: Customer uses Variation Group to show on PLP rather than Variation Base Products.
Custom Product Active Data is stored as a separate record for each product (master, variation group, and variation). The attribute values are not automatically rolled up between these records.
The product record used for sorting depends on the Variation Groups Display Mode configuration:
Variation Groups Display Mode disabled: The sort reads the custom Product Active Data record of the product's variation group.
Variation Groups Display Mode enabled: The sort reads the custom Product Active Data record of the master product. Every variation under that master gets the same sorting value.
In merged mode, the individual variations' attribute values are not read. Therefore, the sorting order may not reflect the values populated on the individual variations.
When Variation Groups Display Mode is enabled, populate and maintain the custom Product Active Data attribute on the master product records.
For example, if the customer uses a custom attribute to track a specific data and includes it in a sorting rule, the required date value must be populated on the master product for the sorting to use that value in merged mode.
The platform does not automatically derive the master's attribute value from its variations. The customer must maintain the master-level value through their data-management or integration process.
If a master product has no value for the sorting attribute, or if multiple master products have the same value, they may tie on that sorting criterion. Those products then fall back to the next sorting rule and, if necessary, to index order. This can cause products to appear in an order that differs from the customer's expectations.
A feature request is only required if the customer wants the master's custom Product Active Data attribute to be calculated automatically from the values of its variations. This functionality is not currently implemented.
005465525

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.