Updates cart UI elements, like the cart icon and side cart with the most recent cart data.
The refreshCart()
method returns a Promise that resolves when the latest cart data is retrieved and the cart UI elements are refreshed.
Call refreshCart()
after modifying a cart with the Cart or Current Cart APIs to trigger the onCartChange()
event and update UI elements.
This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.