Scenario 3

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.

  1. 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.
  2. Click the Categories tab and click Edit Categories.
  3. Expand womens > womens-clothing, select womens-clothing-tops, and click Apply.
  4. 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.
  5. On the Product Category Details page, click the Variation Values tab.
  6. On the Variation Attribute Values tab, for the color/color attribute, click Edit Values.
  7. 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.
  8. 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.
  9. 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

  1. The shopper searches for keyword "T-shirt".
  2. The shopper selects the amber image.
  3. 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.
X Privacy Update: We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used. By continuing to use this site you are giving us your consent to do this. Privacy Policy.