refreshCart( )


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.

Method Declaration
Copy
Request
This method does not take any parameters
Did this help?