{"title":"Trait - Liquid Object Reference","slug":"trait-liquid-object-reference","url":"https://support.storeconnect.com/articles/trait-liquid-object-reference","url_markdown":"https://support.storeconnect.com/articles/trait-liquid-object-reference.md","subtitle":null,"summary":"The Trait object defines an individual trait for a Product.","type":"Developer_Documentation","video_url":"","keywords":"liquid, objects, Trait, template, storeconnect","last_modified":"2026-08-21T07:12:35+0000","body_markdown":"## Description\n\nThe Trait object defines an individual trait for a Product.\n\n:::note\nThis object supports custom data via the `data` attribute.\n:::\n\n## Attributes\n\n| Attribute | Type | Description |\n|-----------|------|-------------|\n| `id` | String | Returns the unique id for this Trait |\n| `name` | String | Returns the name of the Trait |\n| `position` | String | Returns the position of the Trait |\n| `trait_category` | [TraitCategory](trait-category-liquid-object-reference) | Returns the TraitCategory this Trait belongs to |\n| `trait_type` | [TraitType](trait-type-liquid-object-reference) | Returns the TraitType this Trait belongs to |\n| `unit` | String | Returns the unit for the Trait |\n| `value` | String | Returns the value for the Trait |\n| `value_type` | String | Returns the value type for this Trait |\n\n## Available on\n\n- [Product - Liquid Object Reference](product-liquid-object-reference) — `traits`\n- [TraitGroup - Liquid Object Reference](trait-group-liquid-object-reference) — `traits`"}