markovo Posted March 6, 2022 Share Posted March 6, 2022 Hello, I am using PrestaShop 1.7.8.3 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 More sharing options...
endriu107 Posted March 6, 2022 Share Posted March 6, 2022 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 2 Link to comment Share on other sites More sharing options...
markovo Posted March 8, 2022 Author Share Posted March 8, 2022 Here is an example: This is the product: https://17.magneticnaildesign.bg/montana-xs-72br.html This is the image for this product: https://17.magneticnaildesign.bg/1330-thickbox_default/montana-xs-72br.jpg The product is called Montana XS 72бр and the image name is montana-xs-72br.jpg Link to comment Share on other sites More sharing options...
endriu107 Posted March 8, 2022 Share Posted March 8, 2022 Image on server is not named like product check this link: https://17.magneticnaildesign.bg/img/p/1/3/3/0/1330-thickbox_default.jpg it is same image but there is real name of file, name what you see in browser is only "alias". Link to comment Share on other sites More sharing options...
markovo Posted March 8, 2022 Author Share Posted March 8, 2022 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 More sharing options...
SmartDataSoft Posted March 9, 2022 Share Posted March 9, 2022 You can check module it may help you what you need https://addons.prestashop.com/en/seo-natural-search-engine-optimization/49199-seo-images-generator-alt-title-file-name.html#overview Thank you Link to comment Share on other sites More sharing options...
markovo Posted March 9, 2022 Author Share Posted March 9, 2022 Thank you! This module is good, but my client wants to write the filename himself. Is there any solution for that? Link to comment Share on other sites More sharing options...
SmartDataSoft Posted March 9, 2022 Share Posted March 9, 2022 That is not possible in PrestaShop Link to comment Share on other sites More sharing options...
markovo Posted March 9, 2022 Author Share Posted March 9, 2022 He claims that he have done it in the past using 1.7.2.8... 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 More sharing options...
Prestag0od Posted March 10, 2023 Share Posted March 10, 2023 any solution about this yet? I also want to keep the image filename to not changed to produc tname. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now