Jump to content

Show cover image of products


peki

Recommended Posts

Hello, 

 

I have problem with cover image of products. In past I upload images manually, it was no problem - when I open whatever product, shop shows cover image.

Now, I upload images of atributes automacically, I have set Cover image of product, but every time, what I open product, as cover image I see image of atributtes.. 

Could someone help me how to change it?

 

I am using version 1.6.0.14, and link f.e. -

 

http://inparfemy.sk/mejkapy/4227-max-factor-lasting-performance-make-up-make-up-50683369.html

(immediately is open with atributes image)

 

Thank for help

Link to comment
Share on other sites

Try changing lines 123-126 of themes/default-bootstrap/js/product.js from:

		if (typeof productHasAttributes !== 'undefined' && productHasAttributes)
			findCombination();
		else
			refreshProductImages(0);

to:

/*		if (typeof productHasAttributes !== 'undefined' && productHasAttributes)
			findCombination();
		else
*/			refreshProductImages(0);

This should stop the image being refreshed with the default combination image. Hopefully, your theme has similar code.

Link to comment
Share on other sites

  • 4 weeks later...

Sorry, it's just too difficult. I tried overriding the assignImages() function to change the cover to the first image, but it seems to be ignored. I think maybe the assignAttributesGroups() function is overriding the cover. You need to figure out how to get the $cover and $mainImage Smarty variables in product.tpl to be the first image instead of the default combination image.

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