Skip to main content

Group Attribute Sets

The Group Attribute Sets feature allows users to organize the attributes of an attribute set into logical groups. This configuration enables the grouped display of attributes on the product detail page, improving readability and usability.

The configuration for attribute groups can be managed in Omnitron, under Products and Catalogs > Group Attribute Sets. Once configured, this data can be retrieved via API to implement grouped attribute display on brand applications (e.g., web or mobile interfaces).

Steps for Configuration

To configure Group Attribute Sets, an attribute set must first be created. For detailed instructions, refer to the Attributes & Attribute Sets tutorial on creating attribute sets.

Once the attribute set is created, it will be listed on the Products and Catalogs > Group Attribute Sets page, where grouping can be configured.

Step 1: Creating Group Names

  • Navigate to Products and Catalogs > Group Attribute Sets.

  • Select the desired attribute set to configure from the list.

  • In the right-hand column, enter the group names for the attributes, click Save to apply the changes.

Step 2. Adding Attributes to Groups

  • Expand the respective group name by clicking on it and then click the “+” button to add the attributes you want to include in that group.

  • To verify the changes, navigate to Product Pool > + New Product, select the configured Attribute Set, and observe the grouped attributes displayed under their respective group names.

  • Any attributes not assigned to a group will appear under “Ungrouped Attributes”.

Fetching Attribute Config Groups

Once the attribute groups are configured, they can be fetched programmatically for integration into brand applications.

GET Attribute Config Groups

This API retrieves the attribute configuration groups for a specific attribute set.

Path: /attribute_set/{{Attribute_Set_pk}}/attribute_config_groups/

Example Request

import requests

url = "https://{commerce_url}/attribute_set/1/attribute_config_groups"

payload={}
headers = {
'Accept': 'application/json',
}

response = requests.request("GET", url, headers=headers, data=payload)

print(response.text)

Example Response (200 OK)

When the request is successful, the response will include a list of attribute configuration groups and their respective attributes.

ParameterData TypeDescription
attribute_config_groupslistList of attribute config groups.
attributeslistList of attributes in the current attribute config group.
group_namestringThe name of the attribute config group.
{
"attribute_config_groups":[
{
"attributes": [
"description",
],
"group_name": "Other Attributes Group"
},
{
"attributes": [
"size",
"gender"
],
"group_name": "Variant Attributes Group"
},
{
"attributes": [
"arm_lenght",
],
"group_name": "Ungrouped Attributes"
}
]
}