PRODUCT ASSETS / EDITING AND PUBLISHING
Which gallery field should I use when importing WooCommerce variation images?
For a native WooCommerce variation gallery, the documented CSV column is meta:_product_image_gallery. Confirm the installed version, gallery owner and importer before using it, then read back the intended variation. A surviving legacy field does not establish that it still controls the gallery.
Which implementation owns this variation gallery?
Start with the installed WooCommerce version and active gallery implementation. In 11.1, core enables variation galleries for all stores, removes the experimental toggle, and deactivates the standalone Additional Variation Images extension. Earlier installations need their own implementation check. See the WooCommerce 11.1 developer advisory.
Do not infer the owner from a populated legacy column: retained extension metadata stops syncing after core takes over. Record the version and current owner before preparing a file. An unfamiliar third-party gallery plugin requires its own documentation; these two fields do not describe every gallery extension.
Match the documented CSV field to your importer
The official CSV guidance specifies these columns:
| Implementation | CSV column | Value |
|---|---|---|
| Retired Additional Variation Images extension | meta:_wc_additional_variation_images | Comma-separated image attachment IDs |
| Native WooCommerce Variation Gallery | meta:_product_image_gallery | Comma-separated image attachment IDs |
Product CSV Import Suite is a separate import/export extension, not the core gallery feature. WooCommerce recommends manually configuring a variation and exporting that product with the Suite as a starting template. Confirm your actual importer and version: this table is not a promise that the built-in importer or every third-party CSV tool accepts these headers unchanged.
For the Suite, use its separate variations CSV rather than editing the parent-products row. Keep the export's quoting and cell structure intact. An attachment ID is not an image URL or filename. A familiar header alone does not confirm that the row targets a variation, or that the importer maps the value into the current gallery.
Use a reference variation without copying its image ownership
Illustrative exercise, not an executed import: Asset A is SKU RED-TEE, with an approved primary image and two additional images. Asset B is SKU BLUE-TEE, a separate disposable test variation with its own blue-shirt images. Use a staging copy; leave A and the original export unchanged.
- Record A's variation identifier, parent identifier, gallery header, attachment-ID format and order. Separately identify its primary image representation.
- Prepare B's row using A's structure but B's own identifiers and intended attachment IDs. Do not copy A's red-shirt IDs into B merely because the row format matches.
- Check that the importer is updating B rather than its parent product or A. If its identifier mapping is unclear, resolve that before importing.
- Import only the isolated test target through the confirmed workflow. Preserve the input and result for comparison; an accepted import message is not the acceptance check.
The proposed test passes only when B owns its intended images, the expected order is retained where supported, and A remains unchanged. Wrong variation ownership, missing images, or unintended primary-image changes stop expansion to the remaining file.
Read back the native gallery after migration and import
Check pending migration work at WooCommerce > Status > Scheduled Actions, group woocommerce-db-updates. Existing native galleries are not overwritten by migration. Reactivating the retired extension after migration is blocked; it is not a recovery branch. See migration and reactivation guidance.
Read back the same variation's current gallery, not its preserved old value:
| Readback location | What it establishes |
|---|---|
| Variation editor | B has the intended primary and additional images; A is unchanged. |
| Developer readback of the variation object | get_gallery_image_ids() reads the native gallery, stored as _product_image_gallery on the variation record. The parent can use the same key, so record identity matters. |
wc/v3 product variation REST response | gallery_image_ids holds additional-gallery IDs; the featured image is separate in image. |
| Storefront selection, change and clear | The selected variation displays the expected media; record any fallback or display discrepancy. |
The storage and REST distinctions come from the developer advisory. These are alternative inspection routes for an authorized store owner or developer, not API calls performed for this guide. If data is correct but presentation fails, use the separate theme and gallery zoom diagnostic instead of repeatedly changing CSV fields.
Choose a next step from the evidence
- Native owner, matching export and correct readback: retain the tested mapping for comparable records, after checking the remaining variation identifiers and media.
- Only a legacy column appears: inspect export selection and importer support against the recorded owner. Do not rename the column as a migration shortcut or assume an old value still controls display.
- Migration remains pending: let the scheduled work complete before treating the whole catalog as checked. Preserve any already populated native gallery for review rather than forcing an overwrite.
- Neither expected field appears, or readback is wrong: stop, verify the variation assignment and importer mapping, then make a fresh reference export. Keep the failed test evidence; do not expand the file.
Fill in one variation record before scaling up
This is a blank handoff record to fill from your own staging exercise. No WooCommerce export, import, migration or storefront test was performed for this article.
| Record item | Your observed value |
|---|---|
| WooCommerce version; gallery owner; importer name/version | ________________ |
| Reference A and target B: variation identifiers and parents | ________________ |
| Exported gallery column; B attachment IDs/order; primary image mapping | ________________ |
| Migration status; current native readback location and value | ________________ |
| B selection/change/clear result; A unchanged; discrepancy and next action | ________________ |
The record and acceptance branches are Itemlume's proposed workflow. Official documentation supports the product behavior, not a claim that this unexecuted exercise succeeded or works with every version, theme or importer.
Sources and further reading
Recorded source-review dates are listed individually below. An undated source does not inherit the article’s publication date. Software and platform rules can change; check the current original before acting.
Frequently asked questions
What is the documented native variation-gallery CSV column?
meta:_product_image_gallery, with comma-separated image attachment IDs. Verify the exact export and mapping in your importer; the column name alone does not establish a successful import.
Does a remaining old field mean the retired extension is still active?
No. Preserved legacy values are not kept in sync after core takes ownership. Check the actual version, gallery owner and current variation readback instead.
Should the primary image go into gallery_image_ids?
No. In the documented variation REST model, gallery_image_ids contains the additional gallery; the featured image is separate in image. Inspect how your CSV exporter represents each.
What if an import completes but the wrong variation displays the images?
Stop expanding the file. Preserve the staging input and readback, compare the target variation and parent identifiers, then correct the mapping using a fresh approved export. A completion message does not prove correct ownership.
PREPARE ASSETS FOR YOUR NEXT STEP
Create supporting product assets in Itemlume.
Create new product creative assets in the workspace, then continue in your chosen tools. Third-party software procedures described in this guide take place in those applications; this workspace link does not imply an integration. Check current capabilities, account access and credit quotes.
Explore asset creation tools Check pricing and credits