Jump to content

[1.7.6.5] BlockCart Preview: quantity not updated


Divyesh Prajapati
 Share

Recommended Posts

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.

block_cart_qty_issue.png

Share this post


Link to post
Share on other sites

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

  • Like 1

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More