refreshCart( )


Updates cart UI elements, like the Cart Icon and Side Cart with the most recent cart data.

The refreshCart() function returns a Promise that resolves when the latest cart data is retrieved, and the cart UI elements are refreshed.

Note: Calling the refreshCart() function will trigger the onCartChange() event handler.

Method Declaration
Copy
Request
This method does not take any parameters
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?