Image assignment for web

Created by Migration Bot, Modified on Fri, 23 Oct at 11:32 AM by Migration Bot

Originally written by Robbie Lewis, last updated Jul 10, 2023, on the Swan Retail knowledge base (SRS).

Part of: Swan eCommerce for SRS


The SRS WooCommerce integration has different modes for handling images. We’ve kept backwards compatability for earlier versions of the integration, but introduced new modes which give greater control.

You can see which mode you are using on the SRS dashboard in your CMS. To find it go to Swan Retail SRS > Integration Settings > Products > Product Image Assignment.

Each of the modes are described below. The image mode is set site-wide, you cannot use different modes for different products.

Mode

Description

Show all images on product page

LEGACY

All images uploaded to model/style/item are combined together and displayed on the product page. Changing options does not affect which images are displayed. This is the least flexible mode.

First image on product page, additional images on variation

LEGACY

The first image uploaded is used on the product page and any other images you add to the item will be shown when options are selected.

This mode causes duplication of images and wastes disk space because you are forced to repeat the same image across each item in your style/model.

Use WEB images

RECOMMENDED

You will use the Type setting on images in SRS to tell the website where to display images. This is the most flexible mode and what we recommend for most retailers.

Attaching images to models, styles and items

There are three places where you can upload images in SRS.

  1. Models

  2. Styles

  3. Items

When your product is imported to the website, these images are collected together and then arranged depending on your Product Image Assignment mode (see above).

If you are using a legacy mode, your images will be ordered like this:

  • Model images first

  • Style images next

  • Item images last

To have complete control over the order of your product images, we recommend using WEB images.

Image types

When adding images to a model, style or item, the Type option is provided for each image (shown above). There are several image types available to use when ordering your images.

Type

Description

MODEL

Used only when assigning images to a model, you shouldn’t use this image type on styles or items. You can have as many model images as you like. Model images always appear first when the product page loads, not after options are selected.

WEB_FEATURED

This tells the website to display this product first as the large image when the product page first loads, before any options are selected. You should only have 1 featured image per model/style/item.

WEB_VARIANT1

The first image to appear after options are selected.

WEB_VARIANT2

The second image to appear after options are selected.

WEB_VARIANT3

The third image to appear after options are selected.

WEB_VARIANT4

The fourth image to appear after options are selected.

WEB_VARIANT5

The fifth image to appear after options are selected.

WEB_VARIANT6

The sixth image to appear after options are selected.

Note: there isn’t an image type for style images. If you upload images to a style, you should use the image types that begin with WEB_ to tell the website how to arrange them. Images uploaded to style will be repeated across all items in that style.

Image distribution

This image should help to illustrate how images are distributed using the image types above. This image distribution is based on the Use WEB images mode.

On the left we show the different elements of the product in SRS. On the right we show how the images will be arranged on the product in WooCommerce. Notice how the order of the images on the items changes, the website reorders the images based on the image types that you use.

Best practises

The settings we have provided for images are very flexible, here is our recommended setup for most products.

  • Model images
    Put your featured images into the model and set their Type to MODEL. These images will appear first when the product page first loads, you can have as many as you want.

  • Item images
    If you want the images to change as options are selected, upload these images to the relevant items.

Example

Let’s imagine a t-shirt in 3 colours and 3 sizes. We will create a model called TSHIRT001 and 9 items to represent the colour and size combinations.

Type

Code

Description

Images

Model

TSHIRT001

The model which contains the t-shirt items

Lifestyle images of people wearing the t-shirts in various poses and settings.

Item

9000000001

Small Red t-shirt

An image of just the red t-shirt

Item

9000000002

Medium Red t-shirt

An image of just the red t-shirt

Item

9000000003

Large Red t-shirt

An image of just the red t-shirt

Item

9000000004

Small Blue t-shirt

An image of just the blue t-shirt

Item

9000000005

Medium Blue t-shirt

An image of just the blue t-shirt

Item

9000000006

Large Blue t-shirt

An image of just the blue t-shirt

Item

9000000007

Small Green t-shirt

An image of just the green t-shirt

Item

9000000008

Medium Green t-shirt

An image of just the green t-shirt

Item

9000000009

Large Green t-shirt

An image of just the green t-shirt

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article