Jump to content

blockcart bug: incorrect order details when updating quantity


WhyEs

Recommended Posts

Hi all,

 

We're in the middle of upgrading our webshop to v1.5.6.2 and I'm having a bit of trouble with the blockcart module.

 

When the customer adds products to the card, blockcart seems to work just fine (see image below).

 

post-719650-0-19281100-1397730534_thumb.png

 

When updating the product quantity in the checkout page however, the counter goes blank and the details are wrong. It says there are no products and shipping is free. If the page is refreshed, everything is fine again.

 

post-719650-0-55868500-1397730534_thumb.png

 

Is this a known issue?

 

Thanks!

Edited by WhyEs (see edit history)
Link to comment
Share on other sites

I did some debugging and it seems that jsonData.nbTotalProducts in modules/blockcart/ajax-cart.js is undefined. I'm guessing it should get its values assigned from modules/blockcart/blockcart.php and $nbTotalProducts in blockcart.php initially has a value, but after updating product quantity it never gets updated until a hard refresh.

 

So if my product quantity is 5 and I (debug) echo $nbTotalProducts in blockcart.php, it shows a '5'. When I update the quantity to 6, blockcart.php still echoes '5' until I refresh the page.

 

Any help would be greatly appreciated!

Edited by WhyEs (see edit history)
Link to comment
Share on other sites

  • 1 month later...

Thanks for replying. :)

 

Our theme is customized indeed, but using the default theme the problem still exists. Note that we have multiple shops, and not all of them have this issue.

 

I've installed the default theme in our development shop for testing, so fire away. :)

Edited by WhyEs (see edit history)
Link to comment
Share on other sites

  • 3 weeks later...

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
×
×
  • Create New...