Skip to Content

Product Taxonomy Value

The product_taxonomy_value object describes a value for a product taxonomy attribute. It provides access to the value’s id, handle, name, translated name, color information, and standard/custom state.

Usage Example

{%- comment -%} Show taxonomy value name, handle, and color info {%- endcomment -%} <span>{{ product_taxonomy_value.translated_name }} ({{ product_taxonomy_value.handle }}) {% if product_taxonomy_value.color %} <span style="background: {{ product_taxonomy_value.color.hex }};">●</span> {% endif %} </span>

Properties

id

Returns the id.

handle

Returns the handle.

name

Returns the name.

translated_name

Returns the translated name.

is_transparent

Returns true if the color is considered transparent (i.e. clear).

is_multicolor

Returns true if the color is multicolor.

color

Returns the first color if any.

color2

Returns the second color if any.

color3

Returns the third color if any.

colors

Returns an array of colors (up to three).

is_standard

Returns true if the value is standard (not custom).

Last updated on