Mailingwork_Sync - Version 1.0.3

Version Notes

Stable Extension Release

Download this release

Release Info

Developer mailingwork GmbH
Extension Mailingwork_Sync
Version 1.0.3
Comparing to
See all releases


Code changes from version 1.0.2 to 1.0.3

app/code/community/Mailingwork/Sync/Model/Observer.php CHANGED
@@ -39,8 +39,14 @@ class Mailingwork_Sync_Model_Observer
39
  if ($bChanged) {
40
  $subscriber = Mage::getModel('newsletter/subscriber')->loadByCustomer($customer);
41
  if (!empty($subscriber)) {
42
- $mwApi = new Mailingwork_Sync_Model_MwApi();
43
- $mwApi->updateRecipient($subscriber);
 
 
 
 
 
 
44
  }
45
  }
46
  }
@@ -64,8 +70,15 @@ class Mailingwork_Sync_Model_Observer
64
  if ($bChanged) {
65
  $subscriber = Mage::getModel('newsletter/subscriber')->loadByCustomer($customer);
66
  if (!empty($subscriber)) {
67
- $mwApi = new Mailingwork_Sync_Model_MwApi();
68
- $mwApi->updateRecipient($subscriber);
 
 
 
 
 
 
 
69
  }
70
  }
71
  }
@@ -81,8 +94,14 @@ class Mailingwork_Sync_Model_Observer
81
  $customer = Mage::getModel('customer/customer')->load($order->getCustomerId());
82
  $subscriber = Mage::getModel('newsletter/subscriber')->loadByCustomer($customer);
83
  if (!empty($subscriber)) {
84
- $mwApi = new Mailingwork_Sync_Model_MwApi();
85
- $mwApi->updateRecipient($subscriber);
 
 
 
 
 
 
86
  }
87
  }
88
 
39
  if ($bChanged) {
40
  $subscriber = Mage::getModel('newsletter/subscriber')->loadByCustomer($customer);
41
  if (!empty($subscriber)) {
42
+ try {
43
+ $mwApi = new Mailingwork_Sync_Model_MwApi();
44
+ $mwApi->updateRecipient($subscriber);
45
+ } catch (\Exception $e) {
46
+ //update error in mailingwork, catch error to nothing to have no problems in magento
47
+ $logger = new Mailingwork_Sync_Model_Logger();
48
+ $logger->log_error(__METHOD__ . 'StoreId: '.$helper->_getConfigScopeStoreId().' ' . $e->getMessage());
49
+ }
50
  }
51
  }
52
  }
70
  if ($bChanged) {
71
  $subscriber = Mage::getModel('newsletter/subscriber')->loadByCustomer($customer);
72
  if (!empty($subscriber)) {
73
+ try {
74
+ $mwApi = new Mailingwork_Sync_Model_MwApi();
75
+ $mwApi->updateRecipient($subscriber);
76
+ } catch (\Exception $e) {
77
+ //update error in mailingwork, catch error to nothing to have no problems in magento
78
+ $logger = new Mailingwork_Sync_Model_Logger();
79
+ $logger->log_error(__METHOD__ . 'StoreId: '.$helper->_getConfigScopeStoreId().' ' . $e->getMessage());
80
+ }
81
+
82
  }
83
  }
84
  }
94
  $customer = Mage::getModel('customer/customer')->load($order->getCustomerId());
95
  $subscriber = Mage::getModel('newsletter/subscriber')->loadByCustomer($customer);
96
  if (!empty($subscriber)) {
97
+ try {
98
+ $mwApi = new Mailingwork_Sync_Model_MwApi();
99
+ $mwApi->updateRecipient($subscriber);
100
+ } catch (\Exception $e) {
101
+ //update error in mailingwork, catch error to nothing to have no problems in magento
102
+ $logger = new Mailingwork_Sync_Model_Logger();
103
+ $logger->log_error(__METHOD__ . 'StoreId: '.$helper->_getConfigScopeStoreId().' ' . $e->getMessage());
104
+ }
105
  }
106
  }
107
 
app/code/community/Mailingwork/Sync/etc/config.xml CHANGED
@@ -22,7 +22,7 @@
22
  <config>
23
  <modules>
24
  <Mailingwork_Sync>
25
- <version>1.0.1</version>
26
  </Mailingwork_Sync>
27
  </modules>
28
 
22
  <config>
23
  <modules>
24
  <Mailingwork_Sync>
25
+ <version>1.0.3</version>
26
  </Mailingwork_Sync>
27
  </modules>
28
 
package.xml CHANGED
@@ -1,18 +1,18 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Mailingwork_Sync</name>
4
- <version>1.0.2</version>
5
  <stability>stable</stability>
6
  <license uri="https://opensource.org/licenses/OSL-3.0">OSL-3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>mailingwork E-Mailmarketing connection to Magento</summary>
10
  <description>Plugin to connect Magento with mailingwork to use mailingwork E-Mail marketing service</description>
11
- <notes>First Stable Extension Release</notes>
12
  <authors><author><name>mailingwork GmbH</name><user>mailingwork</user><email>magento@mailingwork.de</email></author></authors>
13
- <date>2016-09-23</date>
14
- <time>09:32:31</time>
15
- <contents><target name="magecommunity"><dir name="Mailingwork"><dir name="Sync"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Hint.php" hash="c9e21fbfabd0d410b687c947b9b0b7b6"/></dir><dir name="Form"><dir name="Field"><file name="Customermap.php" hash="6b88e691c02a9a6d3a9ce467b15b54b5"/></dir></dir><file name="Initialimport.php" hash="b9dbe022c8ac22f2c288feccfec4410a"/></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="caf4b1cb30a23e230fae5d36daaf7734"/></dir><dir name="Model"><file name="Abandonedcartcheckoutstatus.php" hash="a4ca964649271c2ff21eb8d53221fa20"/><dir name="Api"><file name="V2.php" hash="40cf1c4ac2889a5c6ca7dd82d6703192"/></dir><file name="Api.php" hash="2da24216de562cf3b910c6fe8f80f263"/><file name="InitialImport.php" hash="fb4170844dfd91bed10ad2b06c1516aa"/><file name="Logger.php" hash="be6b060fcfba407429733ae7f8907c45"/><file name="MwApi.php" hash="b0d1638d2b9a57867e13055fa0b860fa"/><file name="Observer.php" hash="0a2b250d44128c29e30292bee1a9fd47"/><dir name="Resource"><file name="Abandonedcartcheckoutstatus.php" hash="16d6b411928febdd580608d206aa4473"/><file name="Subscriber.php" hash="09e5ca2ddf30034fa6d24187fd5c8312"/></dir><file name="Subscriber.php" hash="19106dcf681a7e79d9fd6e33184f8658"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Lists.php" hash="4618675443c71dcde70bf74a0b2029f5"/><file name="Optinsetups.php" hash="364dad4012d766ca8b234dfc8ea58939"/><file name="Optoutsetups.php" hash="b93d169c55e1a54dc3640a9d02c673e4"/></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="InitialimportController.php" hash="f0ff66bb2a1e92825cfd92562ce28ddf"/></dir><file name="OnepageController.php" hash="ebba362f746e72a0b05180ee9cd4e346"/></dir><dir name="etc"><file name="api.xml" hash="8597a97d6160a5048483fd34f63650b8"/><file name="config.xml" hash="96b47b18663c1687c802f6b6b0a94707"/><file name="system.xml" hash="9d153db32f902f513db80514389b27cc"/><file name="wsdl.xml" hash="2cd1ececb061ba25e5e5579aff46d323"/></dir><dir name="sql"><dir name="mailingwork_sync_setup"><file name="install-1.0.1.php" hash="733c5e7f68a15a00b049e93df4226c12"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="mailingwork"><file name="customermap.phtml" hash="68230b8942d497d2ec55f3b2a3c36f22"/><file name="hint.phtml" hash="45ef33edd0e5e5b8a458b4f213a50924"/><file name="initialimport.phtml" hash="f6790aa1da6d12d5c2dc0400541d2ba6"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Mailingwork_Sync.xml" hash="d685fac8dd99b04f24a1b2ec52e83310"/></dir></target><target name="magelocale"><dir name="de_DE"><file name="Mailingwork_Sync.csv" hash="fb2ed931c1045784f313e8858a98f5e2"/></dir><dir name="en_US"><file name="Mailingwork_Sync.csv" hash="70a91df3fa881282c6b9da35802b3766"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.3.0</min><max>5.6.24</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Mailingwork_Sync</name>
4
+ <version>1.0.3</version>
5
  <stability>stable</stability>
6
  <license uri="https://opensource.org/licenses/OSL-3.0">OSL-3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>mailingwork E-Mailmarketing connection to Magento</summary>
10
  <description>Plugin to connect Magento with mailingwork to use mailingwork E-Mail marketing service</description>
11
+ <notes>Stable Extension Release</notes>
12
  <authors><author><name>mailingwork GmbH</name><user>mailingwork</user><email>magento@mailingwork.de</email></author></authors>
13
+ <date>2016-11-01</date>
14
+ <time>15:08:00</time>
15
+ <contents><target name="magecommunity"><dir name="Mailingwork"><dir name="Sync"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Hint.php" hash="c9e21fbfabd0d410b687c947b9b0b7b6"/></dir><dir name="Form"><dir name="Field"><file name="Customermap.php" hash="6b88e691c02a9a6d3a9ce467b15b54b5"/></dir></dir><file name="Initialimport.php" hash="b9dbe022c8ac22f2c288feccfec4410a"/></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="caf4b1cb30a23e230fae5d36daaf7734"/></dir><dir name="Model"><file name="Abandonedcartcheckoutstatus.php" hash="a4ca964649271c2ff21eb8d53221fa20"/><dir name="Api"><file name="V2.php" hash="40cf1c4ac2889a5c6ca7dd82d6703192"/></dir><file name="Api.php" hash="2da24216de562cf3b910c6fe8f80f263"/><file name="InitialImport.php" hash="fb4170844dfd91bed10ad2b06c1516aa"/><file name="Logger.php" hash="be6b060fcfba407429733ae7f8907c45"/><file name="MwApi.php" hash="b0d1638d2b9a57867e13055fa0b860fa"/><file name="Observer.php" hash="438ee96c5b5fae726d4f3ca60be1b8c9"/><dir name="Resource"><file name="Abandonedcartcheckoutstatus.php" hash="16d6b411928febdd580608d206aa4473"/><file name="Subscriber.php" hash="09e5ca2ddf30034fa6d24187fd5c8312"/></dir><file name="Subscriber.php" hash="19106dcf681a7e79d9fd6e33184f8658"/><dir name="System"><dir name="Config"><dir name="Source"><file name="Lists.php" hash="4618675443c71dcde70bf74a0b2029f5"/><file name="Optinsetups.php" hash="364dad4012d766ca8b234dfc8ea58939"/><file name="Optoutsetups.php" hash="b93d169c55e1a54dc3640a9d02c673e4"/></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="InitialimportController.php" hash="f0ff66bb2a1e92825cfd92562ce28ddf"/></dir><file name="OnepageController.php" hash="ebba362f746e72a0b05180ee9cd4e346"/></dir><dir name="etc"><file name="api.xml" hash="8597a97d6160a5048483fd34f63650b8"/><file name="config.xml" hash="3655222205ddb02b996ddb7bb8649529"/><file name="system.xml" hash="9d153db32f902f513db80514389b27cc"/><file name="wsdl.xml" hash="2cd1ececb061ba25e5e5579aff46d323"/></dir><dir name="sql"><dir name="mailingwork_sync_setup"><file name="install-1.0.1.php" hash="733c5e7f68a15a00b049e93df4226c12"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="mailingwork"><file name="customermap.phtml" hash="68230b8942d497d2ec55f3b2a3c36f22"/><file name="hint.phtml" hash="45ef33edd0e5e5b8a458b4f213a50924"/><file name="initialimport.phtml" hash="f6790aa1da6d12d5c2dc0400541d2ba6"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Mailingwork_Sync.xml" hash="d685fac8dd99b04f24a1b2ec52e83310"/></dir></target><target name="magelocale"><dir name="de_DE"><file name="Mailingwork_Sync.csv" hash="fb2ed931c1045784f313e8858a98f5e2"/></dir><dir name="en_US"><file name="Mailingwork_Sync.csv" hash="70a91df3fa881282c6b9da35802b3766"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.3.0</min><max>5.6.24</max></php></required></dependencies>
18
  </package>