Size chart guide
Show a different size chart for each product type
What you’ll need
Your measurements (in cm or inches)
Shopify’s free GraphiQL app (with write_metaobject_definitions, write_metaobjects access)
How to get this: Shopify’s free GraphiQL app
- Install it once from shopify-graphiql-app.shopifycloud.com: enter your store address, tick the access listed here, click Install and approve.
- Then open it any time from Apps › Shopify GraphiQL App in your admin.
Your products export CSV (to give each product its chart)
How to get this: Your products export CSV
- Products › Export › All products › Export products.
- Small exports download; big ones arrive by email.
A duplicate of your theme to test on
How to get this: A duplicate of your theme to test on
- Online Store › Themes › … on your theme › Duplicate.
- Make the change on the copy, preview it, and publish only when it works.
Matching rules
- Product type is: matches the Type column exactly (case doesn’t matter).
- Product has tag: matches any one of the product’s tags.
- Vendor is: matches the Vendor column.
- If a product matches two charts, the first chart in your list wins and the builder lists those products.
The CSV column
The metafield column is “Size chart (product.metafields.custom.size_chart)” and each value is the chart’s handle, for example tops. Shopify needs the product field (step 2) to exist before the import.
Changing a chart later
Edit the chart in the builder and run step 3 again: it updates the entry in place, and every product using it shows the new chart. You can also edit the chart in Content › Metaobjects › Size chart.