Configure Variation Groups and Slicing
Learning Objectives
After completing this unit, you’ll be able to:
- Explain the difference between variation display via variation groups and slicing.
- Describe how variation groups work with base and variation products.
- Explain how variation groups work with categories.
- Explain how Salesforce Agentforce Commerce for B2C handles attribute property inheritance for variation groups.
- Explain how search results appear when slicing is enabled.
Now that your products are defined, it’s time to perfect how they’re presented to your shoppers. As a merchandiser, your goal is a storefront that’s not just searchable, but intuitively organized. In this unit, you learn to apply variation management by configuring variation groups and slicing. Using these tools you can strategically control whether shoppers see your athletic gear as distinct, individual items or cohesive, grouped collections.
Show Products Together or Separate
You learned in the previous unit that you can create a base product with multiple variations. So what happens when a shopper searches for a product, say, a sweatshirt? What do they see? Well that depends on how youconfigure variation groups and slicing.
With Agentforce Commerce for B2C you can configure product variations search results to show shoppers a single item with an image that represents all the variations, or they see each variation, each with its own image. The image that displays with a product as a result of a search or category navigation is called a swatch. A swatch is typically a small image of a color or a texture from which shoppers can select.

For example, a sweatshirt comes in red, green, and blue. If the default is red, then the shopper sees a red sweatshirt with red, green and blue swatches that allow them to select a different color sweatshirt. If the merchant sliced the product, shoppers will see images of the red sweatshirt, the blue sweatshirt, and the green sweatshirt instead of the swatches.
Use Variation Groups or Slicing
You can configure variations via variation groups or slicing. Variation groups help you control search results more accurately. You can define multiple groups within a base product, each group representing a specific color/size/width combination. With slicing, you can only slice by one variation (color, size, or width).
Agentforce Commerce for B2C disables slicing (defined for variation attributes or overridden in category assignments) when variation groups exist for a base product, but only for that product. You can still use slicing for all other products.
Configure Variation Groups
A variation group is a subset of variations that are part of a base product. Variation groups have attributes such as color, size, width, or length. You can’t use attributes such as sale or new because they don’t provide selections.
Here are some facts about variation groups.
- Each variant in a variation group represents an orderable product.
- While you assign a variation group to only one base product, you assign multiple variation groups to that base product. Each variation group has a single product image, but with as many swatches as accurately represent the products in the group.
- They derive their inventory from the collection of SKUs associated with the group yet possess their own SKU.
- They’re mutually exclusive from other product types (product set, bundle, base product, standard product) and operate as a set or bundled product.
- You assign them to any category, just like other product types.
- You assign promotions to them. They have price adjustments through promotions.
- You don’t assign prices to variation groups in Business Manager. In this way, they are like product sets.
A variation group can include only one value of a variation attribute. For example, it can include color: green or color: red, but not both. It can include multiple variation attributes and their values, such as color: green and size: small.
After you add the size attribute, here are your sweatshirt variations.
|
Product ID
|
Color
|
Size
|
|---|---|---|
healthfit-ss-90887 |
green |
small |
healthfit-ss-90888 |
red |
small |
healthfit-ss-90889 |
blue |
small |
healthfit-ss-90897 |
green |
medium |
healthfit-ss-90898 |
red |
medium |
healthfit-ss-90899 |
blue |
medium |
healthfit-ss-90877 |
green |
large |
healthfit-ss-90878 |
red |
large |
healthfit-ss-90879 |
blue |
large |
With the color and size variations set, you can create variation groups like these.
- Green healthfit sweatshirts of any size (color: green)
- Small healthfit sweatshirts of any color (size: small)
You can also add multiple variation groups to a product set and have a single image for the product set that represents both groups.
If the base product ceases to be a base product or is deleted from the system, Agentforce Commerce for B2C deletes related variation groups. Deleting or unassigning a variation group doesn’t affect the base product that it's assigned to or the variation products assigned to it.
Create a Variation Group
You can import variation groups or create them. Here’s how you create a variation group for the Healthfit Sweatshirt.
- In Business Manager, select App Launcher, and select Merchant Tools | Site | Products and Catalogs | Products.
- Search for the base product that you want to create a variation group for: healthfit-sweatshirt
- Select Lock.
Create variations.
- Select the Variations tab.
- Add variation products and configure values for all variation attributes. Select color and size.

- In the Variation Groups section, enter a unique ID for your variation group: healthfit-green and heathfit-small, and select Add.
- Take note of any warnings that appear before clicking OK to continue.
Note: You can also click Clone to clone an existing variation group. A clone is a copy.
- Select a value for at least one variation attribute: green and small.
- Select Apply.
- Position the variation group order using the sorting buttons.

- Open each variation group.
- Select Lock.
- Select the Categories tab.
- Select Edit Categories and assign the variation group to the categories in which you want it to appear.
- Select Apply.
- Rebuild the product index.
Variation Groups and Categories
You can assign a variation group to any category, just like other products.
- Assign to a category by import.
- Assign to and from a category in the Business Manager bulk editor or product editor.
- Sort or use a category position within a category.
- Assign multiple variation groups of the same base product (colors: red and green) to the same category.
- Assign a variation base product and some or all its variation groups to the same category.
Variation Groups and Property Inheritance
Agentforce Commerce for B2C uses attribute value fallback to include variation groups in search results processing. Agentforce Commerce for B2C first checks that an attribute value is set for the variation product, then the variation group product, and finally the base product.
Agentforce Commerce for B2C uses the sort order of variation groups on the Business Manager Variations tab for attribute inheritance lookup. If a variation product (in a group) doesn't have a value for an attribute, Business Manager retrieves the value from other variation groups of the same base product (sorted by position). If, for example, a variation product doesn’t have a color value set, Agentforce Commerce for B2C checks the other variation groups first and then the base product.
Configure Slicing
Slicing lets you define how variation products show in search results or on category pages: as separate products, each with its own swatch, or as one product with swatches for each of the variations. You can slice on any variation attribute, but you can only slice by one variation attribute at a time.
To show results for every color of HealthFit sweatshirts, for example, set the color attribute to sliced. Otherwise, one item appears in the search results. The shopper can see the other colors by hovering.
In this example, you try out a few slicing scenarios: individual items for each variation and a mixed scenario. Here’s how you configure them.
Individual Item for Each Variation (Slicing)
- In Business Manager, select App Launcher, and select Merchant Tools | Site | Products and Catalogs | Variation Attributes.
- Select the catalog: cloud-kicks-usa
- Open the color attribute: color / color
- Select Slicing Attribute.
- Select Apply.
- Rebuild the product index.
When a shopper searches for “healthfit sweatshirt” or navigates via an assigned category, they see all the variations as slices, each with its own swatch.
Single Item for Search and One Category, Sliced Variations for Another Category
You can also configure an item for single item search in one category and slicing in another. Here’s how.
- In Business Manager, select App Launcher, and select Merchant Tools | Site | Products and Catalogs | Products.
- Find and open the base product: healthfit-sweatshirt
- If the product is not locked, click Lock.
- Select the Categories tab.
- For the Sportswear category, click Details.
- Select the Variation Values tab.
- For the color variation attribute, deselect Use Default.
- From the Slicing Attribute dropdown, select Yes.

- Select Apply.
- Rebuild the product index.
When a shopper searches for “healthfit sweatshirt” or navigates to the Sales category, they see one result, with the base product’s swatch. When they navigate to the Sportswear/Kids category, they see all the variations as slices, each with its own swatch.
Next
In this unit, you learned about products and attributes. Next, learn how to configure product sets, bundles, and options.