Sarbacane_Mailify - Version 1.0.0.9

Version Notes

We improved performance on synchronization.
It should be more efficient and nearly instant on most websites.

Download this release

Release Info

Developer Sarbacane Software
Extension Sarbacane_Mailify
Version 1.0.0.9
Comparing to
See all releases


Code changes from version 1.0.0.8 to 1.0.0.9

app/code/community/Sarbacane/Mailify/controllers/Adminhtml/MailifyController.php CHANGED
@@ -100,19 +100,20 @@ class Sarbacane_Mailify_Adminhtml_MailifyController extends Mage_Adminhtml_Contr
100
  private function saveListConfiguration()
101
  {
102
  $shops = '';
 
103
  if (Mage::app()->getRequest()->getParam('store_id')) {
104
  $stores_id = Mage::app()->getRequest()->getParam('store_id');
105
- if (is_array($stores_id)) {
106
- $sd_list_array = Mage::helper('mailify')->getListConfiguration('array');
107
- foreach ($sd_list_array as $sd_list) {
108
- if ( ! in_array($sd_list, $stores_id)) {
109
- $store_id = Mage::helper('mailify')->getIdShopFromList($sd_list);
110
- $list_type = Mage::helper('mailify')->getListTypeFromList($sd_list);
111
- $this->deleteListData($list_type, $store_id);
112
- }
113
  }
114
- $shops = implode(',', $stores_id);
115
  }
 
116
  }
117
  Mage::helper('mailify')->updateConfiguration('sd_list', $shops);
118
  }
100
  private function saveListConfiguration()
101
  {
102
  $shops = '';
103
+ $stores_id = array();
104
  if (Mage::app()->getRequest()->getParam('store_id')) {
105
  $stores_id = Mage::app()->getRequest()->getParam('store_id');
106
+ }
107
+ if (is_array($stores_id)) {
108
+ $sd_list_array = Mage::helper('mailify')->getListConfiguration('array');
109
+ foreach ($sd_list_array as $sd_list) {
110
+ if ( ! in_array($sd_list, $stores_id)) {
111
+ $store_id = Mage::helper('mailify')->getIdShopFromList($sd_list);
112
+ $list_type = Mage::helper('mailify')->getListTypeFromList($sd_list);
113
+ $this->deleteListData($list_type, $store_id);
114
  }
 
115
  }
116
+ $shops = implode(',', $stores_id);
117
  }
118
  Mage::helper('mailify')->updateConfiguration('sd_list', $shops);
119
  }
app/code/community/Sarbacane/Mailify/controllers/IndexController.php CHANGED
@@ -30,9 +30,9 @@ class Sarbacane_Mailify_IndexController extends Mage_Core_Controller_Front_Actio
30
  if ($sdid != '' && Mage::helper('mailify')->getConfiguration('nb_configured') == 3) {
31
  header('Content-type: text/plain; charset=utf-8');
32
  $configuration = Mage::helper('mailify')->getConfiguration('all');
33
- if ($configuration['sd_token'] != '' && $configuration['sd_list'] != '' && $configuration['sd_is_user'] != '') {
34
  $sd_list_array = Mage::helper('mailify')->getListConfiguration('array');
35
- if (is_array($sd_list_array) && count($sd_list_array) > 0) {
36
  if (Mage::app()->getRequest()->getParam('list')) {
37
  $list = Mage::app()->getRequest()->getParam('list');
38
  $store_id = Mage::helper('mailify')->getIdShopFromList($list);
30
  if ($sdid != '' && Mage::helper('mailify')->getConfiguration('nb_configured') == 3) {
31
  header('Content-type: text/plain; charset=utf-8');
32
  $configuration = Mage::helper('mailify')->getConfiguration('all');
33
+ if ($configuration['sd_token'] != '' && $configuration['sd_is_user'] != '') {
34
  $sd_list_array = Mage::helper('mailify')->getListConfiguration('array');
35
+ if (is_array($sd_list_array)) {
36
  if (Mage::app()->getRequest()->getParam('list')) {
37
  $list = Mage::app()->getRequest()->getParam('list');
38
  $store_id = Mage::helper('mailify')->getIdShopFromList($list);
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Sarbacane_Mailify</name>
4
- <version>1.0.0.8</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/academic.php">AFL</license>
7
  <channel>community</channel>
@@ -64,9 +64,9 @@
64
  <notes>We improved performance on synchronization.&#xD;
65
  It should be more efficient and nearly instant on most websites.</notes>
66
  <authors><author><name>Sarbacane Software</name><user>sarbacane</user><email>connectors@sarbacane.com</email></author></authors>
67
- <date>2017-06-19</date>
68
- <time>13:14:00</time>
69
- <contents><target name="magecommunity"><dir name="Sarbacane"><dir name="Mailify"><dir name="Block"><dir name="Adminhtml"><file name="Mailify.php" hash="7499b4060c7f5fd5f45071a009140028"/></dir></dir><dir name="Helper"><file name="Data.php" hash="0ea9d66bc8fea25b4ae9416979aec1a1"/></dir><dir name="Model"><file name="Observer.php" hash="b1bd3dd3691a1f0ba54753eb1557de80"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="MailifyController.php" hash="bfe36f93020a0a4b187aa6cf7d1a5f07"/></dir><file name="IndexController.php" hash="8b1cc64c8b8e31377a864395f86f721e"/></dir><dir name="etc"><file name="config.xml" hash="2155e0eb71236a27d3681a761b6950be"/></dir><dir name="sql"><dir name="mailify_setup"><file name="mysql4-upgrade-1.0.0.7-1.0.0.8.php" hash="7532046acb50f9c3a44017fa431241bf"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><file name="mailify.css" hash="400ef58717993c05cac2b9d0f2d2b1dd"/><dir name="images"><file name="mailify.png" hash="2038d3c503e8f59d14177a131bef7537"/></dir><file name="mailify.js" hash="5a93eb4e4adf929a184e6db15eb6cd5f"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="mailify.xml" hash="2af03cc6e166f75310dfa5652a2f8e5e"/></dir><dir name="template"><dir name="mailify"><file name="mailify.phtml" hash="dffe12ecd656d8e72c1790e1b682edaf"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Sarbacane_Mailify.xml" hash="544c3cadb5b2f404e51c80975beea392"/></dir></target><target name="magelocale"><dir name="es_ES"><file name="Sarbacane_Mailify.csv" hash="fcb2b869f1d2edac99fd57150d400701"/></dir><dir name="en_US"><file name="Sarbacane_Mailify.csv" hash="b915fbd09772c5cbb765b514b3891180"/></dir><dir name="de_DE"><file name="Sarbacane_Mailify.csv" hash="addfb3ceb1f5e9572d35de240b45454a"/></dir></target></contents>
70
  <compatible/>
71
  <dependencies><required><php><min>5.0.0</min><max>8.0.0</max></php></required></dependencies>
72
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Sarbacane_Mailify</name>
4
+ <version>1.0.0.9</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/academic.php">AFL</license>
7
  <channel>community</channel>
64
  <notes>We improved performance on synchronization.&#xD;
65
  It should be more efficient and nearly instant on most websites.</notes>
66
  <authors><author><name>Sarbacane Software</name><user>sarbacane</user><email>connectors@sarbacane.com</email></author></authors>
67
+ <date>2017-06-28</date>
68
+ <time>14:20:07</time>
69
+ <contents><target name="magecommunity"><dir name="Sarbacane"><dir name="Mailify"><dir name="Block"><dir name="Adminhtml"><file name="Mailify.php" hash="7499b4060c7f5fd5f45071a009140028"/></dir></dir><dir name="Helper"><file name="Data.php" hash="0ea9d66bc8fea25b4ae9416979aec1a1"/></dir><dir name="Model"><file name="Observer.php" hash="b1bd3dd3691a1f0ba54753eb1557de80"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="MailifyController.php" hash="366481e199d11a39b9ce0b9a002f79b8"/></dir><file name="IndexController.php" hash="663e5ad1a3708bbc1148221aad9c8ba8"/></dir><dir name="etc"><file name="config.xml" hash="2155e0eb71236a27d3681a761b6950be"/></dir><dir name="sql"><dir name="mailify_setup"><file name="mysql4-upgrade-1.0.0.7-1.0.0.8.php" hash="7532046acb50f9c3a44017fa431241bf"/></dir></dir></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><file name="mailify.css" hash="400ef58717993c05cac2b9d0f2d2b1dd"/><dir name="images"><file name="mailify.png" hash="2038d3c503e8f59d14177a131bef7537"/></dir><file name="mailify.js" hash="5a93eb4e4adf929a184e6db15eb6cd5f"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="mailify.xml" hash="2af03cc6e166f75310dfa5652a2f8e5e"/></dir><dir name="template"><dir name="mailify"><file name="mailify.phtml" hash="dffe12ecd656d8e72c1790e1b682edaf"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Sarbacane_Mailify.xml" hash="544c3cadb5b2f404e51c80975beea392"/></dir></target><target name="magelocale"><dir name="es_ES"><file name="Sarbacane_Mailify.csv" hash="fcb2b869f1d2edac99fd57150d400701"/></dir><dir name="en_US"><file name="Sarbacane_Mailify.csv" hash="b915fbd09772c5cbb765b514b3891180"/></dir><dir name="de_DE"><file name="Sarbacane_Mailify.csv" hash="addfb3ceb1f5e9572d35de240b45454a"/></dir></target></contents>
70
  <compatible/>
71
  <dependencies><required><php><min>5.0.0</min><max>8.0.0</max></php></required></dependencies>
72
  </package>