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
    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)

Match charts to products

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.

More guides