public function removeAll()
    {
        $this->_positions = [];
        $this->trigger(self::EVENT_CART_CHANGE, new CartActionEvent([
            'action' => CartActionEvent::ACTION_REMOVE_ALL,
        ]));
        if ($this->storeInSession)
            $this->saveToSession();
    }
public function removeAll()
    {
        $this->_positions = [];
        $this->trigger(self::EVENT_CART_CHANGE, new CartActionEvent([
            'action' => CartActionEvent::ACTION_REMOVE_ALL,
        ]));
        if ($this->storeInSession)
            $this->saveToSession();
    }
public function removeAll ( ) { $ this -> _positions = [ ] ; $ this -> trigger ( self :: EVENT_CART_CHANGE , new CartActionEvent ( [ 'action' => CartActionEvent :: ACTION_REMOVE_ALL , ] ) ) ; if ( $ this -> storeInSession ) $ this -> saveToSession ( ) ; }
Remove all positions
Remove all positions