I want to be able to clear the cart. I use the cart token to create checkout objects which I forward to a custom checkout Flow. However, doing so doesn’t seem to generate a new cart token like how Shopify’s native checkout would do. It also doesn’t clear it out leaving my repeat customers to have items stacked in.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| How do I clear the cart after an order is successful (I am creating using Storefront API)? | 4 | 71 | March 10, 2020 | |
| Clearing the Cart After a Successful Order in Shopify Hydrogen | 5 | 50 | September 21, 2023 | |
| Using the Storefront API, how do you populate the cart_token field when creating the checkout? | 4 | 17 | November 22, 2019 | |
| Don't clear the entire cart after paying a draft order invoice | 2 | 12 | February 22, 2021 | |
| How to get "cart_token" when creating cart through Storefront API? | 2 | 104 | July 28, 2020 |