/** * Action removeProduct * * @return void */ public function removeProductAction() { if ($this->request->hasArgument('product')) { $this->cart = $this->sessionHandler->restoreFromSession($this->settings['cart']['pid']); $this->cart->removeProductById($this->request->getArgument('product')); $this->updateService(); $this->sessionHandler->writeToSession($this->cart, $this->settings['cart']['pid']); } $this->redirect('showCart'); }