Ruup Posted July 23, 2017 Share Posted July 23, 2017 (edited) Hi, While in shopping cart and change quantity of the item, the price and item doesn't update automatically. Deleting items is the same story. Firebugs shows 'TypeError: e.reason is undefined' See screenshot. A manual page refresh does work. Ajax is turned on in de cart module. Version 1.7.2.0 What's te problem? Thanks in advance. Edited July 23, 2017 by Ruup (see edit history) Link to comment Share on other sites More sharing options...
[email protected] Posted August 14, 2017 Share Posted August 14, 2017 Hi, I have exactly the same issue, anyone can shed some light? Link to comment Share on other sites More sharing options...
divyashree Posted August 18, 2017 Share Posted August 18, 2017 Hi Even i have the same issue regarding cart doesn't update after deleting the order . Can Anyone help me to resolve this issue.. Thanks in advance. Link to comment Share on other sites More sharing options...
PrestaHeroes USA Posted August 19, 2017 Share Posted August 19, 2017 tip: make sure that internal PS debug is 'disabled'. this can cause unpredictable results to front office cart process. if you continue too have this problem I suggest posting in job offers as there are many dev that will fix for reasonable price. cheers, el 1 Link to comment Share on other sites More sharing options...
prestahero.com Posted August 21, 2017 Share Posted August 21, 2017 Hi, While in shopping cart and change quantity of the item, the price and item doesn't update automatically. Deleting items is the same story. Firebugs shows 'TypeError: e.reason is undefined' See screenshot. A manual page refresh does work. Ajax is turned on in de cart module. Version 1.7.2.0 What's te problem? Thanks in advance. Can you give the site url? I'd like to check the issue and see if I can help. I think it may be a prolem of javascript if you're using a custom theme Link to comment Share on other sites More sharing options...
prestahero.com Posted August 21, 2017 Share Posted August 21, 2017 You can try copy file themes/classic/assets/js/theme.js to paste in your theme. And then you copy file: classic/templates/checkout/_partials/cart-summary-product-line.tpl classic/templates/checkout/_partials/art-detailed-product-line.tpl and also paste in your theme again. hi that may work, but it's can possibly mess the theme styles, may be they're looking for a way to fix the issue and have their custom theme work as expected Link to comment Share on other sites More sharing options...
Euronymous Posted November 18, 2017 Share Posted November 18, 2017 (edited) Hello, i have same problem. When I click "add to cart" then nothing happened unless when i refresh page than the product is in the cart...any solution? Thank you, Petr. http://tompet.cz/plynova-topidla/8-plynove-topidlo-ma-tech-15-kw-s-termostatem.html PS 1.7.2.1, classic theme Uncaught SyntaxError: Unexpected token u in JSON at position 0 at JSON.parse (<anonymous>) at Object.readAjaxFields (front.js:101) at HTMLDocument.<anonymous> (front.js:33) at fire (core.js:690) at Object.fireWith [as resolveWith] (core.js:711) at Function.ready (core.js:745) at HTMLDocument.completed (core.js:748) Edited November 19, 2017 by Euronymous Fixed - it was Packetry module (zasilkovna) (see edit history) Link to comment Share on other sites More sharing options...
Ruup Posted November 20, 2017 Author Share Posted November 20, 2017 Hi, My solution was to install a new shop and migrate everything from the old to the new one. Maybe a bug or something. Thank you. Link to comment Share on other sites More sharing options...
nohossattraore Posted December 4, 2017 Share Posted December 4, 2017 Hi everyone, I had the same issue. What I did was following the reply of kornwaikas in this post https://www.prestashop.com/forums/topic/622554-problem-with-cart-updating-in-prestashop-172/ I replaced the theme.js file I had in my theme/assets/js folder by one I had in a fresh install. it doesn't solve the issue but it helped me and I hope it can help other people. Nohossat Link to comment Share on other sites More sharing options...
undesigned Posted October 1, 2018 Share Posted October 1, 2018 After an upgrade from 1.6 to 1.7.4.2 we had same issue with Add to cart - doesn't refreshing. Our solution was to disable the older version of cart. See Attach 1 Link to comment Share on other sites More sharing options...
Lartisanweb Posted May 20, 2019 Share Posted May 20, 2019 Merci Undesigned ! Sur une version 1.7.5.1 avec le thème de base Prestashop non modifié j'avais le même problème de panier ajax qui ne se mettait pas à jour! Une erreur baseUri is not defined at Object.refresh (ajax-cart.js:) dans la console de Chrome et tapant Panier dans le gestionnaire de modules, 2 modules sont apparus ! Panier v2.0.2 et Bloc panier V1.6.2 Voilà donc les 2 modules qui étaient en conflit. J'ai désactivé le module Bloc Panier V1.6.2 et maintenant c'est OK la panier se rafraichit bien quand on ajoute un produit. J'explique le souci et surtout la solution en détail et français histoire que d'autres ne perdent pas autant de temps que moi... Link to comment Share on other sites More sharing options...
aramonkg Posted September 2, 2019 Share Posted September 2, 2019 (edited) On 12/5/2017 at 12:36 AM, nohossattraore said: Hi everyone, I had the same issue. What I did was following the reply of kornwaikas in this post https://www.prestashop.com/forums/topic/622554-problem-with-cart-updating-in-prestashop-172/ I replaced the theme.js file I had in my theme/assets/js folder by one I had in a fresh install. it doesn't solve the issue but it helped me and I hope it can help other people. Nohossat Overwriting the default theme.js to your theme's js is a very bad idea, since you are going to lose any custom functionality added by your theme that relies on javascript. Unless your theme adds nothing js related it is better to seek a different solution. In the case of a site I support, which exhibited same behavior, after gathering the error reports from debugging out of both Firefox and Chrome, we came to a solution that involves editing the core.js file, in /themes/ However, this solution may or may not work in your case. And in any scenario you should check that main functions of your website work correctly after any change. Edited September 2, 2019 by aramonkg Adding information (see edit history) Link to comment Share on other sites More sharing options...
Laimonas Posted January 7, 2021 Share Posted January 7, 2021 Hey everybody, I don't want to create new thread so I will ask here. I have the same problem and no errors. When I add product to the cart ps_shopingcart module count in the header is updated, but cart that shows up when you press on the cart icon is not updated. For example add product to cart. press on cart icon and for example try to delete it. In network it says deleted but it is not updated. I noticed that there is one request missing that should call cart controller with params ajax=1 and action=refresh but it is not fired. Debug mode has no errors. I have no idea where it the problem. Can you help me? Because my customer (this is not my shop) wants to use module for product reservation and it is based on update cart. url: https://kuckis.lt Thank you very much. Link to comment Share on other sites More sharing options...
Lartisanweb Posted January 8, 2021 Share Posted January 8, 2021 For me it was a problem beetween two modules which were in conflict. Two versions of the basket module in fact... Good luck. Link to comment Share on other sites More sharing options...
Laimonas Posted January 8, 2021 Share Posted January 8, 2021 I think problem is with theme that I am using. On the demo it doesnt work as well. Theme demo url: https://jhptemplate.com/Prestashop/PRS09/JHP_ps_baby_b_1401_2/en/?demo-theme-mode=light Link to comment Share on other sites More sharing options...
Prestachamps Posted January 8, 2021 Share Posted January 8, 2021 Hi, as an temporary solution you can add this code to your custom.js, and this will trigger the cart dropdown to be updated after removing item from cart: $(document).on('click', '.remove-from-cart',function() { setTimeout("prestashop.emit('updateCart', {reason: {linkAction: 'refresh'}, resp: {}});", 10); }); Also the best way (and recommended one) would be to contact your theme developer or your cart module developer, so he can fix this inside his theme/module. Kind regards, Leo 1 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