Skip to content

Showing products to scale

Products that have measurements can be drawn to scale on the product page. This suits prints, posters, mirrors, signs, textiles and anything else shoppers want to picture at its real size. Products without measurements show their images as usual.

Colonnade reads the size of each variant in one of two ways. Every variant needs a size, or the product shows its images as usual:

  • Variant metafields. In Settings › Metafields and metaobjects › Variants, create two definitions of the type Dimension with the keys custom.width and custom.height, and fill them in for each variant. Both are needed. This way works for products with up to 250 variants.
  • Option values. Name the size option’s values with both measurements, such as 50 × 40 cm, 50 x 40 or 20 × 16 in. Values without a unit use the section’s Unit. Every value of the option must read this way.

The product’s first image is the one drawn to scale; a product that starts with a video or a 3D model keeps it playable. A variant with its own image shows that image when it is chosen, or when the page opens on it; choosing a variant without one, or with the product’s first image, brings the drawing back. The preview is a guide, not an exact size.

Add a Preview: frame or mat block for each option value that should be drawn with a border. For a “Frame” option with the values Black and Oak, add two blocks: one with Option value Black, one with Oak. Choose the Type, color and width.

The size is the picture’s own size. A mat adds its width all round outside the picture, with its window cut to the picture, and a frame goes round the mat, so a 30 × 40 cm picture with a 5 cm mat is drawn 40 × 50 cm inside the frame.

Draws a frame or mat when a variant has this option value.

Option value
Text

Enter the value exactly as in the product options, such as Black.

Type
Choice · Default: Frame

Options: Frame · Mat

Color
Color · Default: #1D1D1D
Width
Slider from 0 to 15 · Default: 2.5

In the unit set in the section settings.

A Preview: background block lets shoppers see the product on an image of a room or a shelf, at its real size. Use an image taken straight on. Shoppers switch between the product and the background with two tabs, Product and Scene unless you name them with Tab name for the product view and Tab name for the background view.

  1. Pick the Background image.
  2. Under scale, mark an object whose width you know, such as a sideboard: move Reference left edge and Reference right edge to its ends and enter its Reference width in the section’s Unit. Guides show on the background image in the theme editor.
  3. Under placement, set where products sit: Horizontal position, the Lower limit they sit above, the Space above the lower limit and the Upper limit. The editor lists sizes that go above the upper limit. Shoppers see a short message when a size does not fit the image.

Pressing the background view shows it alone, full screen; pressing it again, or Esc, brings the page back.

Shoppers can see products at their real size on this image. Use an image taken straight on.

Background image
Image
Tab name for the background view
Text

Leave empty for “Scene”.

Tab name for the product view
Text

Leave empty for “Product”.

Scale

Mark an object in the image whose width you know, such as a sideboard. Guides show in the theme editor.

Reference left edge
Slider from 0 to 100% · Default: 25%
Reference right edge
Slider from 0 to 100% · Default: 75%
Reference width
Number

In the unit set in the section settings.

Placement

Horizontal position
Slider from 0 to 100% · Default: 50%
Lower limit
Slider from 0 to 100% · Default: 70%

Products sit above this line.

Space above the lower limit
Slider from 0 to 60 · Default: 20

In the unit set in the section settings.

Upper limit
Slider from 0 to 100% · Default: 5%

The theme editor lists sizes that go above this line.

Add a Preview: object in front block for something in front of the background, such as a vase. Products that would overlap it are raised above it.

Marks something in front of the background, such as a vase. Products that overlap it are raised above it.

Left edge
Slider from 0 to 100% · Default: 70%
Right edge
Slider from 0 to 100% · Default: 85%
Top edge
Slider from 0 to 100% · Default: 55%