Creativestyle_Sare - Version 1.0.3

Version Notes

Smaller fixes

Download this release

Release Info

Developer creativestyle GmbH
Extension Creativestyle_Sare
Version 1.0.3
Comparing to
See all releases


Code changes from version 1.0.2 to 1.0.3

app/code/community/Creativestyle/Sare/Model/Observer.php CHANGED
@@ -76,7 +76,9 @@ class Creativestyle_Sare_Model_Observer{
76
 
77
  // Now we know we have customer already subscribed in SARE as well (we have valid mkey!)
78
  $customerData = Mage::getModel('creativestyle_sare/customer')->populateCustomerData($customer);
79
- Mage::getModel('creativestyle_sare/sare')->updateCustomerData($customer, $customerData, $sareSubscriberModel->getMkey());
 
 
80
  }
81
 
82
  public function updateCustomerData($observer, $customer = null){
@@ -108,7 +110,9 @@ class Creativestyle_Sare_Model_Observer{
108
  $customerData = Mage::getModel('creativestyle_sare/customer')->populateCustomerData($customer);
109
 
110
  // Update customer data at SARE side
111
- Mage::getModel('creativestyle_sare/sare')->updateCustomerData($customer, $customerData, $sareSubscriberModel->getMkey());
 
 
112
  }
113
 
114
  // This is ugly hack for getting into dashboard blocks
76
 
77
  // Now we know we have customer already subscribed in SARE as well (we have valid mkey!)
78
  $customerData = Mage::getModel('creativestyle_sare/customer')->populateCustomerData($customer);
79
+ if(is_object($sareSubscriberModel)&&$sareSubscriberModel->getMkey()!=''){
80
+ Mage::getModel('creativestyle_sare/sare')->updateCustomerData($customer, $customerData, $sareSubscriberModel->getMkey());
81
+ }
82
  }
83
 
84
  public function updateCustomerData($observer, $customer = null){
110
  $customerData = Mage::getModel('creativestyle_sare/customer')->populateCustomerData($customer);
111
 
112
  // Update customer data at SARE side
113
+ if(is_object($sareSubscriberModel)&&$sareSubscriberModel->getMkey()!=''){
114
+ Mage::getModel('creativestyle_sare/sare')->updateCustomerData($customer, $customerData, $sareSubscriberModel->getMkey());
115
+ }
116
  }
117
 
118
  // This is ugly hack for getting into dashboard blocks
app/code/community/Creativestyle/Sare/Model/Sare.php CHANGED
@@ -13,7 +13,7 @@ class Creativestyle_Sare_Model_Sare{
13
  const SARE_API_UPDATE_METHOD = 'upd.php';
14
 
15
  const SETTINGS_KEY_CUSTOMER = 'customer';
16
- const SETTINGS_KEY_GUEST = 'customer';
17
 
18
 
19
  private function validateSettings(){
13
  const SARE_API_UPDATE_METHOD = 'upd.php';
14
 
15
  const SETTINGS_KEY_CUSTOMER = 'customer';
16
+ const SETTINGS_KEY_GUEST = 'guest';
17
 
18
 
19
  private function validateSettings(){
app/code/community/Creativestyle/Sare/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Creativestyle_Sare>
5
- <version>1.0.2</version>
6
  </Creativestyle_Sare>
7
  </modules>
8
  <global>
2
  <config>
3
  <modules>
4
  <Creativestyle_Sare>
5
+ <version>1.0.3</version>
6
  </Creativestyle_Sare>
7
  </modules>
8
  <global>
app/etc/modules/Creativestyle_Sare.xml DELETED
@@ -1,12 +0,0 @@
1
- <?xml version="1.0"?>
2
- <config>
3
- <modules>
4
- <Creativestyle_Sare>
5
- <active>true</active>
6
- <codePool>community</codePool>
7
- <depends>
8
- <Mage_Newsletter></Mage_Newsletter>
9
- </depends>
10
- </Creativestyle_Sare>
11
- </modules>
12
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Creativestyle_Sare</name>
4
- <version>1.0.2</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
@@ -16,11 +16,11 @@ Quick integration&#xD;
16
  &#xD;
17
  All you need to do is input your UID and integration key to get you going. If you don't have SARE account yet, you can request free test account here.&#xD;
18
  </description>
19
- <notes>Initial upload</notes>
20
  <authors><author><name>creativestyle</name><user>creativestyle</user><email>j.fojcik@creativestyle.de</email></author></authors>
21
- <date>2014-01-07</date>
22
- <time>14:12:50</time>
23
- <contents><target name="magecommunity"><dir name="Creativestyle"><dir name="Sare"><dir name="Block"><file name="Abandonedcartitems.php" hash="83487729dcf5c7a0b7494ffc292f2d2f"/><dir name="Adminhtml"><file name="Abandonedcarts.php" hash="0bf7dda7546d406e29641d9f5ce9e6bb"/><dir name="Dashboard"><dir name="Grids"><file name="Subscribers.php" hash="e42658f87a3717ae78614a243c753840"/></dir><file name="Grids.php" hash="78b4e891c7e5318da8c121fe2f2621ab"/></dir><file name="Dashboard.php" hash="c355901f132e1bc4d431dddf3fb99f40"/><file name="Infoblock.php" hash="4cd3f11b74fc15a264ce0e8786407407"/><file name="Targetinginfoblock.php" hash="633015040b14dd676a698e24b3203a60"/></dir></dir><dir name="Helper"><file name="Data.php" hash="506157571e7967170afc453191278967"/></dir><dir name="Model"><dir name="AdminNotification"><file name="Feed.php" hash="9423fdeab9dcc1c3705247b171fd8b1e"/></dir><file name="Customer.php" hash="63f5ae8bc922398d4af9c8c3c29a3147"/><file name="Email.php" hash="e41ea542e84dcc7a716d3c181b232de4"/><dir name="Mysql4"><dir name="Email"><file name="Collection.php" hash="12055539f8a029a3687542d2d64634a3"/></dir><file name="Email.php" hash="e4dd51f3c7ae1995df0881aadcf90bbe"/></dir><file name="Observer.php" hash="e7069b428307a068301ccd4580902460"/><file name="Response.php" hash="385c859dd7b6e7a0a10ce06bfdf7cbc1"/><file name="Sare.php" hash="68818eb916dfa0c5e0bbd9b74df9372d"/><file name="Status.php" hash="d3682a21418ae267e0ae8a36120d0887"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="IndexController.php" hash="26b9ff09fa39121d444c5449d76120fd"/></dir><file name="IndexController.php" hash="dcba6f8588b05aabd057d172cfd1b248"/></dir><dir name="etc"><file name="adminhtml.xml" hash="adbe7e50c1bf01d10047faf3e345de6c"/><file name="config.xml" hash="c5bc9a2e62b30cdc31343e08782e5018"/><dir name="sarescripts"><file name="fetchAbandonedCartsUsers.txt" hash="7a2029e493483f9f6e70bb3cbc605e09"/></dir><file name="system.xml" hash="aa4ed6a653ed6390a1b0c04b3f03bb39"/></dir><dir name="sql"><dir name="creativestyle_sare_setup"><file name="mysql4-install-0.1.0.php" hash="dc814e259cb60b8072f3baa1cc227469"/><file name="mysql4-upgrade-1.0.0-1.0.1.php" hash="2000893748f23030478fd3bd098ad0e6"/></dir></dir></dir></dir></target><target name="magelocale"><dir name="pl_PL"><file name="sare.csv" hash="5f959f4a1867e48f74a9d944e749c5e3"/></dir></target><target name="mage"><dir name="js"><dir name="sare"><file name="jquery-1.10.2.min.js" hash="6ac17d34088a77cc8ddd528f7ac21fa3"/><file name="synchro.js" hash="14f1fabe5837876e5ff332fd959abdfa"/></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="base"><dir name="default"><dir name="css"><file name="sare.css" hash="311b016a99ba725c90b94fbfdc5a0bc9"/></dir></dir></dir><dir name="default"><dir name="default"><dir name="images"><dir name="sare"><file name="icon_add.png" hash="cdd116fa6d274e27810134c878b4bc55"/><file name="icon_info.png" hash="43bfbec584cffa85e0406f2308dad69b"/><file name="icon_remove.png" hash="7d7f814263c715b2ee3751e2c6d371f0"/><file name="icon_success.png" hash="74f7903b97f4dd3c86095b773fdef881"/><file name="icon_user.png" hash="889b240dc8b07e9e472de32af8edd590"/><file name="sare-baner.jpg" hash="22df2d8d0643f1c373719af8c9017aa8"/><file name="sare.png" hash="2aa48c65176945f07081286e29fb59ea"/><file name="transfer.png" hash="79d7f2feb92e7e328ba3a9327ad53008"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Creativestyle_Sare.xml" hash="dae4e0ec266fbfa1e47bfb8f0e8f979e"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="sare.xml" hash="5e1897f07cb0d9feb8289484a73084a4"/></dir><dir name="template"><dir name="sare"><file name="abandonedcarts.phtml" hash="3e9c27bc4a6ad18dd00e6e7855bb63a0"/><file name="dashboard.phtml" hash="87d6116adf51619e0a2983ffe0753794"/><file name="infoblock.phtml" hash="77718956aa3a0810461f87d0f1e45aff"/><file name="targeting.phtml" hash="8c198eab64740d4da769c18f8153bfcb"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="sare"><file name="abandonedcarts.phtml" hash="3ea4700e6f348507ae1d2adfb84fa527"/><file name="problemnotification.phtml" hash="63e1a698ccc4644fae4a80e4a0b91ac2"/></dir></dir></dir></dir></dir></target></contents>
24
  <compatible/>
25
  <dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
26
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Creativestyle_Sare</name>
4
+ <version>1.0.3</version>
5
  <stability>stable</stability>
6
  <license>GPL</license>
7
  <channel>community</channel>
16
  &#xD;
17
  All you need to do is input your UID and integration key to get you going. If you don't have SARE account yet, you can request free test account here.&#xD;
18
  </description>
19
+ <notes>Smaller fixes</notes>
20
  <authors><author><name>creativestyle</name><user>creativestyle</user><email>j.fojcik@creativestyle.de</email></author></authors>
21
+ <date>2014-03-08</date>
22
+ <time>21:39:43</time>
23
+ <contents><target name="magecommunity"><dir name="Creativestyle"><dir name="Sare"><dir name="Block"><file name="Abandonedcartitems.php" hash="83487729dcf5c7a0b7494ffc292f2d2f"/><dir name="Adminhtml"><file name="Abandonedcarts.php" hash="0bf7dda7546d406e29641d9f5ce9e6bb"/><dir name="Dashboard"><dir name="Grids"><file name="Subscribers.php" hash="e42658f87a3717ae78614a243c753840"/></dir><file name="Grids.php" hash="78b4e891c7e5318da8c121fe2f2621ab"/></dir><file name="Dashboard.php" hash="c355901f132e1bc4d431dddf3fb99f40"/><file name="Infoblock.php" hash="4cd3f11b74fc15a264ce0e8786407407"/><file name="Targetinginfoblock.php" hash="633015040b14dd676a698e24b3203a60"/></dir></dir><dir name="Helper"><file name="Data.php" hash="506157571e7967170afc453191278967"/></dir><dir name="Model"><dir name="AdminNotification"><file name="Feed.php" hash="9423fdeab9dcc1c3705247b171fd8b1e"/></dir><file name="Customer.php" hash="63f5ae8bc922398d4af9c8c3c29a3147"/><file name="Email.php" hash="e41ea542e84dcc7a716d3c181b232de4"/><dir name="Mysql4"><dir name="Email"><file name="Collection.php" hash="12055539f8a029a3687542d2d64634a3"/></dir><file name="Email.php" hash="e4dd51f3c7ae1995df0881aadcf90bbe"/></dir><file name="Observer.php" hash="ef36f9807ecec79678cb4086d87b794a"/><file name="Response.php" hash="385c859dd7b6e7a0a10ce06bfdf7cbc1"/><file name="Sare.php" hash="2e3a87eb0b01fbb4e596c35baed873e0"/><file name="Status.php" hash="d3682a21418ae267e0ae8a36120d0887"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="IndexController.php" hash="26b9ff09fa39121d444c5449d76120fd"/></dir><file name="IndexController.php" hash="dcba6f8588b05aabd057d172cfd1b248"/></dir><dir name="etc"><file name="adminhtml.xml" hash="adbe7e50c1bf01d10047faf3e345de6c"/><file name="config.xml" hash="8bb60de0cc3a86d8abe891f00353942a"/><dir name="sarescripts"><file name="fetchAbandonedCartsUsers.txt" hash="7a2029e493483f9f6e70bb3cbc605e09"/></dir><file name="system.xml" hash="aa4ed6a653ed6390a1b0c04b3f03bb39"/></dir><dir name="sql"><dir name="creativestyle_sare_setup"><file name="mysql4-install-0.1.0.php" hash="dc814e259cb60b8072f3baa1cc227469"/><file name="mysql4-upgrade-1.0.0-1.0.1.php" hash="2000893748f23030478fd3bd098ad0e6"/></dir></dir></dir></dir></target><target name="magelocale"><dir name="pl_PL"><file name="sare.csv" hash="5f959f4a1867e48f74a9d944e749c5e3"/></dir></target><target name="mage"><dir name="js"><dir name="sare"><file name="jquery-1.10.2.min.js" hash="6ac17d34088a77cc8ddd528f7ac21fa3"/><file name="synchro.js" hash="14f1fabe5837876e5ff332fd959abdfa"/></dir></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="base"><dir name="default"><dir name="css"><file name="sare.css" hash="311b016a99ba725c90b94fbfdc5a0bc9"/></dir></dir></dir><dir name="default"><dir name="default"><dir name="images"><dir name="sare"><file name="icon_add.png" hash="cdd116fa6d274e27810134c878b4bc55"/><file name="icon_info.png" hash="43bfbec584cffa85e0406f2308dad69b"/><file name="icon_remove.png" hash="7d7f814263c715b2ee3751e2c6d371f0"/><file name="icon_success.png" hash="74f7903b97f4dd3c86095b773fdef881"/><file name="icon_user.png" hash="889b240dc8b07e9e472de32af8edd590"/><file name="sare-baner.jpg" hash="22df2d8d0643f1c373719af8c9017aa8"/><file name="sare.png" hash="2aa48c65176945f07081286e29fb59ea"/><file name="transfer.png" hash="79d7f2feb92e7e328ba3a9327ad53008"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Creativestyle_Sare.xml" hash=""/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="sare.xml" hash="5e1897f07cb0d9feb8289484a73084a4"/></dir><dir name="template"><dir name="sare"><file name="abandonedcarts.phtml" hash="3e9c27bc4a6ad18dd00e6e7855bb63a0"/><file name="dashboard.phtml" hash="87d6116adf51619e0a2983ffe0753794"/><file name="infoblock.phtml" hash="77718956aa3a0810461f87d0f1e45aff"/><file name="targeting.phtml" hash="8c198eab64740d4da769c18f8153bfcb"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="template"><dir name="sare"><file name="abandonedcarts.phtml" hash="3ea4700e6f348507ae1d2adfb84fa527"/><file name="problemnotification.phtml" hash="63e1a698ccc4644fae4a80e4a0b91ac2"/></dir></dir></dir></dir></dir></target></contents>
24
  <compatible/>
25
  <dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
26
  </package>