{"title":"TraitType - Liquid Object Reference","slug":"trait-type-liquid-object-reference","url":"https://support.storeconnect.com/articles/trait-type-liquid-object-reference","url_markdown":"https://support.storeconnect.com/articles/trait-type-liquid-object-reference.md","subtitle":null,"summary":"The TraitType object defines a specific type of trait such as Width, Height, Color, Size. This belongs to a TraitCategory and can have many TraitValues.","type":"Developer_Documentation","video_url":"","keywords":"liquid, objects, TraitType, template, storeconnect","last_modified":"2026-08-21T07:12:35+0000","body_markdown":"## Description\n\nThe TraitType object defines a specific type of trait such as Width, Height, Colour, Size. This belongs to a TraitCategory and can have many TraitValues.\n\n:::note\nThis object supports custom data via the `data` attribute.\n:::\n\n## Attributes\n\n| Attribute | Type | Description |\n|-----------|------|-------------|\n| `display_on_product_page?` | Boolean | Indicates whether this TraitType should be displayed in specifications section on the product page. |\n| `id` | String | Returns the unique id of this TraitType |\n| `name` | String | Returns the name of the TraitType |\n| `unit` | String | Returns the unit for this TraitType, eg: centimetres, kilowatts |\n| `value_type` | String | Returns the value type for this TraitType, eg: number, currency, checkbox |\n\n## Available on\n\n- [Trait - Liquid Object Reference](trait-liquid-object-reference) — `trait_type`"}