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
    1. Install it once from shopify-graphiql-app.shopifycloud.com: enter your store address, tick the access listed here, click Install and approve.
    2. Then open it any time from Apps › Shopify GraphiQL App in your admin.

    Step-by-step guide (opens in a new tab)

  • Your products export CSV (to give each product its chart)

    How to get this: Your products export CSV
    1. Products › Export › All products › Export products.
    2. Small exports download; big ones arrive by email.

    Step-by-step guide (opens in a new tab)

  • A duplicate of your theme to test on

    How to get this: A duplicate of your theme to test on
    1. Online Store › Themes › … on your theme › Duplicate.
    2. Make the change on the copy, preview it, and publish only when it works.

    Step-by-step guide (opens in a new tab)

Generate the definitions

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.

More guides