예제 #1
0
 public function moveToWishList()
 {
     $item = $this->order->getItemByID($this->request->get('id'));
     $item->isSavedForLater->set(true);
     $this->order->mergeItems();
     $this->order->resetShipments();
     SessionOrder::save($this->order);
     $this->setMessage($this->makeText('_moved_to_wishlist', array($item->getProduct()->getName('name', $this->getRequestLanguage()))));
     return new ActionRedirectResponse('order', 'index', array('query' => 'return=' . $this->request->get('return')));
 }