We are currently on vacation until 21st July 2025, ticket responses maybe be longer than normal during this period, sorry for any inconvenience.

Unable to import Images to WooCommerce Product variations

Pending

Import WP Pro Updated 2 days ago 5 Replies

Martin asked 3 days ago on July 28, 2025 at 1:46 pm

Hi James,

 

I’m trying to import a Image Gallery to every variation of a specific product. To display the variation gallery i use the plugin „Additional Variation Images Gallery for WooCommerce“ of Emran Ahmed. All the products Parents and childs are imported and the main Variation image is displayed, but i’m unable to import the gallery to each variation. Can you help me?

Thank you in advance
Martin

J

James replied Support Agent

3 days ago on July 28, 2025 at 9:46 pm

Hi Martin,

It looks like the plugin stores gallery data in the custom field: woo_variation_gallery_images on the product variation, setting the return type to "Attachment ID - serialized".

James

MW

Martin replied

3 days ago on July 29, 2025 at 6:31 am

Hi James,

 

thank you for your answer, but i'm not sure if i got you right. 

Does this mean, that i have to get the gallery images via the Template Field -> "custom fields" (enable Text Field) -> Name: woo_variation_gallery_fields, Value: Column with all the Image Ids, field type: Attachement, Return Value: Attachement ID - Serialized, is Featured: no, Download: Media Libary?

Martin

MW

Martin replied

2 days ago on July 29, 2025 at 2:37 pm

Hi James,

i've tried all possibilities with custom field, attachment and Attachment ID - (Serialized, Multiple Records, Single Records, single records joining ids with ",") to import the gallery images. None of this works. Same with the Attachement urls and if i use Serialized insted of attachement.

The best result is, Attachement URL – Serialized, then i get five empty placeholders for the five images i try to import, but the img src is empty.

Do you have any idea how to solve this?
I’ve wasted hours the last two days finding a solution. 

The only solution i have for the moment is to import the parent products first, then the variations, after that i switch to the standard WooCommerce importer to get the variation galleries. That is a awfull messi way to import products. 

Thanks in advance for your support.

Martin

J

James replied Support Agent

2 days ago on July 29, 2025 at 8:57 pm

Hi Martin,

Screenshot attached of the settings used.

Custom field with the name "woo_variation_gallery_images" , setting the type to "attachment", and the attachment return type to "Attachmend ID - Serialized".

Set "is featured" if you want the first image to be the featured image.

James

 

MW

Martin replied

2 days ago on July 30, 2025 at 7:04 am

Hi James,

thank you James. That worked.

I used ids for the value field, that was the mistake.
Seemed clear for me, because the Return value is Attachment ID - serialized.

Something i learned today ;-)

Best

Martin