Skip to content
Log in

ComponentGroup - Liquid Object Reference

On this page

Description

The ComponentGroup object represents a group of related components in a New Product Bundle. Component groups define constraints such as minimum and maximum number of components that can be selected.

:::note This object supports custom data via the data attribute. :::

Backed by

This drop renders the s_c__Component_Group__c Salesforce object. A theme writes it as component_group.

Liquid attribute Salesforce field
display_name s_c__Display_Name__c
max_components s_c__Max_Components__c
max_group_quantity s_c__Max_Group_Quantity__c
min_components s_c__Min_Components__c
min_group_quantity s_c__Min_Group_Quantity__c
position s_c__Position__c

Every other attribute on this drop is derived by StoreConnect rather than read straight from one field. The Attributes section lists them all.

Fields you add yourself are not listed above. Expose one with a Custom Data Mapping record, then read it from component_group.data. See custom data fields in Liquid.

Attributes

Attribute Type Description
components List[ProductComponent] Returns the ProductComponents in this group
display_name String Returns the customer-facing display name of this ComponentGroup
id String Returns the unique id of this ComponentGroup
max_components Number Returns the maximum number of different components allowed in this group
max_group_quantity Number Returns the maximum total quantity across all components in this group
min_components Number Returns the minimum number of different components required in this group
min_group_quantity Number Returns the minimum total quantity across all components in this group
name String Returns the internal name of this ComponentGroup
optional? Boolean Returns true if this ComponentGroup is optional
position Number Returns the display order position of this ComponentGroup
required? Boolean Returns true if this ComponentGroup is required to have selections
single_choice? Boolean Returns true if this ComponentGroup allows only one component selection

Available on

Was this article helpful?

Was this article helpful?