public function destroy() { $this->_cart_contents = array('cart_total' => 0, 'total_items' => 0); $this->CI->session->unset_userdata('cart_contents'); }
public function destroy() { // Run the standard CI_Cart function parent::destroy(); // Fire an event to tell external modules that the cart has been destroyed Events::trigger('cart_destroyed'); }