Jump to content

[SOLVED] Add a default photo to a product


Recommended Posts

Hi,

I'm new to Prestashop, and I have a question.

If I create a product, but don't upload an image, I want the system to show a default 'Awaiting photo' image.
Does anyone know how to do this?
I have created an image to use, but can't see anywhere in the Back Office to upload it.

Thanks,

Willo

Link to comment
Share on other sites

I am not sure if there is any admin page to do that or not.
But you can do this by replacing following images

YouSiteRoot/img/p/en-default-large.jpg
YouSiteRoot/img/p/en-default-medium.jpg
YouSiteRoot/img/p/en-default-small.jpg

You will have create one set of images for all languages your store speaks. Above list is for English which is start with "en" the ISO code of the language.

Link to comment
Share on other sites

Thanks Shokinro, I've done that. However, it's still not showing the default image.

If you go to http://www.livinginandout.co.uk/product.php?id_product=2223, you'll see the product. I created it deliberately without a photo, hoping it would show the default 'Awaiting photo' image.

This is a site which I've taken over from another developer, and I wonder if he removed the code to display the default images you mentioned? Does anyone know what code is needed for this, and which .tpl or .php file it needs to go in?

Thanks,

Willo

Link to comment
Share on other sites

Sorry, there is one more image you need to replace

en-default-thickbox.jpg
en-default-home.jpg

And make sure file name and extention are corrected. If everything did correct. It should work.
Please also clear your browser caches.

Here are the links to my demo site that shows the changed images.

http://expresscheckout.dyndns.org:8080/shop1323/category.php?id_category=3

http://expresscheckout.dyndns.org:8080/shop1323/product.php?id_product=13

Link to comment
Share on other sites

Hi Shokinro,

Thanks again for your help. What you suggested in your first reply would have worked, however I discovered that the images you mentioned were in the /img/c/ folder rather than the /img/p/ folder for some reason.
I guess the guy who worked on the site before me must have moved them.
However, the problem is now solved. See http://www.livinginandout.co.uk/product.php?id_product=2223

Thanks again.

Willo

Link to comment
Share on other sites

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...