Skip to Content
DocumentationBlocksSize guide

Size guide block

The Size guide is a Product template block, not a template. Fit Check can power that block with a Shopify Size Chart metaobject and a product metafield named custom.size_chart.

Use this setup when products need different charts but the same Product page layout. One Product template can keep the same Size guide block while tops, jeans, shoes, accessories, and one-off products each use their own Size Chart entry. Create separate Product templates only when the page layout itself needs to change.

For a screenshot-led workflow from Shopify Admin to the Theme editor, use the Size guide setup guide.

Setup Order

  1. Create the Size Chart metaobjectIn Shopify admin, create a Size Chart metaobject definition with the exact fields Fit Check reads.
  2. Create the product metafieldCreate a Product metafield named Size chart with namespace and key custom.size_chart, using a metaobject reference to Size Chart.
  3. Add chart entriesCreate one Size Chart entry for each sizing system, garment category, or product-specific chart.
  4. Assign the chart to productsOpen each product and select the matching Size Chart entry in the Size chart metafield.
  5. Enable the Product template blockIn the theme editor, set the Size guide table block to use Product size chart metaobject.

Create the Metaobject Definition

In Shopify admin, go to Settings > Custom data > Metaobjects, then create a metaobject definition named Size Chart.

Add these fields:

Field nameField keyTypeRequiredWhat to enter
TitletitleSingle line textYesThe chart name shown in the Size guide drawer, such as Jeans size chart.
Source unitsource_unitSingle line textYesEnter inches or centimeters.
HeadersheadersSingle line textYesPipe-separated column labels, without units, such as `Size
RowsrowsMulti-line textYesOne pipe-separated row per line. The first value is the size label.
Fit notefit_noteMulti-line textNoOptional fit guidance shown below the table.
Measurement notemeasurement_noteMulti-line textNoOptional measuring guidance shown below the table.

Set Title as the display name field if Shopify asks which field should identify entries.

If Shopify shows storefront or access options for the definition, keep the Size Chart available to the storefront so the theme can read the assigned entry.

Create the Product Metafield

Go to Settings > Custom data > Products, then add a product metafield definition.

Use these values:

SettingValue
NameSize chart
Namespace and keycustom.size_chart
TypeMetaobject reference
ReferenceSize Chart

Pin the metafield if your team edits size charts often. Pinning is optional, but it makes the field easier to find on product pages in Shopify admin.

Add a Jeans Chart Entry

Go to Content > Metaobjects, open Size Chart, and add an entry.

Example jeans entry:

FieldExample value
TitleJeans size chart
Source unitcentimeters
Headers`Size
Rows`24
Fit noteRuns true to size.
Measurement noteMeasurements are body measurements in centimeters.

Because source_unit is centimeters, Fit Check displays the source table in centimeters and automatically creates the inches table. The size label column stays unchanged, while measurement columns are converted.

For example, the first jeans row displays:

TableSizeWaistHipInseamRise
Source2461 cm86 cm76 cm24 cm
Converted2424 in33.9 in29.9 in9.4 in

Add a Tops Chart Entry

Use the same definition for tops. Only the entry content changes.

Example tops entry:

FieldExample value
TitleTops size chart
Source unitinches
Headers`Size
Rows`XS
Fit noteChoose your usual size for a close fit.
Measurement noteMeasure around the fullest part of the chest.

Because source_unit is inches, Fit Check displays the source table in inches and automatically creates the centimeters table.

Assign the Chart to Products

Open each product in Shopify admin, then find the Size chart metafield.

Choose the matching Size Chart entry:

Product typeSuggested entry
JeansJeans size chart
T-shirts, shirts, jacketsTops size chart or a more specific tops chart
ShoesA shoe-size chart entry
One product with unique measurementsA product-specific chart entry

Save the product.

Enable the Theme Block

In the theme editor:

  1. Open Products and choose the Product template that includes the Size guide drawer.
  2. Open the Size guide drawer content.
  3. Select the Size guide table block.
  4. Set Size guide data source to Product size chart metaobject.
  5. Choose what should happen when a product has no chart:
    • Show manual table keeps the block’s manual fallback table visible.
    • Hide size guide hides the table when no product chart is assigned.
  6. Save the theme.

The default Product template can keep its manual fallback table. Once a product has custom.size_chart assigned, the metaobject content takes over for that product.

How Unit Conversion Works

Fit Check reads the source_unit field from the Size Chart entry:

Source unitSource tableConverted table
inchesInchesCentimeters
centimetersCentimetersInches

The toggle in the Size guide drawer switches between the source and converted tables. Ranges are supported, including values like 32-34, 32–34, and 32 to 34.

Use only measurements in the measurement columns. Put text labels, such as XS, S, 24, or 30 Short, in the first column.

Troubleshooting

IssueCheck
The manual table still appearsConfirm the product has a value in custom.size_chart, and the Size guide table block is set to Product size chart metaobject.
The chart is missingConfirm the product metafield references a Size Chart entry, not plain text.
Values are not converting as expectedConfirm source_unit is exactly inches or centimeters, and measurement cells contain numbers or number ranges.
Header units look wrongEnter headers without units. Fit Check adds (in) or (cm) based on the selected unit.
Different categories need different columnsCreate separate Size Chart entries with different headers and rows. You do not need separate Product templates unless the page layout changes.