Emergency

In urgent situations or outages, you can send a text message to our emergency line

Emergency line (text message only)

+45 29 70 15 95

Send a text message with the following information:

  • Your name and webshop
  • A description of the problem

Note: This service is only for critical situations where your webshop is down or has serious problems. For regular support, please use our normal support channels.

Link images to product variants

How to link product images to specific variants in Shoporama, so the right image is shown when the customer chooses a variant such as a color.

Reading time: about 3 minutes
Store owner

You can link specific images to a product variant, so the right image is shown when the customer chooses, for example, a specific color.

The Product images section in the Shoporama admin with four image cards, each with a thumbnail, an alt text field, and the options Share image and Feed image, and below the cards the link Images on variants and the setting for following the variant's image in the Shopping Feed
The Product images section on the product's edit page, where you upload the images and link them to variants. The setting at the bottom lets the primary image in the Shopping Feed follow the selected variant.

How to link images to variants

  1. Go to Products and click Edit on the product
  2. Upload all images to the product (all colors/variants)
  3. Expand the Product images section
  4. For each image, use the Link to variant dropdown to choose which variant the image belongs to
  5. Repeat for each image that should be linked to a variant
  6. Click Save

How it looks in your store

When a customer chooses a variant (for example the color “Red”), the image gallery automatically switches to show the images linked to the selected variant.

In your theme

Variant images are handled automatically in most themes. If you have a custom theme, you can use:

The variant link is stored on the product, not on the variant itself. So you loop through the product's images and check, image by image, whether it is linked to a specific variant value:

<{foreach $product->getImages() as $image}>
  <{$variant_value_id = $image->getVariantAttributeValueId()}>
  <{if !$variant_value_id || $variant_value_id == $selected_variant_value_id}>
    <img src="<{$image|image:400:400:90}>" alt="<{$product->getTitle()}>">
  <{/if}>
<{/foreach}>

An image that is not linked to a variant is always shown (as a default image), while images linked to a specific variant are only shown when that variant is selected.

Tips

  • Upload all images first, and link them to variants afterward
  • Use the same background on all product images for a professional look
  • Images that are not linked to any variant are shown as default images

Edit the image after uploading

Click an image to rotate it, crop it, or set a focal point, without changing your original file. Read more about editing images.

See also: Image quality and image format.

Need help? Contact us at support@shoporama.dk.