-
Notifications
You must be signed in to change notification settings - Fork 215
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 re-render UI incheckout page when cart items change ,and not refresh checkout page #2695
Comments
I understand your question is about displaying newly added cart items without refreshing the page. It seems you might be interested in updating the checkout state to reflect these changes. Perhaps you could consider running the following function after modifying the cart:
|
Thanks guys! |
Are you using checkout-sdk's state? |
I ran the code in the console, but the checkout page was not updated after running, but the subscript was triggered. |
Just to clarify, maybe your situation is that you're using native checkout-js and would like it to display newly added items without a page refresh. If that's the case, our upcoming checkout-extension system would allow this functionality within native checkout-js. Currently, there isn't a way to achieve that without a page refresh. |
The native checkout-js is this, https://github.com/bigcommerce/checkout-js. Right now, you're looking at |
I see,some extention use reload function to reload.So if there have a document for checkout-extension, I have not saw it. |
We want to add products to cart in checkout page ,but every time we need refresh checkout page to render new items.So we want to not refresh page ,just refresh right products content
The text was updated successfully, but these errors were encountered: