QuartoTheme guide · v1.0.0

Looks and fit data

Quarto reads a handful of metafields — custom fields on products, variants and collections. A theme cannot create metafield definitions itself, so you create them once, in your Shopify admin under Settings → Custom data. The namespace and key must match exactly.

Everything here is optional. When a field is empty, the feature that uses it simply does not appear; nothing breaks and no empty boxes are shown.

Looks

A look is an ordinary collection that holds the pieces of one outfit.

Definitions to create

WhereNamespace and keyTypeUsed for
Collectioncustom.look_imageFile (image)The photograph of the outfit. If empty, the collection image is used.
Collectioncustom.look_hotspotsJSONPoints on that photograph, one per piece.
Productcustom.looksCollection reference (list)Which looks a product belongs to.

Making a look

  1. Create a collection, for example Look 04 — Wool coat and wide trousers, and add the productsin the outfit.
  2. On the collection, set look_image to the outfit photograph.
  3. Set look_hotspots to a list of points. x and y are percentages from the top-left cornerof the photograph; handle is the product's handle (the last part of its web address):

    ``json [ { "handle": "wool-overcoat", "x": 48, "y": 36 }, { "handle": "wide-trousers", "x": 52, "y": 74 } ] ``

    A point whose product is not in the collection is skipped.

  4. On each product in the look, add the collection to looks. This is what lists the look on theproduct page; Shopify has no fast way to look it up the other way round.

Where looks appear

Shoppers can add every available piece of a look in one step. If a piece is sold out, the others are added and the shopper is told which one was not.

Fit data

Definitions to create

WhereNamespace and keyTypeExample
Variantcustom.measurementsJSON{"chest": 96, "waist": 80, "length": 68}
Productcustom.fitSingle line textruns_small, true_to_size or runs_large
Productcustom.fit_notesSingle line textSleeves are long; most people turn them up once.
Productcustom.model_infoJSON{"height": 178, "size": "M"}

Measurements

Enter each variant's garment measurements in centimeters, measured flat. These names are translated by the theme: chest, waist, hip, length, sleeve, shoulder, inseam. Any other name is shown as you typed it.

With measurements in place, the product page shows:

Fit

Leave custom.fit empty for true-to-size garments: no note is shown. Use the exact values above, not your own wording — the theme translates them, so a store in several languages shows the right words in each. Put anything else in custom.fit_notes.

Model information

custom.model_info adds a line under the gallery: Model is 178cm and wears M.

Photos per color

With Show only the selected color's media on (Product information section, on by default), picking a color shows that color's photos and the photos every color shares — not the whole set.

The theme works out which photo belongs to which color in this order:

  1. Alt text. A photo whose alt text is exactly a color's name (Navy) belongs to that color.So does one tagged #Color_Navy; list several colors with commas (#Color_Navy,Black) for aphoto that belongs to more than one. A photo tagged with every color is shared.
  2. Order. Set a photo on each color's variants. That photo starts the color's group, and everyphoto after it belongs to the same color until the next color's photo. Photos placed before thefirst color's photo are shared and always show.

Nothing is filtered unless at least two colors have their own photo. The Featured product section has the same switch, along with the product page's layout, gallery and image ratio settings.

Product story

Turn on Use the product's story in an Image with text section placed on a product template, and its image, heading and text come from three product metafields (blocks you add show after them). The editorial product template has one under the details already. Create these definitions:

WhereNamespace and keyType
Productcustom.story_imageFile (image)
Productcustom.story_headingSingle line text
Productcustom.story_textRich text

A product without a story image does not show the section at all. The same switch, Hide when the image is empty, is on the Image with text and Image banner sections.