Loading

Sorting PLP Products Using Custom Product Active Data with Variation Groups Display Mode

Publiseringsdato: Oct 30, 2026
Beskrivelse

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.

How to enable "Variation Groups Display Mode"

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.

  1. For keyword searches, enable the Merged Variation Group Display mode by clicking App Launcher App Launcher, and then selecting Merchant Tools | site | Site Preferences | Search Preferences.
  2. For Catalog Navigation, set the Variation Group Display mode by clicking App Launcher App Launcher, and then selecting Merchant Tools | site | Products and Catalogs | Catalogs | catalog | Edit | Category Attributes.
     

Use Case

  1. A customer creates a new custom Product Active Data attribute under Site Development >  System Object Types > Product Active Data to track a specific data based on product availability.
  2. Includes the attribute in a sorting rule, and
  3. Applies the sorting rule to a PLP.

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.

Cause

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.

 

Løsning

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.

Additional Considerations

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.

Knowledge-artikkelnummer

005465525

 
Laster
Salesforce Help | Article