WC_Cart::reset PHP Method

reset() private method

Reset cart totals to the defaults. Useful before running calculations.
private reset ( boolean $unset_session = false )
$unset_session boolean If true, the session data will be forced unset.
    private function reset($unset_session = false)
    {
        foreach ($this->cart_session_data as $key => $default) {
            $this->{$key} = $default;
            if ($unset_session) {
                unset(WC()->session->{$key});
            }
        }
        do_action('woocommerce_cart_reset', $this, $unset_session);
    }
WC_Cart