Appending product internalName in the product image file name.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Appending product internalName in the product image file name.

Mohd Viqar
This post was updated on .
Hi,

I want my product image filename to be stored in this format ${product.internalName}-${type}.
Right now  system is storing product image filename as : small.jpg or medium.jpg etc,
but I want to store product image filename as productInternalName-small.jpg or productInternalName-medium.jpg etc.
Image extension can be any valid image extension.
my catalog.properties has following setting for image filename format
image.filename.format=${location}/${id}/${type}
How can I change this format to  ${location}/${id}/${product.internalName}-${type} if the uploaded image is of any product.

Thanks
Mohd Viqar