Eros eros Posted March 25 Share Posted March 25 Hi guys, in my PS 1.7.8.11 cart not refreshed automatically both when I change the quantities and when you remove the item. This is the error: jQuery.Deferred exception: Cannot read properties of undefined (reading 'cart') TypeError: Cannot read properties of undefined (reading 'cart') Any solutions? Link to comment Share on other sites More sharing options...
Nickz Posted March 25 Share Posted March 25 Do you empty your cache after each change? Link to comment Share on other sites More sharing options...
Eros eros Posted March 25 Author Share Posted March 25 emptied, forced recompile, I did everything.... Link to comment Share on other sites More sharing options...
Prestashop Addict Posted March 26 Share Posted March 26 Do you have a specific theme or classic? Is it a fresh install or upgrade from previous ps version? Link to comment Share on other sites More sharing options...
Eros eros Posted March 26 Author Share Posted March 26 theme classic and upgrade from 1.7.5.1 to 1.7.8.11 Link to comment Share on other sites More sharing options...
Prestashop Addict Posted March 26 Share Posted March 26 (edited) Did you upgrade the theme also? If not, download it from github and replace files Edited March 26 by Prestashop Addict (see edit history) Link to comment Share on other sites More sharing options...
Eros eros Posted March 26 Author Share Posted March 26 but excuse my ignorance, does the theme need to be updated separately? we limited ourselves to updating the PS version without worrying about the theme. the one you linked is the latest updated classic theme Link to comment Share on other sites More sharing options...
Prestashop Addict Posted March 26 Share Posted March 26 If you upgrade ps with 1-click upgrade you have to active the option update classic theme. The link on github is the latest version Link to comment Share on other sites More sharing options...
Eros eros Posted March 26 Author Share Posted March 26 that option had turned on during the update Link to comment Share on other sites More sharing options...
Prestashop Addict Posted March 26 Share Posted March 26 Try in private navigation. If it works clear all cache browser Link to comment Share on other sites More sharing options...
Eros eros Posted March 26 Author Share Posted March 26 Same error also in private navigation Link to comment Share on other sites More sharing options...
Prestashop Addict Posted March 26 Share Posted March 26 Deactivate js CCC to see where the error comes from (browser inspector/js console) Link to comment Share on other sites More sharing options...
Eros eros Posted March 28 Author Share Posted March 28 I have another issue, in addition to not refreshing, the quantity in the cart is not aligned with the arrows.... see attach Link to comment Share on other sites More sharing options...
Andrei H Posted March 28 Share Posted March 28 Hello, Can you provide a link for your website, please? It might be easier getting to the bottom of the issue this way. Link to comment Share on other sites More sharing options...
Eros eros Posted March 28 Author Share Posted March 28 Error is this, could this be good or do you need the link.... I have to ask Link to comment Share on other sites More sharing options...
Eros eros Posted March 29 Author Share Posted March 29 Any news? Link to comment Share on other sites More sharing options...
Paul C Posted March 30 Share Posted March 30 For sure it's a javascript issue. Those buttons beside the quantity are controlled by bootstrap touchspin and obviously the cart updates are done via ajax. Do things like quickview work? Have you spotted any other weird behaviour? It could be core.js in the themes directory (which also specifies the selectors used by the theme js) is missing or corrupt. You can download it from the appropriate branch on github. Link to comment Share on other sites More sharing options...
Eros eros Posted April 1 Author Share Posted April 1 I also noticed that when we confirm the order with bank transfer payment it doesn't go ahead, could the core.js always be the cause? Link to comment Share on other sites More sharing options...
Paul C Posted April 2 Share Posted April 2 (edited) I think you need to replace the files in the theme directory with those from the 1.7.8.11 download archive. I suspect something hasn't been updated, but it's just a theory. Can you look at the "Advanced Parameters-->Information" page in the Back Office and check if it comes up with a list of file changes (at the bottom of the page. It will take a little while to populate)? Just in case we're looking in the wrong place. Edited April 2 by Paul C grammer.... (see edit history) Link to comment Share on other sites More sharing options...
Eros eros Posted April 2 Author Share Posted April 2 so suggest that we overlay our current core.js with that of version 1.7.8.11 assuming that something has not updated correctly. Could you tell me where to find it? Link to comment Share on other sites More sharing options...
Eros eros Posted April 2 Author Share Posted April 2 In attach the list of files Link to comment Share on other sites More sharing options...
Paul C Posted April 2 Share Posted April 2 1 minute ago, Eros eros said: so suggest that we overlay our current core.js with that of version 1.7.8.11 assuming that something has not updated correctly. Could you tell me where to find it? Download Version 1.7.8.11 and extract it. The files you need to replace are in the root of the themes folder: Quote core.js debug.tpl javascript.tpl I would look at the Information page first though as it may not be necessary and could be an entirely different issue. Link to comment Share on other sites More sharing options...
Paul C Posted April 2 Share Posted April 2 3 minutes ago, Eros eros said: In attach the list of files config/defines.inc.php could have been altered to enable debug mode. The others shouldn't have been modified unless deliberately (which wouldn't be a good idea anyway). None are a smoking gun for your particular issues though. I would replace the above files from the 1.7.8.11 archive too, however it looks like the upgrade hasn't gone well.... Link to comment Share on other sites More sharing options...
Eros eros Posted April 2 Author Share Posted April 2 so what do you recommend I do? restore the 3 files you mentioned previously? core.is debugg.tpl javadcript.tpl Link to comment Share on other sites More sharing options...
WisQQ Posted April 2 Share Posted April 2 It's known issue since 1.7.7 i think. Cytat First, go to your PrestaShop directory, navigate to the 'themes' directory and edit 'core.js' file. Second, find this code: o.default.cart=e.resp.cart and replace it with o.default.cart=e.reason.cart https://stackoverflow.com/questions/68382578/prestashop-cart-not-updating-with-ajax-but-updates-after-a-refresh Link to comment Share on other sites More sharing options...
Eros eros Posted April 4 Author Share Posted April 4 Great, I solved but now I have the small problem of the arrows in mobile mode not aligned in the cart Link to comment Share on other sites More sharing options...
WisQQ Posted April 4 Share Posted April 4 34 minuty temu, Eros eros napisał: Great, I solved but now I have the small problem of the arrows in mobile mode not aligned in the cart Should be fixed with some css. Check in developer console if input field doesnt have any extra width added. Link to comment Share on other sites More sharing options...
Eros eros Posted April 14 Author Share Posted April 14 I don't understand 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