Edit media names
Batch action “Edit media name” allows to edit names of media, which are indicated in specific attributes of products. Media names can be generated dynamically based on variables (product attribute.
Last updated
Batch action “Edit media name” allows to edit names of media, which are indicated in specific attributes of products. Media names can be generated dynamically based on variables (product attribute.
Last updated
Batch actions work in the background; when they are fully executed, you will see confirmation in the Action center and a new entry in Activities.
Additional information:
Only global-type attributes are supported.
Supported attribute types are the same as with variables in TEXT_AREA type attributes, the list can be found here: LINK
Medium has to be related only to one product.
If a single medium is used in many attributes within the product, then the system will change its name only once, in the first attribute.
If the variable has an empty value, then, in effect, it will be empty in the file name.
The count suffix (…01, …02…) is always added in the product context.
The limit on the file name length is 128 characters.
The forward slash “/” is not allowed in the media name.
Start by selecting the attributes you want to change the media names in.
The name suffix (01, 02, 03, etc.) will be applied in the order of the selected attributes.
Choose the naming method for your media name format.
Using this method you can use a custom string and/or a variable.
The next step is to choose a language to pull variable values from. It's required to do so even if variables are not used to create a new media name.
Click on Edit media names to start the renaming process.
When it's done, the system will send a notification via the Action center.
Example configuration:
Media name format #name-#type-#color-
Language of variables English (United Kingdom)
Attributes with media to be renamed Main image, Gallery
Sample effect for a single product:
Assume that the product has the following values:
#name: "Adidas Shoes"
#type: "Casual"
#color: "Black"
Value image1.jpg
in attribute Main image
change its name to Adidas Shoes-Casual-Black-01.jpg
Value gallery_image001.jpg
in attribute Gallery
change its name to Adidas Shoes-Casual-Black-02.jpg
Value gallery_image002.jpg
in attribute Gallery
change its name to Adidas Shoes-Casual-Black-03.jpg
Value gallery_image003.jpg
in attribute Gallery
change its name to Adidas Shoes-Casual-Black-04.jpg
This method does not need any additional configuration.
Example configuration:
Assume that the product has the following values:
#SKU: "001"
#total number of files in selected attributes: 4
The order in which attributes are selected defines the incrementation order. If "Main image" was selected first, the first file in that attribute will start the process, then the system will proceed with the rest of the files in that attribute and then will start changing the names of files in the "Gallery" attribute.
Attributes with media to be renamed Main image, Gallery
Sample effect for a single product:
Value image1.jpg
in attribute Main image
change its name to 001-01.jpg
Value gallery_image001.jpg
in attribute Gallery
change its name to 001-02.jpg
Value gallery_image002.jpg
in attribute Gallery
change its name to 001-03.jpg
Value gallery_image003.jpg
in attribute Gallery
change its name to 001-04.jpg