| @@ 80-96 (lines=17) @@ | ||
| 77 | * connect module. The function is used to save store data. |
|
| 78 | * @return string |
|
| 79 | */ |
|
| 80 | public function saveGeneralAction() |
|
| 81 | { |
|
| 82 | try { |
|
| 83 | $data = $this->Request()->getParam('data'); |
|
| 84 | unset($data['id']); |
|
| 85 | $this->getConfigComponent()->setGeneralConfigs($data); |
|
| 86 | ||
| 87 | $this->View()->assign([ |
|
| 88 | 'success' => true |
|
| 89 | ]); |
|
| 90 | } catch (\Exception $e) { |
|
| 91 | $this->View()->assign([ |
|
| 92 | 'success' => false, |
|
| 93 | 'message' => $e->getMessage() |
|
| 94 | ]); |
|
| 95 | } |
|
| 96 | } |
|
| 97 | ||
| 98 | public function changeLoggingAction() |
|
| 99 | { |
|
| @@ 397-416 (lines=20) @@ | ||
| 394 | ]); |
|
| 395 | } |
|
| 396 | ||
| 397 | public function activateArticlesAction() |
|
| 398 | { |
|
| 399 | $articleIds = $this->request->getParam('ids', 0); |
|
| 400 | ||
| 401 | try { |
|
| 402 | $this->getImportService()->activateArticles($articleIds); |
|
| 403 | } catch (\Exception $e) { |
|
| 404 | $this->getLogger()->write(true, $e->getMessage(), $e); |
|
| 405 | $this->View()->assign([ |
|
| 406 | 'success' => false, |
|
| 407 | 'error' => 'There is a problem with products activation!', |
|
| 408 | ]); |
|
| 409 | ||
| 410 | return; |
|
| 411 | } |
|
| 412 | ||
| 413 | $this->View()->assign([ |
|
| 414 | 'success' => true, |
|
| 415 | ]); |
|
| 416 | } |
|
| 417 | ||
| 418 | /** |
|
| 419 | * Deactivates connect categories |
|