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
Was this helpful?
Yes
No