---
schema_version: "1"
id: 5138dcd3da65a3fa529c0a42bde91722cc14d79621cacef98a21ae2fa579cfff
title: Create Attributes for Product Variations in B2B Stores
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/commerce/264-0-0/comm_config_att_set.md
canonical_url: https://help.salesforce.com/s/articleView?id=commerce.comm_config_att_set.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 97960f0919c9533b6d1c529cbcdaba5b801ac2f51f94e66ead06b4ed539d50c9
description: An attribute identifies a specific product feature, such as size or color. A product can have multiple attributes, so you can group attributes into an attribute set. Then, apply the set to one or more products and then assign individual attributes. By using attribute sets, it provides consistency across products.
products:
  - Commerce
  - B2B Commerce
release: "264"
---
# Create Attributes for Product Variations in B2B Stores

An attribute identifies a specific product feature, such as size or color. A product can have multiple attributes, so you can group attributes into an attribute set. Then, apply the set to one or more products and then assign individual attributes. By using attribute sets, it provides consistency across products.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><a href="https://help.salesforce.com/s/articleView?id=commerce.comm_editions.htm&amp;language=en_US" target="_blank">View supported editions</a>.</td></tr></tbody></table>

[Which Salesforce Commerce Product Do I Have?](https://help.salesforce.com/s/articleView?id=commerce.comm_what_product.htm&language=en_US)

To create an attribute set, first create individual product attributes, and then group them into a set that you apply to a particular product. For example, the variation parent product is ice cream, and it can use the attributes of flavor, type, and volume. If you group these attributes into a set, you can associate one attribute set rather than three. You can include up to five variation attributes in an attribute set.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-commerce-comm-264-0-0-production-enus/d863e308-482a-4dfa-8d20-2a94737d394a/images/icon_note.png)

Note After you add an attribute set to a product, you can’t modify it.

1. Create a product attribute.
    
    Each product variation requires a unique attribute value.
    
    1. In the navigation sidebar, select a store from the Store dropdown.
    2. Select **Settings** | **Product**.
    3. Click **Product Attribute** and then click **New**.
    4. Select a display type, and enter a name and label for the attribute, for example, Color.
    5. Add an attribute option, for example, Blue. To add more options, click **Add Value**.
    6. Arrange the attribute options in the order you want or sort them alphabetically.
    7. Click **Create**.
    
    After saving, if you want to delete or reorder attributes, go to
    
    **Object Manager** | **Product Attributes** | **Fields & Relationships**.
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-commerce-comm-264-0-0-production-enus/d863e308-482a-4dfa-8d20-2a94737d394a/images/icon_note.png)
    
    Note When you create ProductAttribute fields through the Commerce Admin UI, Salesforce automatically updates existing out-of-the-box commerce profiles and permission set licenses to provide Read access for the new fields. However, if you're deploying metadata changes to production without using the Store Administration, ensure that appropriate profile and permission set license updates are included in your deployment to maintain proper access controls.
2. Group the attributes for the product into an attribute set.
    1. Click **Variation Attribute Sets**.
    2. Click **New**.
    3. Enter a name and description for the attribute set.
    4. Move up to five attributes to the Selected Fields column, and arrange them in the order that you want them to appear.
    5. For Group By, select the attribute you want to use to organize the display of product search results, and save your changes. See [Options for Displaying Product Variation Search Results](https://help.salesforce.com/s/articleView?id=commerce.comm_var_group_overview.htm&type=5&language=en_US).
        
        If you want customers to see product variations in search results grouped by a specific attribute, select that attribute in the Group By field. For example, if you want to show variations grouped by color, select Color in the Group By field. The way variation products are displayed in search results is also influenced by the settings you select in Product Variation in the search Additional Settings tab. On that page, you have three options for how you want the products to be displayed:
        
        - Show all product variations
        - Show parent product only
        - Show best match product only
        
        For more information about these settings, see [Configure How to Display Product Variation Search Results](https://help.salesforce.com/s/articleView?id=commerce.comm_var_group_setup_search.htm&type=5&language=en_US) and [Options for Displaying Product Variation Search Results](https://help.salesforce.com/s/articleView?id=commerce.comm_var_group_overview.htm&type=5&language=en_US).
        
        This table shows combinations you can create with the Group By field and the Product Variation Display Settings.
        
          
        | Group By | Product Variation Display Setting | Search Result Display on the Product List Page |
        | --- | --- | --- |
        | Attribute | Show parent product only | Shows a separate tile for each color variation. |
        | Attribute | Show best match product only | Shows a separate tile for each color variation. |
        | Attribute | Show all product variations | Shows all color variations and all other product variations. |
        | None | Show parent product only | Shows a single tile for the parent product. |
        | None | Show best match product only | Shows a single tile for the best match product. |
        | None | Show all product variations | Shows all product variations. |

#### See Also

- [Product Variations and Attributes](https://help.salesforce.com/s/articleView?id=commerce.comm_var_att_intro.htm&release=264.0.0&type=5 "Use variations to extend the range of products that you offer in your B2B store. For example, add size and color options to a tee shirt. Configure variations to be searchable in your stores and available in multiple languages.")
- [Options for Displaying Product Variation Search Results](https://help.salesforce.com/s/articleView?id=commerce.comm_var_group_overview.htm&release=264.0.0&type=5 "Configure how to display product search results on your B2B store’s Product List page. You can show all the variations of the parent product, show only the parent product, or show only the best match.")