Skip to content

Commit

Permalink
added sync subscribers to set/get config
Browse files Browse the repository at this point in the history
  • Loading branch information
FoulBachelor committed Oct 4, 2022
1 parent 664001f commit ddab51f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions code/controllers/ApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit ddab51f

Please sign in to comment.