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.
The images that I'd like to rename are the base images of all the products.
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.