XML Integration - Sending specific images

Hi! I’m trying to set up an XML file with all the product images for paid media channels.

The tag (g:image_link) for the main image (image type 2) works correctly, but the tag for specific images (g:additional_image_link) isn’t working and can’t be repeated across more than one field.

I understand that “g:additional_image_link” would need to have all the image URLs as its value, separated by commas, but I haven’t found a way to do this.

Can anyone shed some light on this?

Good morning, Andre!

I’ll throw in my :coin: :coin: here — some time ago I put together a step-by-step guide based on some internal research, for the old admin, but I believe it still works. Could you test it on your end and let me know if it does?

It’s possible to configure an additional image link in the XML through a product specification. In our documentation we have an article about this: Register product specifications or fields

I’ll walk you through the detailed steps on how to do it, sound good?

  1. The first step is to create the product field. To do this, you’ll need to go to the Products :right_arrow: Categories module and click on the desired category (Women’s, for example):

  1. After that, click on Actions :right_arrow: Group:

  1. Register a New Group:

  1. Fill in the New Group details and click Save:

  1. After that, go back to the Products :right_arrow: Categories module and click on the desired category (Women’s, for example), then click on Actions :right_arrow: Field (product):

  1. Register a New Field:

  1. This field must be of type Text (see the example below for how to fill it in), placed in the Group created in the previous step, and set to active:

  1. After saving, you’ll be redirected to the Product Fields page, which should look similar to the image below:

  1. Once the steps above are done, you’ll need to go to the Products :right_arrow: Products and SKUs module and click Edit on the desired product (this product must be within one of the categories where the Product Field was created). Click on the Specifications tab and enter the image link you want to add in the field you created:

  1. After these steps, you’ll need to update your XML settings. Just go to the Products :right_arrow: Catalog :right_arrow: XML Integration module and follow the example below:
  • Enable the flag for the Color field and add the parameter: additional_image_link
  • In the ‘Color’ specification name field, enter the parameter: image_link

Karina Mota
Field Software Engineer | VTEX

Karina, thanks for the reply!
That way I would lose the Color field, right? Also, would I have to apply it product by product? Is there a way to apply it to all products at once?

I tried to edit my previous reply, but got an error message.

I tried another approach and got closer to what I wanted.
However, there’s still no image variation, and I wasn’t able to include all the links in a single field, separated by commas.

With that, I got a different value for each “additional_image_link”, but the result is identical images in very similar formats, with “_3” being a thumbnail and “_10” having sidebars.

Is there any way to get other product images to show up in the additional_image_link fields?