Custom Field
The custom_field object represents a merchant-defined field attached to a product, such as material, care instructions, or any other product attribute.
Usage Example
{%- comment -%} Display all custom fields for a product {%- endcomment -%}
{% if product.custom_fields.size > 0 %}
<dl>
{% for field in product.custom_fields %}
<dt>{{ field.title }}</dt>
<dd>{{ field.value }}</dd>
{% endfor %}
</dl>
{% endif %}Properties
title
The display title of the custom field.
handle
The unique handle for the custom field.
value
The value assigned to the custom field.
type
The type of the custom field (e.g., text, number).