Skip to content
Log in

TraitCategory - Liquid Object Reference

On this page

Description

The TraitCategory object defines a category of TraitType. For example, a TraitCategory “Dimensions” containing TraitTypes: Width, Height, Depth.

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

Backed by

This drop renders the s_c__Trait_Category__c Salesforce object. A theme writes it as trait_category.

Liquid attribute Salesforce field
name s_c__Display_Name__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 trait_category.data. See custom data fields in Liquid.

Attributes

Attribute Type Description
id String Returns the unique id for this TraitCategory
name String Returns the name of the TraitCategory

Available on

Was this article helpful?

Was this article helpful?