Skip to Content
ReferenceLiquidObjectsStoreProduct Size Chart

Product Size Chart

The size_chart object provides size measurement tables and conversion data for a product, helping customers choose the right size.

Usage Example

{%- comment -%} Render a product size chart {%- endcomment -%} {% if product.size_chart %} {% assign chart = product.size_chart %} {% if chart.measurements_table.size > 0 %} <table> {% for row in chart.measurements_table %} <tr>{% for cell in row %}<td>{{ cell }}</td>{% endfor %}</tr> {% endfor %} </table> {% endif %} {% endif %}

Properties

measuring_guide_image

Returns the measuring guide image.

measuring_guide_instructions

Returns the measuring guide instructions for the size chart related to the image.

conversion_table

Returns the generic conversion table for converting units. This is only applicable to size charts that have a generic conversion table. I.e. for shoes this would be the conversion from UK, US, EU, etc. First row is the header row and the rest of the rows are the conversion values. Example: [ [‘UK’, ‘US’, ‘EU’], [‘6’, ‘7’, ‘40’], [‘7’, ‘8’, ‘41’], [‘8’, ‘9’, ‘42’], ]

measurements_table

Returns the measurements table for the size chart. First row is the header row and the rest of the rows are the measurement values. Example: [ [‘Size’, ‘Chest’, ‘Waist’, ‘Hips’], [‘S’, ‘36’, ‘28’, ‘38’], [‘M’, ‘38’, ‘30’, ‘40’], [‘L’, ‘40’, ‘32’, ‘42’], ]