How to add a size chart to an option
A size chart adds a link under an option. When a customer clicks it, a popup opens with a table or an image, so they can pick the right size without leaving the product page. This article shows how to add one and how to format the table.
Before you start
- A size chart can be added to Dropdown and Buttons options.
- You need text, an image, or both. A chart with neither is not shown to customers.
Add a size chart
- Open the option set and select the Dropdown or Buttons option.
- In the Size chart section, click Add size chart.
- In Link text, enter the text of the link. It starts as "Size chart" and is also the title of the popup. You can use up to 120 characters.
- In Chart, paste or type the chart (up to 5,000 characters). See the format below.
- To use an image instead of, or as well as, text, drop a file into Chart image. Use a JPG, PNG, WEBP or GIF image under 5 MB. Click Remove image to delete it.
6. Click Preview size chart to see the popup as a customer sees it.
7. Click Save.
Customers now see the link under the option. To delete the chart, click Remove size chart.
Format the table
Type one row per line. The first row is the header. Separate columns with a tab, a comma, or two or more spaces, and customers see a table.
Size, Chest, Waist
S, 36, 30
M, 38, 32
L, 40, 34
The rules the table follows:
- Blank lines are ignored.
- The chart needs at least two lines.
- Every line must have the same number of columns, and at least two columns.
- If any line contains a tab, tabs are the separator. Otherwise, commas are used only if every line contains one. Otherwise, two or more spaces separate the columns.
If the text does not meet these rules, the popup shows it as plain text instead of a table. A sentence that contains a comma will therefore not become a table unless every line has a comma.
What customers see
- A link under the option, with your link text. If the chart is empty, there is no link.
- A popup with the same title, the table or text, the image, and a Close button. The Close label can be changed under Settings > Storefront text.
The link text and the chart text can be translated for each store language. See How to translate your options.