Size chart guide
Add a size chart to Shopify without an app
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.
How it fits together
- A metaobject definition “Size chart” with the chart in cm and in inches, the unit to show first, and how-to-measure notes. Its storefront access is on, so the theme can read it.
- A product metafield custom.size_chart that references one chart.
- A Custom Liquid block that reads the product’s chart. Products without a chart show nothing.
Set it up
- Build your charts in the Size Chart Builder: paste each chart from a spreadsheet, choose cm or inches, and say which products use it (product type, tag or vendor).
- In the Shopify GraphiQL app, run step 1 (the Size chart definition), paste the response back, then run step 2 (the product field) and step 3 (your charts).
- Export your products, load the file in the builder, and import the assignment file with “Overwrite products with matching handles” ticked. It only has Handle, Title and the Size chart column, so nothing else changes.
- In Online Store › Themes, duplicate your theme, click Customize on the copy, open a product page, add a Custom Liquid block in the product information area, and paste the block code.
- Preview a product with a chart, then publish the copy.
Good to know
- Running step 1 again returns “Type has already been taken”, which is safe to ignore.
- The assignment import changes only the Size chart field. Shopify’s import preview shows “Default Title $0.00” for the first product: that’s only the preview, the variants and prices are untouched.
- The pop-up works in Dawn-based themes and Horizon, and doesn’t appear on a product without a chart.