rbuelund Posted January 12, 2021 Share Posted January 12, 2021 (edited) After upgrading Prestashop from 1.7.6.7 to 1.7.7.1, the color attributes on the products does not change the images anymore. I can see that the POST request is made and JSON is returned upon a clor change but nothing happens to the page !?? Edited January 12, 2021 by rbuelund (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted January 12, 2021 Share Posted January 12, 2021 if you post url, you can delete it later...maybe someone can help, make sure to post the product link as well. Link to comment Share on other sites More sharing options...
Prestachamps Posted January 12, 2021 Share Posted January 12, 2021 If you check the Google console do you see any other JS errors? I'm asking as the first Js error kills the rest of the coming JS-s after. Any new Zoom options installed, added? These are the first things which pop into my mind. Link to comment Share on other sites More sharing options...
rbuelund Posted January 15, 2021 Author Share Posted January 15, 2021 You can see the problem here: https://shop.danskmoebeldesign.dk/hynder-til-syver-stole/367-696-hynder-til-syverstole-applaus-stof.html#/111-applaus_stof-applaus_stof_40 The small image is changing correctly but not the big one ?? There are some errors with "Failed to load ressource" - but i do not really get what is going on there... Link to comment Share on other sites More sharing options...
rbuelund Posted January 15, 2021 Author Share Posted January 15, 2021 Is this message a problem: "JQMIGRATE: Migrate is installed, version 3.1.0" Link to comment Share on other sites More sharing options...
Prestachamps Posted January 15, 2021 Share Posted January 15, 2021 Hi, The 404 error is a missing image from your Description which can't be found on the server. Are you using and CC or CS compress- try to deactivate those options, as you have 2 undefined errors on that page, which I presume are causing the issue. Deactivate your zoom module(in case you use one) Don't forget to clear cache after you've done what I asked. cheers, Leo Link to comment Share on other sites More sharing options...
rbuelund Posted January 15, 2021 Author Share Posted January 15, 2021 (edited) No compression active on the page. No zoom module either. This problem only arised after update of Prestashop to 1.7.7.1 and update of modules - but which of it caused it - I do not know. And to late to rollback now. Edited January 15, 2021 by rbuelund (see edit history) Link to comment Share on other sites More sharing options...
rbuelund Posted January 15, 2021 Author Share Posted January 15, 2021 Also - I believe the javascript is working as the litle image IS changing ? Link to comment Share on other sites More sharing options...
Prestachamps Posted January 15, 2021 Share Posted January 15, 2021 Hi, well, the image is changing, but for some reason the main image is always the cover image as I see. You should contact the theme developer as I suppose there is the issue. Temporarily here is a small Javascript which can set the correct image after the combination change. Add this at the end of the custom.js: prestashop.on('updateProduct', (params) => { if (typeof(params) !== 'undefined') { $('.js-qv-product-cover').attr('visibility',0); setTimeout(function(){ $('.js-qv-product-cover').attr('src',$('#thumb_box img').data('image-large-src')); $('.js-qv-product-cover').attr('visibility',1); },300); } }); Kind regards, Leo Link to comment Share on other sites More sharing options...
rbuelund Posted January 16, 2021 Author Share Posted January 16, 2021 That script works - so as a temporary solution that is good - thank you! - I HAVE contact to the theme developer - but he was not shure that the problem was on his side ! I tried to change to classic theme (without your script) and there the image change works perfectly - so is that not a conclusion for a template based problem ? 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