cart/clear
Clears all items from cart
Clears all items from the shopping cart, effectively resetting the cart to an empty state. This action removes all line items, clears local cart data, and resets the cart for a fresh shopping experience.
Tapcart.action("cart/clear");
The action will:
- Remove all line items via Shopify's cart mutation
- Clear the cart data from local storage
- Reset cart state to empty defaults
- Log analytics events for cart clearing
Updated 9 days ago