How-to
Show a Different Size Chart for Each Product in Shopify
If you sell tops, trousers and shoes, one size chart cannot serve them all. A metafield is a custom field on each product; you store the chart there and the theme displays it. No app is needed, but you edit your theme, so it is for stores comfortable with that.
Steps follow Shopify’s documented custom data and theme editor features and need an Online Store 2.0 theme (Dawn and most current free themes qualify). Labels move between Shopify updates, and not every theme offers the same blocks. Back up (duplicate) your theme before editing.
1. Create the metafield definition
- In Shopify admin, go to Settings > Custom data > Products.
- Click Add definition. Name it Size chart. Shopify makes the key (for example
custom.size_chart). - For the type, choose Rich text to paste a table, or File if you want to upload an image or PDF. Rich text is better: it is searchable and works on mobile.
- Save.
2. Fill it in for each product
- Open a product. Scroll to Metafields (or “Size chart”) near the bottom of the page.
- Paste or write the table in the rich text box, or upload the file.
- Repeat for each product, or copy a prepared chart for each garment type into products of that type. Bulk editing: you can edit metafields in Shopify’s bulk editor by adding the column, which helps when ten products share a chart.
3. Show it in the theme
- Go to Online Store > Themes > Customize, then pick the Product template at the top.
- In the product information section, add a block that has a text field, such as Text, Collapsible row or Custom liquid, depending on what your theme has.
- For Text/Collapsible row: click the small Connect dynamic source icon next to the content field and choose the Size chart metafield.
- For Custom liquid, use
{{ product.metafields.custom.size_chart | metafield_tag }}. It prints the saved rich text; adjust the namespace and key to match your definition. - Give the block a heading such as “Size chart” and save.
- Open a product with a chart, then one without. A block with an empty metafield normally shows nothing; if your theme shows an empty heading, wrap it in a condition
{% if product.metafields.custom.size_chart %}.
Limits of this method
- You still maintain one chart per product (or paste the same one many times). If you change the chart for “all dresses”, you edit every dress.
- It takes setup time and some theme literacy.
- Charts do not toggle units unless you write them with both.
When an app makes sense
If you manage many charts and want them assigned by product or collection, an app does that in one place. See best size chart apps for Shopify. For one-off charts use the HTML table; for the full set of options, how to add a size chart in Shopify.