Jump to content

Use product cover image as the default display image when a product loads


Recommended Posts

Hi

 

I have been asked to make a small change to a prestashop 1.6.0.9 site. Currently when a product is loaded that has multiple colours available the first product in the colours select list is automatically selected and the main image displays the image for that colour rather than the image which is set as "cover" for that product. The client would like that no colour be automatically selected when the page loads and that the cover image be loaded first and not changed until a specific colour is selected. 

 

I have been able to get the select dropdown list not to be set to a specific colour just by adding "<option value="">Select One</option> to the template file however this does not stop the image for the first colour option from loading. 

 

How do I make it so that the "cover" image for a product is displayed when a product page is first loaded?

 

Thanks

Link to comment
Share on other sites

  • 8 months later...
  • 3 months later...

I want to do exactly the same thing, did you find a solution? 

 

Anyone has a good idea? I tried to compare Category.tpl loading the home-default image which is the correct one but I fail to be able to load this image from Product.tpl.

 

This is a pretty sensible requirement and I am surprised this is not the default way of working in Prestashop.

Link to comment
Share on other sites

  • 1 month 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...