cancel
Showing results for 
Search instead for 
Did you mean: 

Rename product images at import : Magento 2.1.8

Rename product images at import : Magento 2.1.8

Hi,

 

We are building an import script for Magento 2.1.8 CE and are trying to find a way of renaming product's additional images at csv import, with specified attribute values in the import file.

 

Attribute values are located in a separate column in csv (comma separated matching the number of additional images to be imported). E.g. there are 3 additional images, and 3 values for the attribute. What we would like to achieve is to set the value of the first attribute to the first additional image, the second attribute to the second additional image and so on...

 

Is there anyone that has a suggestion on how to accomplish this or that already has managed to come up with a working solution for this?


Grateful for any suggestion.

2 REPLIES 2

Re: Rename product images at import : Magento 2.1.8

The images that I'd like to rename are the base images of all the products.

Re: Rename product images at import : Magento 2.1.8

For your problem, you need to create script from then magento root.
That script read the data from the csv, you need to make changes into the product images according to your requirement and then save that product.

Was my answer helpful? You can Click Kudos/Accept As Solution.
200+ professional extensions for M1 & M2 with free lifetime updates!