diff --git a/src/backoffice/FmController.php b/src/backoffice/FmController.php index b406554..41c2cb2 100644 --- a/src/backoffice/FmController.php +++ b/src/backoffice/FmController.php @@ -18,7 +18,7 @@ public function __construct($fmPrestashop, $fmOutput, $fmConfig, $fmApiModel) $this->fmConfig = $fmConfig; $this->fmPrestashop = $fmPrestashop; $this->fmApiModel = $fmApiModel; - $importOrdersStatus = $this->fmConfig->get('import_orders_status'); + $importOrdersStatus = $this->fmConfig->get('disable_orders'); $path = $fmPrestashop->getModuleUrl(); $this->data = array( @@ -92,7 +92,7 @@ private function authenticate() } $this->fmConfig->set('username', $username); $this->fmConfig->set('api_token', $apiToken); - $this->fmConfig->set('import_orders_status', $importOrdersStatus); + $this->fmConfig->set('disable_orders', $importOrdersStatus); $base = $this->fmPrestashop->getBaseModuleUrl(); $pingToken = $this->fmPrestashop->toolsEncrypt(time()); $this->fmConfig->set('ping_token', $pingToken); diff --git a/src/backoffice/FmServiceController.php b/src/backoffice/FmServiceController.php index e38e842..d73917c 100644 --- a/src/backoffice/FmServiceController.php +++ b/src/backoffice/FmServiceController.php @@ -256,7 +256,7 @@ protected function getTime() */ private function importOrders() { - $importOrdersStatus = $this->fmConfig->get('import_orders_status'); + $importOrdersStatus = $this->fmConfig->get('disable_orders'); if ($importOrdersStatus == FmUtils::ORDERS_DISABLED) { return false; } diff --git a/src/backoffice/notification_service.php b/src/backoffice/notification_service.php index 5330ef9..7accf25 100644 --- a/src/backoffice/notification_service.php +++ b/src/backoffice/notification_service.php @@ -52,7 +52,7 @@ public function handleRequest($params) */ private function order_created($params) { - $importOrdersStatus = $this->fmConfig->get('import_orders_status'); + $importOrdersStatus = $this->fmConfig->get('disable_orders'); if ($importOrdersStatus == FmUtils::ORDERS_DISABLED) { return $this->getFyndiqOutput()->showError(403, 'Forbidden', 'Forbidden'); }