Divyesh Prajapati Posted May 31, 2020 Share Posted May 31, 2020 In default classic Prestashop v 1.7.6.5; in top right corner of header, we are having block cart preview in which we have list of quantity added to cart and link to cart. Now when we go to cart summary page and update cart buy deleting product or adding quantity; number of quantities are not getting updated in block cart preview. Link to comment Share on other sites More sharing options...
Verlonimo Posted June 2, 2020 Share Posted June 2, 2020 Hi, Seems some changes has been made in ps_shoppingcart.js file The issue is in this line: if (event && event.reason && typeof event.resp !== 'undefined' && !event.resp.hasError) { But even.resp is not defined anythere and is always undefined so just change that line to: if (event && event.reason) { and it will work Hope that helps. Thanks 1 Link to comment Share on other sites More sharing options...
bozav Posted June 2, 2020 Share Posted June 2, 2020 doesn`t work for me... and actually the shopping cart isn`t refreshing at all, or when I add something or remove page must be always refresh manually Link to comment Share on other sites More sharing options...
Divyesh Prajapati Posted June 3, 2020 Author Share Posted June 3, 2020 14 hours ago, Verlonimo said: Hi, Seems some changes has been made in ps_shoppingcart.js file The issue is in this line: if (event && event.reason && typeof event.resp !== 'undefined' && !event.resp.hasError) { But even.resp is not defined anythere and is always undefined so just change that line to: if (event && event.reason) { and it will work Hope that helps. Thanks This worked... Changing in if condition in file modules/ps_shoppingcart/ps_shoppingcart.js worked for me. Link to comment Share on other sites More sharing options...
Divyesh Prajapati Posted June 4, 2020 Author Share Posted June 4, 2020 On 6/3/2020 at 3:03 AM, bozav said: doesn`t work for me... and actually the shopping cart isn`t refreshing at all, or when I add something or remove page must be always refresh manually @bozav your problem is solved or not? Link to comment Share on other sites More sharing options...
bozav Posted June 4, 2020 Share Posted June 4, 2020 3 minutes ago, Divyesh Prajapati said: @bozav your problem is solved or not? Doesn`t work. My problem may be only similiar not the same, it`s actually known on github presta page, they working on it since few days also i have this : An error occurred while processing your request when I change quantity of products, i don`t even click on add to cart 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