Clear Cart

The clear_cart tag empties all items, coupon codes, and shipping codes from the cart. Use this to completely reset the cart at any time, or after a purchase has been made.

Table of Contents

Parameters

return

This is the URL you'd like the site redirected to when the operation is complete. If left blank, the page will not redirect.

return="cart/home"
clear_customer_info

Clears all customer info from the session. Items like customer location, city, state, etc, will all be erased.

clear_customer_info="yes"

Example

{exp:cartthrob:clear_cart return="cart/home" }