| @@ 86-97 (lines=12) @@ | ||
| 83 | return $app->redirect($app->url('cart')); |
|
| 84 | } |
|
| 85 | ||
| 86 | public function up(Application $app, $productClassId) |
|
| 87 | { |
|
| 88 | $this->isTokenValid($app); |
|
| 89 | ||
| 90 | try { |
|
| 91 | $app['eccube.service.cart']->upProductQuantity($productClassId)->save(); |
|
| 92 | } catch (CartException $e) { |
|
| 93 | $app->addRequestError($e->getMessage()); |
|
| 94 | } |
|
| 95 | ||
| 96 | return $app->redirect($app->url('cart')); |
|
| 97 | } |
|
| 98 | ||
| 99 | public function down(Application $app, $productClassId) |
|
| 100 | { |
|
| @@ 99-110 (lines=12) @@ | ||
| 96 | return $app->redirect($app->url('cart')); |
|
| 97 | } |
|
| 98 | ||
| 99 | public function down(Application $app, $productClassId) |
|
| 100 | { |
|
| 101 | $this->isTokenValid($app); |
|
| 102 | ||
| 103 | try { |
|
| 104 | $app['eccube.service.cart']->downProductQuantity($productClassId)->save(); |
|
| 105 | } catch (CartException $e) { |
|
| 106 | $app->addRequestError($e->getMessage()); |
|
| 107 | } |
|
| 108 | ||
| 109 | return $app->redirect($app->url('cart')); |
|
| 110 | } |
|
| 111 | ||
| 112 | public function remove(Application $app, $productClassId) |
|
| 113 | { |
|