1. Home
  2. Knowledge Base
  3. WooCommerce Product Options
  4. Live Preview

Using Live Preview with variation image galleries

The Live Preview for WooCommerce Product Options add-on allows customers to preview how the image(s) and text they have added will look on the finished product. On variable products, the live preview works with the image galleries that WooCommerce lets you add to each variation, so customers can see their personalization on every image of the variation they choose.

Requirements

The live preview uses the variation image galleries built into WooCommerce. These are available in WooCommerce 11.1 and later. In WooCommerce 10.9 and 11.0, they are an optional feature which you can enable in WooCommerce → Settings → Advanced → Features.

Variation galleries added by themes or third-party plugins are not supported. These solutions store and display their extra images in different ways, so the live preview can't integrate with them reliably. When the WooCommerce variation galleries are not available, the live preview uses the main image of each variation.

Setting up a variable product with variation galleries

  1. Go to Products and edit your variable product.
  2. In the Variations tab, add the images you want to show for each variation to its image gallery. For example, a t-shirt might have a front and a back image for each color.
  3. Set printable areas on the gallery images, as explained in Setting printable areas. Each image of the gallery can have its own printable areas.
  4. If an option should only appear on a specific image (for example, a "Back print" upload field should only appear on the back of the t-shirt), select it under Linked Option in the printable area of that image.

Many stores use variation galleries with the same layout for every variation, for example a t-shirt photographed from the front and from the back in each color. In this case, you don't need to set the same printable areas on every image:

  1. Set the printable areas on the images of one variation only.
  2. Enable Use for variation images on each of these images.

The printable areas are then used for the image in the same position of every other variation gallery. For example, the areas of the first image (the front) are used for the first image of every variation, and the areas of the second image (the back) for the second image of every variation. An image that has its own printable areas always uses them instead.

You can also copy the printable areas from one image and paste them onto others in the Media Library.

What customers see

  • When a customer selects a variation, WooCommerce shows its image gallery and the live preview adds the customer's images and text to the printable areas of each image.
  • When the customer fills in an option which belongs to a different image of the gallery, the gallery slides to that image so they can see the result straight away.
  • When the customer switches to another variation, their personalization is kept and shown on the images of the new variation.
  • In the cart and checkout, there is one preview image for each image of the gallery which contains the customer's personalization, for example one for the front and one for the back.

Related Articles

If searching the knowledge base hasn't answered your question, please contact support.