From ddab51fb2c40b0c5774c786a3b2f5791bd3784b9 Mon Sep 17 00:00:00 2001 From: FoulBachelor Date: Tue, 4 Oct 2022 11:24:00 +0200 Subject: [PATCH] added sync subscribers to set/get config --- code/controllers/ApiController.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/code/controllers/ApiController.php b/code/controllers/ApiController.php index d9b911a..15fd4e9 100644 --- a/code/controllers/ApiController.php +++ b/code/controllers/ApiController.php @@ -163,6 +163,8 @@ public function getconfigAction() 'PRODUCT_SYNCHRONIZATION_IMAGE_WIDTH' => Mage::helper('clerk')->getSetting('clerk/general/image_w'), 'PRODUCT_SYNCHRONIZATION_IMAGE_HEIGHT' => Mage::helper('clerk')->getSetting('clerk/general/image_h'), 'PRODUCT_SYNCHRONIZATION_IMPORT_URL' => Mage::helper('clerk')->getSetting('clerk/general/url'), + 'SUBSCRIBER_SYNCHRONIZATION_ENABLED' => Mage::helper('clerk')->getSetting('clerk/general/collect_subscribers'), + 'SEARCH_ENABLED' => Mage::helper('clerk')->getSetting('clerk/search/active'), 'SEARCH_INCLUDE_CATEGORIES' => Mage::helper('clerk')->getSetting('clerk/search/show_categories'), @@ -267,6 +269,12 @@ public function setconfigAction() Mage::getConfig()->saveConfig($path, $value, 'stores', $storeid); $count++; } + if ($key == "SUBSCRIBER_SYNCHRONIZATION_ENABLED"){ + $path = 'clerk/general/collect_subscribers'; + Mage::getConfig()->saveConfig($path, $value, 'stores', $storeid); + $count++; + } + if ($key == "PAGES_ADDITIONAL_FIELDS"){ $path = 'clerk/general/pages_additional_fields'; Mage::getConfig()->saveConfig($path, $value, 'stores', $storeid);