peki Posted August 5, 2016 Share Posted August 5, 2016 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 More sharing options...
rocky Posted August 6, 2016 Share Posted August 6, 2016 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 More sharing options...
peki Posted August 9, 2016 Author Share Posted August 9, 2016 Hello Ambassadors, thank for your advice. I changed mentioned lines, but no change, cover image was still not showing... Link to comment Share on other sites More sharing options...
peki Posted September 2, 2016 Author Share Posted September 2, 2016 any other ideas? Link to comment Share on other sites More sharing options...
rocky Posted September 3, 2016 Share Posted September 3, 2016 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 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