Prestashop: Cart total quantity refresh issue

Created on 3 Dec 2019  路  15Comments  路  Source: PrestaShop/PrestaShop


Description
Cart total quantity not updated after adding or removing product from cart .
Issue appeared after update from 1.7.5.2 to 1.7.6.2

To Reproduce

  1. Add product to cart from product page or quickview
  2. Click on Cart or Proceed to checkout
  3. Increase quantity for product on this page
    cart?action=show
  4. Amount for product updated, but on the top cart button quantity is not
    Not updated cart

Additional information
PrestaShop version: 1.7.6.2
PHP version: 7.2

1.7.5.2 1.7.6.2 Bug FO Fixed Minor Modules PR available Regression Shopping carts FO ps_shoppingcart

Most helpful comment

Hi @arouiadib,

Thanks a lot!
Ping @PrestaShop/prestashop-core-developers what do you think?

Thanks!

All 15 comments

Hi @kexuejia,

I manage to reproduce the issue with PS1.7.6.2 & PS1.7.5.2 & ps_shoppingcart v2.0.3.
https://drive.google.com/file/d/1MUFgasEOKJ2X65scn8cXpVkGWujRNlNe/view
It was ok with ps_shoppingcart v2.0.2.
It is a module regression.
I鈥檒l add this to the debug roadmap so that it鈥檚 fixed. If you have already fixed it on your end or if you think you can do it, please do send us a pull request!
Thanks!

seems module ps_shoppingcart.js receives wrong event.resp
event response is undefined
event has only reason, but resp is undefined
log

on version ps_shoppingcart.js v2.0.2 no condition for event.resp
js

Hi,

The same issue when we delete a product from the shopping cart, it is not updated.
image

Thanks!

seems module ps_shoppingcart.js receives wrong event.resp
event response is undefined
event has only reason, but resp is undefined
log

yes @kexuejia, I don't see why the test against resp was added in first if. I think the test should look like:
https://github.com/PrestaShop/ps_shoppingcart/pull/54
But if it is necessary to send resp in the emitted object, we can keep the module untouched and modify in theme:
https://github.com/PrestaShop/PrestaShop/pull/16892~~

The PR: https://github.com/PrestaShop/PrestaShop/pull/16948
@khouloudbelguith @colinegin
I hope someone help me decide between the two PRs, or guide me to create another PR with the appropriate approach

Hi @arouiadib,

Thanks a lot!
Ping @PrestaShop/prestashop-core-developers what do you think?

Thanks!

Hi,
we have the same issue. Do you know when it will be done from your side ?
Best Regards

Hi,
we have the same issue. Do you know when it will be done from your side ?
Best Regards

I just downgrade ps_shoppingcart to v2.0.2.

Hi,
we have the same issue. Do you know when it will be done from your side ?
Best Regards

I just downgrade ps_shoppingcart to v2.0.2.

Can you send the downgrade? What is the procedure please to downgrade to v2.0.2?

Hi @zozo202600, you can follow this link: https://github.com/PrestaShop/ps_shoppingcart/releases

Thanks!

I tried to download it but i didnt success to install it, what is the procedure to downgrade to this version? How do i need to install it ?
Thank you in advance for your quick answer

@zozo202600, thanks to check with this module cloned from GitHub
ps_shoppingcart.zip

Thanks!

thank you very much it is finally working

Fixed by #17074

Was this page helpful?
0 / 5 - 0 ratings