Jump to content

Product image filename change?


Recommended Posts


I am using PrestaShop and here is my question:

When uploading a product image (for example 123-qwe.jpg), PrestaShop renames the file to {Product name}.jpg for example.

Is there any way to disable this logic, so the images are uploaded with their original filenames?

Link to comment
Share on other sites

On server file is not renamed as product name. When you add image to product prestashop rename it to ID so in source code you see: 123-home_default/product_name.jpg but in server this is img/p/1/2/3/123-home_default.jpg and original image is img/p/1/2/3/123.jpg

  • Like 2
Link to comment
Share on other sites

I didn't know that, but here is what my client wants:

He wants to upload an image that has this name: nail-polish-blue-color-brand-name.jpg for example. And he wants this name to me saved after the upload and when you click to download the image from the file page the file name (alias) to stay the same. This is for SEO purposes.

Is there any module that does this this?

Link to comment
Share on other sites

He claims that he have done it in the past using In fact, in his old shop there are many images with custom names.

What if I told him to create a the product with a product name that satisfies him, in terms of keywords, so the image gets that name and then rename the product to its real name? Will the images retain the original name firstly created?

Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...