Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating cart contents (quantity) doesn't refresh BCO #132

Closed
DanielMarklund opened this issue Mar 14, 2021 · 6 comments
Closed

Updating cart contents (quantity) doesn't refresh BCO #132

DanielMarklund opened this issue Mar 14, 2021 · 6 comments

Comments

@DanielMarklund
Copy link

When adding the ability to change quantity of products on the checkout page, BCO does not refresh when changing quantities, so there is a price mismatch.

Steps to reproduce:

  1. Install "Krokedil Checkout Customizer for WooCommerce" (by @NiklasHogefjord <3)
  2. Add something to the cart
  3. Go to checkout
  4. Update the product quantity
  5. The review-order updates with the correct new price, but BCO still has the previous price.

Video:
https://user-images.githubusercontent.com/1516103/111065218-eb368600-84b8-11eb-84a6-f09951dc4911.mov

@DanielMarklund
Copy link
Author

Trying some things out. Executing this manually in the console after reproducing the steps above does not update the price even if the iframe is reloaded:
checkout_iframe.postMessage('update', '*');

So there is some stored data not being updated somewhere. Will keep investigating.

@DanielMarklund
Copy link
Author

DanielMarklund commented Mar 15, 2021

Temporary fix:
#133 (comment)

@NiklasHogefjord
Copy link
Collaborator

Hi @DanielMarklund
Thanks for using our plugins but "Krokedil Checkout Customizer for WooCommerce" is not maintained at the moment. Could you please test with https://sv.wordpress.org/plugins/change-quantity-on-checkout-for-woocommerce/ and see if that solves your issue? :)

@DanielMarklund
Copy link
Author

Hi @NiklasHogefjord, I had the same issue with a few other plugins. Haven't tried the one you mentioned though. #133 (comment) made it work even with the not maintained plugin.

@NiklasHogefjord
Copy link
Collaborator

Hi @DanielMarklund,
Since we're aiming at releasing a new version with the template change related to #133, I will close this as solved when the release is live.

Thanks for your feedback!

@andyjohansson
Copy link

Hi @DanielMarklund, could you please test and verify if release 1.2.0 solved the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants