Show Only Some Sliced
Variations Per Category
This scenario assumes the
T-shirt (TS) product is set up for slicing. See Scenario
2 for more information. For more information about variation slicing by
category, see Variation
Slicing by Category.
- Select
site > Products & Catalogs
> Products, find the T-shirt (TS) master
product and click the product ID to open it.
For this scenario, search for T-shirt.
- Click the Categories tab and click
Edit Categories.
- Expand womens > womens-clothing, select
womens-clothing-tops, and click
Apply.
- On the Product page Categories tab, for the storefront-catalog-en
catalog womens-clothing-tops category, click
Details.
Note: Clicking the category name doesn't bring you to the
correct page.
- On the Product Category Details page, click the Variation Values
tab.
- On the Variation Attribute Values tab, for the
color/color attribute, click Edit
Values.
- On the Edit Variation Attribute Values window, select
green and amber as the active color
variation values and click Apply. This
restricts the variations shown for the category.
- For the clothingSize/size attribute, click Edit
Values, and select M and L as
the active size variation values. Setting size attribute restricts the sizes shown for the
category.
- Select
site > Search > Search
Indexes. Select the product index and click
Rebuild to rebuild the index.
B2C Commerce stores the rule, that product IDs T4, T5, T6, T7, T8, and T9 belong to the
women-clothing-tops category.
Storefront Experience
- The shopper searches for keyword "T-shirt".
- The shopper selects the amber image.
- The product detail page shows the color amber variation and swatches for the other
colors appear as well. Swatches for all available variations always appear, whether they
are assigned to the category or not.