Salesforce B2C Commerce 19.2 > Merchandising Your Site > Catalogs, Categories, and Products > Products > Product Types > Product Variations

Variation Slicing by Category

If you have a variation product, it can appear in search results or landing pages using a single image or multiple images. Salesforce recommends using variation groups to show products in different categories. However, you can also show the same product differently in the keyword search results and in different categories, depending on the slicing rule used.

Slicing Rule Inheritance

Configure the default slicing rule of a variation product on the Product page Variation tab of the master product. The default slicing rule is used to determine whether the variation product appears as a single search result with a single image or is sliced and appears with a search result for each variation product with its own image. The default slicing rule is always used by the keyword search. However, it's possible to override the default slicing rule for a product by defining a slicing rule for a specific category.

Configure a category-specific slicing rule on the Category Edit Details page Variation Attribute Values tab of the master product. If the category-specific rule is different from the default slicing rule, it overrides the default rules for searches refined by the category. In the storefront, this means that if the customer searches for the product, it appears according to the default sorting rule; whereas if the customer navigates to the product for that category or refines the keyword search, it appears according to the category-specific rule. If the product is assigned to multiple categories and shown differently in each category, the keyword search shows both versions of the product: the product master with swatches from one category and the variation product slices from the other category.

Assigning Variations to Categories

A product variation or product master can be assigned to one or more categories. Each category shows master or variation products assigned to it, depending on the category-specific slicing rule. If the product isn't sliced, the product master image is used. If a product is sliced, then the online variation products are each shown separately.

Each variation product can be configured to include a subset of variation values for a specific category. For example, if you have a product in red, green, and blue, you can assign only the red and green variations to the category, in which case only the red and green variation products appear.

The attributes assigned via the classification category are inherited by all variation products, even when the assignment is configured to include a subset of variation attributes. This means that although only the red and green variations appear for the category, if the customer clicks the product detail page for a variation, all available variation products are shown in swatches, and can be selected with the correct pricing, and added to the cart.

If you have a three dimensional variation product, in which there are multiple slicing attributes, such as (color, style, and size), multiple variation values can be selected per category assignment, but only the products that have the intersection of all assigned values are assigned to the category. For example, a merchant selects red and Petite as the active variation values for a three dimensional variation master that is sold in four sizes. The intersection would be Red Petite 2, Red Petite 4, Red Petite 6, and Red Petite 8.
Note: Three-dimensional slicing isn't included in SiteGenesis functionality.

The storefront presents active variation values based on the category that is being viewed. For example, if the shopper is viewing the sale category and only red values have are assigned to the category, the shopper doesn't see swatches for other colors in the search results, but does see them on the product detail page. When a variation master is assigned to more than one category and the selection of variation values is identical, only one search result appears in the storefront.

Keyword search, however, returns all variations assigned to any category.

When a slicing variation is assigned to a category, it affects how the variation appears for the category, but not its availability. This means that assigning or unassigning non-slicing attributes doesn't change how the product appears or the variations that are available for sale. For example, it doesn't matter whether or not the size 6 variation of the product is assigned to the category, because it doesn't change whether variations are sliced or not and doesn't affect the sizes that are available on the product detail page.

Import and Export

Catalog import and export include the category-assignment slicing rule.

Active Data

Active data is aggregated at the category level so that category sorting rules reflect totals for the category.

Related Links

Master and Variation Product Scenarios

Product Variations