Skip to content
WP Intense Q & ACategory: External Imageshow to set featured image and variation image separately
a siddique asked 1 year ago

my csv contains variations for garments. each garment that has the same product code has 2 images. 1st image is the same on all the rows which is the main image, the 2nd image is of the variation so for a green tee it is a image of a green tee and then for a blue tee the image is of a blue tee and so on.

how do i go about setting the featured product image to be of the main product image and the variations to be set seperatly. currently when using external_image_url im custom fields and setting the first image|second image the featured product image is not set. how do i go about sorting this out

a s. replied 1 year ago

right not to worry i have sorted this issue out, however all images do not appear in gallery instead it only changes when colour and size is selected. is there anyway to show all variation images in product page gallery?

a s. replied 1 year ago

also when colour and size selected the main image does not change only the bottom image changes here is link:

1 Answers
Dave Hilditch Staff answered 1 year ago

To answer this question for others:

Products and their variations are separate posts in WordPress. As such, they have their own postmeta.

So – for variations and products, you load the images to external_image_url. You can load one or multiple to that field, separated by the | pipe symbol.

It’s up to you to configure your variation import – many people have 2 import jobs, one for the parent products and one for the variations, but it entirely depends on the source data and the way you configured imports.

Come chat to me on our Discord server to ask questions - Dave Hilditch, WP Intense

We use cookies

We use cookies for various things on our site, including our on-site chat bubble (if you use it), our comment forms (if you use them) and for session handling (if you log in).

Other than that, we use cookies to identify where traffic came from to help us understand which traffic turns into sales, we use a cookie for Google Analytics traffic analysis and we use a cookie to customise adverts for our own products we think you'll be interested in.

You can read more detail in our privacy policy page. Please click 'Accept' or 'Decline' to continue.