-
Notifications
You must be signed in to change notification settings - Fork 358
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
how to reload checkout total? #1861
Comments
Hi @sunilit42, would you mind providing more context: which tax class are you removing from which entity? Thanks! |
Hi @sunilit42, currently we don't have a way for you to reload the checkout using js without a hard browser refresh. We are open to consider making checkout reload possible without a full browser refresh in a future release. |
|
Basically a way to trigger a state reload from outside checkout-js |
@bc-0dp can you please me how to do it? |
Well that's the thing, you can't. You'd have to move away from Optimized One Page Checkout and implement your logic into your own checkout-js fork. |
@bc-0dp i added packages/core/src/app/shipping/Shipping.tsx
|
Firstly, since it's async I believe you need |
Hello @bc-0dp
i want to first reload but it is just getting data |
I would have to dig more around to understand how it's implemented. |
One more thing i found i m using this API, to update tax but if i m passing same request it does not update total, even i remove tax class |
Thought I'd add a comment in here as I recently encountered a similar issue, not with tax but currency. We change the currency in checkout but there is no way to refresh the state of SDK so we were presented with the mini cart showing the original currency and a message saying we will be charged in the new currency. It would be great if we could own the state and then refresh this as required. I managed to get around this by reloading the checkout with the new currency id in the query param (setCurrencyId). |
Hello,
My client want to to remove tax class based on customer field, i already implement but not i want to reload the checkout total without pageload.
Is there any way to possible to reload total using js code?
The text was updated successfully, but these errors were encountered: