TraitType - Liquid Object Reference

This article requires advanced skills to implement.
Liquid

Description

The TraitType object defines a specific type of trait such as Width, Height, Colour, Size. This belongs to a TraitCategory and can have many TraitValues.

ℹ️ Note

This object supports custom data via the data attribute.

Attributes

Attribute Type Description
display_on_product_page? Boolean Indicates whether this TraitType should be displayed in specifications section on the product page.
id String Returns the unique id of this TraitType
name String Returns the name of the TraitType
unit String Returns the unit for this TraitType, eg: centimetres, kilowatts
value_type String Returns the value type for this TraitType, eg: number, currency, checkbox