Size chart guide
Setting up a size chart metafield in Shopify
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.
Errors you may see
- “Type has already been taken”: the Size chart definition already exists. Use its ID in step 2.
- “Key is in use for Product metafields on the 'custom' namespace.”: the product field exists already; skip step 2.
- Access denied: run the steps in the Shopify GraphiQL app, which has every permission.
Why multi-line text and not JSON
Multi-line text is easy to edit in the admin (Content › Metaobjects), and Liquid can split it into rows and columns. A JSON field works too but is hard to edit by hand.