Skip to content

Commit ddab51f

Browse files
author
FoulBachelor
committed
added sync subscribers to set/get config
1 parent 664001f commit ddab51f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

code/controllers/ApiController.php

+8
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ public function getconfigAction()
163163
'PRODUCT_SYNCHRONIZATION_IMAGE_WIDTH' => Mage::helper('clerk')->getSetting('clerk/general/image_w'),
164164
'PRODUCT_SYNCHRONIZATION_IMAGE_HEIGHT' => Mage::helper('clerk')->getSetting('clerk/general/image_h'),
165165
'PRODUCT_SYNCHRONIZATION_IMPORT_URL' => Mage::helper('clerk')->getSetting('clerk/general/url'),
166+
'SUBSCRIBER_SYNCHRONIZATION_ENABLED' => Mage::helper('clerk')->getSetting('clerk/general/collect_subscribers'),
167+
166168

167169
'SEARCH_ENABLED' => Mage::helper('clerk')->getSetting('clerk/search/active'),
168170
'SEARCH_INCLUDE_CATEGORIES' => Mage::helper('clerk')->getSetting('clerk/search/show_categories'),
@@ -267,6 +269,12 @@ public function setconfigAction()
267269
Mage::getConfig()->saveConfig($path, $value, 'stores', $storeid);
268270
$count++;
269271
}
272+
if ($key == "SUBSCRIBER_SYNCHRONIZATION_ENABLED"){
273+
$path = 'clerk/general/collect_subscribers';
274+
Mage::getConfig()->saveConfig($path, $value, 'stores', $storeid);
275+
$count++;
276+
}
277+
270278
if ($key == "PAGES_ADDITIONAL_FIELDS"){
271279
$path = 'clerk/general/pages_additional_fields';
272280
Mage::getConfig()->saveConfig($path, $value, 'stores', $storeid);

0 commit comments

Comments
 (0)