Contiamo_Connector - Version 1.0.2

Version Notes

notes

Download this release

Release Info

Developer Chris Baynes
Extension Contiamo_Connector
Version 1.0.2
Comparing to
See all releases


Code changes from version 1.0.1 to 1.0.2

app/code/community/Contiamo/Connector/Model/Export/Customer.php CHANGED
@@ -24,7 +24,25 @@ class Contiamo_Connector_Model_Export_Customer
24
 
25
  case 'newsletter_subscribed':
26
  $subscriber = Mage::getModel('newsletter/subscriber')->loadByEmail($this->customer->getEmail());
27
- return Mage_Newsletter_Model_Subscriber::STATUS_SUBSCRIBED == $subscriber->getSubscriberStatus();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
28
 
29
  default:
30
  return $this->customer->getData($field);
24
 
25
  case 'newsletter_subscribed':
26
  $subscriber = Mage::getModel('newsletter/subscriber')->loadByEmail($this->customer->getEmail());
27
+
28
+ // Use the same mapping used in the Newsletter/Subscriber/Grid
29
+ switch ($subscriber->getStatus()) {
30
+ case Mage_Newsletter_Model_Subscriber::STATUS_NOT_ACTIVE:
31
+ return Mage::helper('newsletter')->__('Not Activated');
32
+
33
+ case Mage_Newsletter_Model_Subscriber::STATUS_SUBSCRIBED:
34
+ return Mage::helper('newsletter')->__('Subscribed');
35
+
36
+ case Mage_Newsletter_Model_Subscriber::STATUS_UNSUBSCRIBED:
37
+ return Mage::helper('newsletter')->__('Unsubscribed');
38
+
39
+ case Mage_Newsletter_Model_Subscriber::STATUS_UNCONFIRMED:
40
+ return Mage::helper('newsletter')->__('Unconfirmed');
41
+
42
+ default:
43
+ // In any other case return a default
44
+ return 'Other';
45
+ }
46
 
47
  default:
48
  return $this->customer->getData($field);
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Contiamo_Connector</name>
4
- <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
@@ -10,9 +10,9 @@
10
  <description>Use Contiamo to analyze your sale trends and customer base.</description>
11
  <notes>notes</notes>
12
  <authors><author><name>Chris Baynes</name><user>contiamo</user><email>info@contiamo.com</email></author></authors>
13
- <date>2014-03-05</date>
14
- <time>09:23:04</time>
15
- <contents><target name="magecommunity"><dir name="Contiamo"><dir name="Connector"><dir name="Helper"><file name="Data.php" hash="83306c7ffef68bf0addcaf3b8592bfd4"/></dir><dir name="Model"><file name="Contiamo.php" hash="7ed0a780d45c090cdd5af6738830ac62"/><dir name="Export"><file name="Collection.php" hash="59cb561791bcd4024e48498c73dcc483"/><file name="Customer.php" hash="c79e27055c69d8dfd27ab6f6ab5c910e"/><file name="Customers.php" hash="afef917259e93ad62edcc773124f07a9"/><file name="Order.php" hash="d2d3a76fd5f261262b4b01910e8319d1"/><file name="OrderItem.php" hash="a5055e7d93e99e5e7479d0402e673a7a"/><file name="OrderItems.php" hash="196ee418e0d1243baf64c974e8f58a68"/><file name="OrderUpdates.php" hash="16d4922cbba9f085f4ea865c54d30638"/><file name="Orders.php" hash="7c10362af9fd17ace8c27577bc5add10"/><file name="Status.php" hash="9f2fb6a8241a071168dddf726c988878"/></dir><dir name="Resource"><dir name="Mysql4"><file name="Setup.php" hash="3d4b6ecfc461825f115eb6dc8ba3677f"/></dir></dir></dir><dir name="controllers"><file name="ExportController.php" hash="5515ecc47d6578975a15f71785e3d146"/></dir><dir name="etc"><file name="adminhtml.xml" hash="70f5bf8121d1a276e649b9b5fb4ac9cc"/><file name="config.xml" hash="a875fe5a3433c6535d8e7a0bdce8d944"/><file name="system.xml" hash="f1f8f4576c8510bcfdd5fe4dacf7ced5"/></dir><dir name="sql"><dir name="contiamo_setup"><file name="mysql4-install-0.0.1.php" hash="8b799197fe5d2567f1510b0777b137b1"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Contiamo_Connector.xml" hash="54eb6cba356dc238f94212376cbd86c1"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Contiamo_Connector</name>
4
+ <version>1.0.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
10
  <description>Use Contiamo to analyze your sale trends and customer base.</description>
11
  <notes>notes</notes>
12
  <authors><author><name>Chris Baynes</name><user>contiamo</user><email>info@contiamo.com</email></author></authors>
13
+ <date>2014-03-20</date>
14
+ <time>10:18:53</time>
15
+ <contents><target name="magecommunity"><dir name="Contiamo"><dir name="Connector"><dir name="Helper"><file name="Data.php" hash="83306c7ffef68bf0addcaf3b8592bfd4"/></dir><dir name="Model"><file name="Contiamo.php" hash="7ed0a780d45c090cdd5af6738830ac62"/><dir name="Export"><file name="Collection.php" hash="59cb561791bcd4024e48498c73dcc483"/><file name="Customer.php" hash="9b84c1f8b77975306fdce8075b0190ff"/><file name="Customers.php" hash="afef917259e93ad62edcc773124f07a9"/><file name="Order.php" hash="d2d3a76fd5f261262b4b01910e8319d1"/><file name="OrderItem.php" hash="a5055e7d93e99e5e7479d0402e673a7a"/><file name="OrderItems.php" hash="196ee418e0d1243baf64c974e8f58a68"/><file name="OrderUpdates.php" hash="16d4922cbba9f085f4ea865c54d30638"/><file name="Orders.php" hash="7c10362af9fd17ace8c27577bc5add10"/><file name="Status.php" hash="9f2fb6a8241a071168dddf726c988878"/></dir><dir name="Resource"><dir name="Mysql4"><file name="Setup.php" hash="3d4b6ecfc461825f115eb6dc8ba3677f"/></dir></dir></dir><dir name="controllers"><file name="ExportController.php" hash="5515ecc47d6578975a15f71785e3d146"/></dir><dir name="etc"><file name="adminhtml.xml" hash="70f5bf8121d1a276e649b9b5fb4ac9cc"/><file name="config.xml" hash="a875fe5a3433c6535d8e7a0bdce8d944"/><file name="system.xml" hash="f1f8f4576c8510bcfdd5fe4dacf7ced5"/></dir><dir name="sql"><dir name="contiamo_setup"><file name="mysql4-install-0.0.1.php" hash="8b799197fe5d2567f1510b0777b137b1"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Contiamo_Connector.xml" hash="54eb6cba356dc238f94212376cbd86c1"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>