Campaignmonitor_Createsend - Version 1.0.1

Version Notes

Stable Release

Download this release

Release Info

Developer Campaign Monitor
Extension Campaignmonitor_Createsend
Version 1.0.1
Comparing to
See all releases


Code changes from version 1.0.0 to 1.0.1

app/code/community/Campaignmonitor/Createsend/Model/Api.php CHANGED
@@ -168,21 +168,26 @@ class Campaignmonitor_Createsend_Model_Api
168
 
169
  // If the version is above 1.6.0.0 it might be professional or enterprise.
170
  if (version_compare($version, '1.6.0.0', '>=')) {
171
- // Calculate whether the install has gift cards. if it doesn't, it's community.
172
- $hasGiftcards = Mage::getModel('enterprise_giftcard/giftcard');
173
 
174
- if ($hasGiftcards) {
175
- // Check whether the installation has the enterprise search observer. Only enterprise has this.
176
- $hasSolr = Mage::getModel('enterprise_search/observer');
177
-
178
- if ($hasSolr) {
179
- $edition = 'ee';
 
 
 
 
 
 
180
  } else {
181
- $edition = 'pe';
182
  }
183
- } else {
184
- $edition = 'ce';
185
  }
 
186
  }
187
 
188
  return sprintf('%s %s', $edition, $version);
168
 
169
  // If the version is above 1.6.0.0 it might be professional or enterprise.
170
  if (version_compare($version, '1.6.0.0', '>=')) {
 
 
171
 
172
+ try {
173
+ // Calculate whether the install has gift cards. if it doesn't, it's community.
174
+ $hasGiftcards = Mage::getModel('enterprise_giftcard/giftcard');
175
+ if ($hasGiftcards) {
176
+ // Check whether the installation has the enterprise search observer. Only enterprise has this.
177
+ $hasSolr = Mage::getModel('enterprise_search/observer');
178
+
179
+ if ($hasSolr) {
180
+ $edition = 'ee';
181
+ } else {
182
+ $edition = 'pe';
183
+ }
184
  } else {
185
+ $edition = 'ce';
186
  }
187
+ } catch(Exception $e){
188
+ Mage::logException($e);
189
  }
190
+
191
  }
192
 
193
  return sprintf('%s %s', $edition, $version);
app/code/community/Campaignmonitor/Createsend/Model/Customer/Observer.php CHANGED
@@ -313,12 +313,16 @@ class Campaignmonitor_Createsend_Model_Customer_Observer
313
  if (!empty($linkedAttributes)) {
314
  if ($customer->getId()) {
315
  $customerData = $customer->getData();
 
316
  } else {
317
  $customerData = array();
 
318
  }
319
  foreach ($linkedAttributes as $la) {
320
  $magentoAtt = $la['magento'];
321
  $cmAtt = $api->formatCustomFieldName($attrSource->getCustomFieldName($la['magento'], true));
 
 
322
 
323
  // try and translate IDs to names where possible
324
  if ($magentoAtt == 'group_id') {
@@ -343,7 +347,12 @@ class Campaignmonitor_Createsend_Model_Customer_Observer
343
  }
344
  }
345
  } elseif ($magentoAtt == 'gender') {
346
- $gender = $customer->getAttribute($magentoAtt)->getSource()->getOptionText($customerData[$magentoAtt]);
 
 
 
 
 
347
  $customFields[] = array("Key" => $cmAtt, "Value" => $gender);
348
  } elseif ($magentoAtt == 'confirmation') {
349
  // This attribute should have been named confirmation_key
@@ -443,6 +452,7 @@ class Campaignmonitor_Createsend_Model_Customer_Observer
443
  }
444
  } else {
445
  if (array_key_exists($magentoAtt, $customerData)) {
 
446
  $attribute = $customer->getAttribute($magentoAtt);
447
  if ($attribute->getFrontendInput() == 'select' || $attribute->getSourceModel()) {
448
  $label = $attribute->getSource()->getOptionText($customerData[$magentoAtt]);
313
  if (!empty($linkedAttributes)) {
314
  if ($customer->getId()) {
315
  $customerData = $customer->getData();
316
+ Mage::log("Customer exists " . print_r($customerData, true));
317
  } else {
318
  $customerData = array();
319
+ Mage::log("Customer doesn't exist ");
320
  }
321
  foreach ($linkedAttributes as $la) {
322
  $magentoAtt = $la['magento'];
323
  $cmAtt = $api->formatCustomFieldName($attrSource->getCustomFieldName($la['magento'], true));
324
+ Mage::log($cmAtt);
325
+
326
 
327
  // try and translate IDs to names where possible
328
  if ($magentoAtt == 'group_id') {
347
  }
348
  }
349
  } elseif ($magentoAtt == 'gender') {
350
+
351
+ $gender = "";
352
+ if (array_key_exists($gender, $customerData)){
353
+ $gender = $customer->getAttribute($magentoAtt)->getSource()->getOptionText($customerData[$magentoAtt]);
354
+ }
355
+
356
  $customFields[] = array("Key" => $cmAtt, "Value" => $gender);
357
  } elseif ($magentoAtt == 'confirmation') {
358
  // This attribute should have been named confirmation_key
452
  }
453
  } else {
454
  if (array_key_exists($magentoAtt, $customerData)) {
455
+
456
  $attribute = $customer->getAttribute($magentoAtt);
457
  if ($attribute->getFrontendInput() == 'select' || $attribute->getSourceModel()) {
458
  $label = $attribute->getSource()->getOptionText($customerData[$magentoAtt]);
app/code/community/Campaignmonitor/Createsend/etc/config.xml CHANGED
@@ -19,7 +19,7 @@
19
  <config>
20
  <modules>
21
  <Campaignmonitor_Createsend>
22
- <version>1.0.0</version>
23
  </Campaignmonitor_Createsend>
24
  </modules>
25
  <adminhtml>
19
  <config>
20
  <modules>
21
  <Campaignmonitor_Createsend>
22
+ <version>1.0.1</version>
23
  </Campaignmonitor_Createsend>
24
  </modules>
25
  <adminhtml>
app/code/community/Campaignmonitor/Createsend/sql/campaignmonitor_createsend_setup/install-1.0.0.php CHANGED
@@ -14,7 +14,13 @@
14
  * @copyright Copyright (c) 2015 Campaign Monitor (https://www.campaignmonitor.com/)
15
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
  */
17
-
 
 
 
 
 
 
18
  /** @var $this Mage_Core_Model_Resource_Setup */
19
  $this->startSetup();
20
  $connection = $this->getConnection();
14
  * @copyright Copyright (c) 2015 Campaign Monitor (https://www.campaignmonitor.com/)
15
  * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
  */
17
+ try {
18
+ // turn on extra customer fields
19
+ Mage::getConfig()->saveConfig('customer/address/dob_show', 'opt', 'default', 0);
20
+ Mage::getConfig()->saveConfig('customer/address/gender_show', 'opt', 'default', 0);
21
+ } catch (Exception $e){
22
+ Mage::log($e->getMessage());
23
+ }
24
  /** @var $this Mage_Core_Model_Resource_Setup */
25
  $this->startSetup();
26
  $connection = $this->getConnection();
app/code/community/Campaignmonitor/Createsend/sql/campaignmonitor_createsend_setup/install-1.0.1.php ADDED
@@ -0,0 +1,145 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Campaign Monitor Magento Extension
4
+ *
5
+ * NOTICE OF LICENSE
6
+ *
7
+ * This source file is subject to the Open Software License (OSL 3.0)
8
+ * that is available through the world-wide-web at this URL:
9
+ * http://opensource.org/licenses/osl-3.0.php
10
+ * If you are unable to obtain it through the world-wide-web, please
11
+ * send an email to license@magento.com and you will be sent a copy.
12
+ *
13
+ * @package Campaignmonitor_Createsend
14
+ * @copyright Copyright (c) 2015 Campaign Monitor (https://www.campaignmonitor.com/)
15
+ * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
+ */
17
+ try {
18
+ // turn on extra customer fields
19
+ Mage::getConfig()->saveConfig('customer/address/dob_show', 'opt', 'default', 0);
20
+ Mage::getConfig()->saveConfig('customer/address/gender_show', 'opt', 'default', 0);
21
+ } catch (Exception $e){
22
+ Mage::log($e->getMessage());
23
+ }
24
+ /** @var $this Mage_Core_Model_Resource_Setup */
25
+ $this->startSetup();
26
+ $connection = $this->getConnection();
27
+
28
+ $emailTableName = $this->getTable("createsend/email");
29
+
30
+ $emailTable = $connection->newTable($emailTableName)
31
+ ->addColumn('email_id',
32
+ Varien_Db_Ddl_Table::TYPE_INTEGER,
33
+ null,
34
+ array(
35
+ 'unsigned' => true,
36
+ 'nullable' => false,
37
+ 'primary' => true,
38
+ 'identity' => true,
39
+ ),
40
+ 'Email ID'
41
+ )
42
+ ->addColumn(
43
+ 'message_id',
44
+ Varien_Db_Ddl_Table::TYPE_VARCHAR,
45
+ 64,
46
+ array(
47
+ 'nullable' => false,
48
+ ),
49
+ 'Message ID'
50
+ )
51
+ ->addColumn(
52
+ 'status',
53
+ Varien_Db_Ddl_Table::TYPE_VARCHAR,
54
+ 64,
55
+ array(
56
+ 'nullable' => false,
57
+ ),
58
+ 'Status'
59
+ )
60
+ ->addColumn(
61
+ 'sent_at',
62
+ Varien_Db_Ddl_Table::TYPE_DATETIME,
63
+ null,
64
+ array(
65
+ 'nullable' => true,
66
+ 'default' => null,
67
+ ),
68
+ 'Date Sent'
69
+ )
70
+ ->addColumn(
71
+ 'recipient',
72
+ Varien_Db_Ddl_Table::TYPE_VARCHAR,
73
+ 1024,
74
+ array(
75
+ 'nullable' => false,
76
+ ),
77
+ 'Recipient'
78
+ )
79
+ ->addColumn(
80
+ 'sender',
81
+ Varien_Db_Ddl_Table::TYPE_VARCHAR,
82
+ 1024,
83
+ array(
84
+ 'nullable' => false,
85
+ ),
86
+ 'Sender'
87
+ )
88
+ ->addColumn(
89
+ 'subject',
90
+ Varien_Db_Ddl_Table::TYPE_TEXT,
91
+ null,
92
+ array(
93
+ 'nullable' => false,
94
+ ),
95
+ 'Subject'
96
+ )
97
+ ->addColumn(
98
+ 'total_opens',
99
+ Varien_Db_Ddl_Table::TYPE_INTEGER,
100
+ null,
101
+ array(
102
+ 'nullable' => false,
103
+ ),
104
+ 'Total Opens'
105
+ )
106
+ ->addColumn(
107
+ 'total_clicks',
108
+ Varien_Db_Ddl_Table::TYPE_INTEGER,
109
+ null,
110
+ array(
111
+ 'nullable' => false,
112
+ ),
113
+ 'Total Clicks'
114
+ )
115
+ ->addColumn(
116
+ 'can_be_resent',
117
+ Varien_Db_Ddl_Table::TYPE_BOOLEAN,
118
+ null,
119
+ array(
120
+ 'nullable' => false,
121
+ ),
122
+ 'Can be Resent'
123
+ )
124
+ ->addColumn(
125
+ 'scope',
126
+ Varien_Db_Ddl_Table::TYPE_VARCHAR,
127
+ 8,
128
+ array(
129
+ 'nullable' => false,
130
+ ),
131
+ 'Scope'
132
+ )
133
+ ->addColumn(
134
+ 'scope_id',
135
+ Varien_Db_Ddl_Table::TYPE_INTEGER,
136
+ 11,
137
+ array(
138
+ 'nullable' => false,
139
+ ),
140
+ 'Scope ID'
141
+ );
142
+
143
+ $connection->createTable($emailTable);
144
+
145
+ $this->endSetup();
package.xml CHANGED
@@ -1,18 +1,28 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Campaignmonitor_Createsend</name>
4
- <version>1.0.0</version>
5
  <stability>stable</stability>
6
- <license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL 3.0)</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>Integrates subscriber list with Campaign Monitor.</summary>
10
- <description>Integrates subscriber list with Campaign Monitor.</description>
11
- <notes>Initial release.</notes>
12
- <authors><author><name>Fontis</name><user>fontis</user><email>connect@fontis.com.au</email></author></authors>
13
- <date>2016-01-14</date>
14
- <time>01:00:05</time>
15
- <contents><target name="magecommunity"><dir name="Campaignmonitor"><dir name="Createsend"><dir name="Block"><dir name="Adminhtml"><dir name="Customer"><dir name="Edit"><file name="Grid.php" hash="48e28e2303623522c1a29365b94744df"/></dir></dir><dir name="Email"><file name="Grid.php" hash="1693e7a7d2dd6eaf024ed6dda06dafd0"/><dir name="View"><file name="Abstract.php" hash="480c6ac7134e47bf43c4fd6a3213b3c7"/><file name="Form.php" hash="5661cfe457e8526b2c47313fc264cd55"/><dir name="Tab"><file name="Clicks.php" hash="42f4a1ba85451b34617eeecd4a4a34d3"/><file name="Details.php" hash="2b8a673ccbbf0172c6d750259724c910"/><file name="Html.php" hash="ab99f5396dd23e2c874bdcbea2c9f064"/><file name="Opens.php" hash="5c7c80be07535869099b9adb35d4b5a1"/><file name="Text.php" hash="8448dd4755d6b0fac8136188a4259e95"/></dir><file name="Tabs.php" hash="ab071552f0a18c06f6c6b5deba46ad39"/></dir><file name="View.php" hash="da2d91894a55ff5dadcc3052f76ea4a2"/></dir><file name="Email.php" hash="d515199f4b0a380bbdb18ed4646406ab"/><file name="Switcher.php" hash="a652b662a97986b2a6e9d482c4dd91de"/></dir><dir name="AjaxButton"><file name="Abstract.php" hash="c1fc0f3a54612e2a1a29b2334ce7596e"/></dir><file name="CreateExampleSegments.php" hash="275651dd04e7d33aa59979c420c2970b"/><file name="Linkedattributes.php" hash="1d5418092958834750addbdece0b0d9a"/><file name="OauthPermissionRequest.php" hash="500f081e10b335c5f8a48dc4e66c6cf5"/><file name="OauthRedirectUrl.php" hash="c620189b986869119ef663c1219d3638"/><file name="TestApi.php" hash="18becb7036d41b984e1ef3b8610e9fbe"/><file name="Wishlistattributes.php" hash="215c9f748b4dc961bb55c855a5cd05a0"/></dir><dir name="Helper"><file name="Api.php" hash="bc3ca8d7b919ed6c5e3726cc8ae77f6d"/><file name="Config.php" hash="a3fb0f14af014d75e408fc7b8d082b20"/><file name="Data.php" hash="19c555bc15be41c0e27ebded59176acf"/></dir><dir name="Model"><dir name="Api"><file name="Observer.php" hash="7ddceb0ca6cd952716cb9551ab220fd7"/></dir><file name="Api.php" hash="dada39c6c5c6abbc499a626aaa731689"/><dir name="Config"><file name="Api.php" hash="16c3d74c28fa1e1fd7ccd339a01790b2"/><dir name="Attributes"><file name="Abstract.php" hash="a9253efd2e6e57d8a00ce6daf04de7e0"/></dir><file name="AuthenticationMethod.php" hash="90307b668c7ba94867823aba983b2fdc"/><dir name="Backend"><file name="Apikey.php" hash="82d8bafbdcbbb74078bc8427e7569290"/><file name="Listid.php" hash="ebebd820797f3aa4b5bf69e75771a513"/></dir><file name="ClientSelection.php" hash="0adc61c13342da28e8a1815f4f65ae0d"/><file name="ConflictResolutionMethod.php" hash="48938666ddfd96e6b3b5c13c01a4c36c"/><file name="CustomerAttributes.php" hash="5cf999910a27b44d4c7747e2e10b4179"/><file name="DefaultCustomFields.php" hash="fbca6fc17b394e5f38511760a10a9aa1"/><file name="ExampleSegments.php" hash="4ab29a0f8a62c18b3d846ae4901ae2fb"/><file name="ListFlag.php" hash="b259912cdf6a68883a58534079f4db71"/><file name="ListSelection.php" hash="763601cc87f4948c0f3ee93eea3093eb"/><file name="ProductAttributes.php" hash="1a3c82d010fa5aec93d56b1bbabf6568"/><file name="Scope.php" hash="f6c06f4344c1db712925314a7dce7c3d"/><file name="SubscriptionSources.php" hash="e9291723ce6420cb9ebfeff4c994372a"/></dir><file name="Cron.php" hash="4eb2cf346c0705237a402d24053c8ea2"/><dir name="Customer"><file name="Observer.php" hash="4b5bf5a8caa90538ea159bb0314edd38"/></dir><dir name="Email"><file name="Cron.php" hash="00b7d38721fde5732a92d9d733f32439"/><file name="Template.php" hash="16a81f1059dff3b9e7162ff68991360c"/></dir><file name="Email.php" hash="b587fc5062c33e2f2b97111e11095b2c"/><dir name="List"><file name="Cron.php" hash="010417a44ddaaf4d5cf254dedb5f188e"/><dir name="Initial"><file name="Cron.php" hash="1496b75f327a9dc7cee888dd602f496b"/></dir></dir><dir name="Newsletter"><file name="Observer.php" hash="0c194bd321eb4ce58d0859d505254a0d"/></dir><file name="Newsletter.php" hash="4bcb7a0970b9e55c905e753990263f56"/><dir name="Product"><file name="Observer.php" hash="70834ac17bd0ff931b9b9334d79980bb"/></dir><dir name="Resource"><dir name="Email"><file name="Collection.php" hash="85165381ae7416ecdb24cd11c88fd591"/></dir><file name="Email.php" hash="42f44bf5cbbbdb5dc6e7f4944dec9cf8"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Createsend"><file name="ApiController.php" hash="3dfa90cd58af3ce08f77dfafc4485885"/><file name="EmailController.php" hash="14bf61eb251af1444335723475d67f38"/><file name="SegmentController.php" hash="d3aaf5498b92589f2a6ca816931a8978"/></dir></dir><file name="OauthController.php" hash="4f20e1a620363465aa33cda712282646"/><file name="UnsubscribeController.php" hash="062e972b753446efc1d226f83952aeda"/><file name="WebhooksController.php" hash="d51f3f5614001ba46b300b7269a86e42"/></dir><dir name="etc"><file name="adminhtml.xml" hash="4b9b24169fc9612fcf941022d7918071"/><file name="config.xml" hash="f6f92e00f212c58bd50e54bf0ee31f73"/><file name="system.xml" hash="aadf9a7a0bb9d018d8e90f51442c8935"/></dir><dir name="sql"><dir name="campaignmonitor_createsend_setup"><file name="install-1.0.0.php" hash="9ea2ce61dad34c51fbc60b9f9af24606"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Campaignmonitor_Createsend.xml" hash="e2b42c271a897551d0750506555af6d4"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="campaignmonitor"><dir name="createsend"><file name="ajax.phtml" hash="74eb59c4ad5b2f686536e33c929419ca"/><file name="apiclient.phtml" hash="753efb7fad644b1d4122689cd48123d6"/><dir name="email"><file name="details.phtml" hash="7a280f81e7fc737ab3a44de8fb3bdb01"/><file name="html.phtml" hash="e5c2f2d96fde96eb62887bb0cdb511f5"/><file name="text.phtml" hash="666a3bece1273f29d42044ee3054b08e"/><file name="tracking.phtml" hash="ca3cee04bf39c89001cb654cbc0acf1c"/></dir><file name="switcher.phtml" hash="f0ebd5e04640cba50b022ad77159ae2b"/><dir name="system"><dir name="config"><dir name="form"><dir name="field"><file name="array_dropdown.phtml" hash="9e47b2ee3ce33ca21cc95d2e360ecc77"/></dir></dir></dir></dir></dir></dir></dir><dir name="layout"><dir name="campaignmonitor"><file name="createsend.xml" hash="5e2dbc978680b1631759eb5664303d1b"/></dir></dir></dir></dir></dir></target><target name="mage"><dir name="shell"><file name="campaignmonitor_email.php" hash="8a1b04a4970e178c04351247de4ec59a"/><file name="campaignmonitor_list.php" hash="a6ef94412cf5f57fd31b4db409ca028d"/><file name="campaignmonitor_list_initial.php" hash="5dc090760799d568ab3906c84b7cbc6d"/></dir></target></contents>
 
 
 
 
 
 
 
 
 
 
16
  <compatible/>
17
  <dependencies><required><php><min>5.3.0</min><max>8.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Campaignmonitor_Createsend</name>
4
+ <version>1.0.1</version>
5
  <stability>stable</stability>
6
+ <license uri="https://opensource.org/licenses/OSL-3.0">OSL</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>Use your rich customer data in Magento to segment your customers and send hyper-targeted personal emails.</summary>
10
+ <description>Use your rich customer data in Magento to segment your customer base and send the personal, hyper-targeted email marketing campaigns that drive valuable ROI back to the business. &lt;b&gt;Send 2500 emails to 500 people for as little as $9/month.&lt;/b&gt;&#xD;
11
+ &lt;br /&gt;&lt;br /&gt;&#xD;
12
+ Research shows that personalized, relevant email marketing campaigns have at least 26% higher open rate than generic ones. By connecting Campaign Monitor and Magento, you can unlock this opportunity for your business and start sending hyper-targeted, personalized emails to your base. Joint Magento and Campaign Monitor customers are already automating emails to:&#xD;
13
+ &lt;br /&gt;&lt;br /&gt;&#xD;
14
+ - Target VIP customers with a special offer&lt;br /&gt;&lt;br /&gt;&#xD;
15
+ - Welcome every new customer with a personalized email&lt;br /&gt;&lt;br /&gt;&#xD;
16
+ - Send gender and/or geographic specific content&lt;br /&gt;&lt;br /&gt;&#xD;
17
+ - Re-engage customers who haven&#x2019;t purchased in a while&lt;br /&gt;&lt;br /&gt;&#xD;
18
+ - Celebrate an important date, such as a birthday&lt;br /&gt;&lt;br /&gt;&#xD;
19
+ &#xD;
20
+ Campaign Monitor makes it easy for you to get started by automatically creating segments for you based on what we&#x2019;ve found to be the most actionable audiences in Magento. Use these segments to automate marketing campaigns.</description>
21
+ <notes>Stable Release</notes>
22
+ <authors><author><name>Campaign Monitor</name><user>CampaignMonitor</user><email>vibhor@campaignmonitor.com</email></author></authors>
23
+ <date>2016-03-14</date>
24
+ <time>21:32:29</time>
25
+ <contents><target name="magecommunity"><dir name="Campaignmonitor"><dir name="Createsend"><dir name="Block"><dir name="Adminhtml"><dir name="Customer"><dir name="Edit"><file name="Grid.php" hash="48e28e2303623522c1a29365b94744df"/></dir></dir><dir name="Email"><file name="Grid.php" hash="1693e7a7d2dd6eaf024ed6dda06dafd0"/><dir name="View"><file name="Abstract.php" hash="480c6ac7134e47bf43c4fd6a3213b3c7"/><file name="Form.php" hash="5661cfe457e8526b2c47313fc264cd55"/><dir name="Tab"><file name="Clicks.php" hash="42f4a1ba85451b34617eeecd4a4a34d3"/><file name="Details.php" hash="2b8a673ccbbf0172c6d750259724c910"/><file name="Html.php" hash="ab99f5396dd23e2c874bdcbea2c9f064"/><file name="Opens.php" hash="5c7c80be07535869099b9adb35d4b5a1"/><file name="Text.php" hash="8448dd4755d6b0fac8136188a4259e95"/></dir><file name="Tabs.php" hash="ab071552f0a18c06f6c6b5deba46ad39"/></dir><file name="View.php" hash="da2d91894a55ff5dadcc3052f76ea4a2"/></dir><file name="Email.php" hash="d515199f4b0a380bbdb18ed4646406ab"/><file name="Switcher.php" hash="a652b662a97986b2a6e9d482c4dd91de"/></dir><dir name="AjaxButton"><file name="Abstract.php" hash="c1fc0f3a54612e2a1a29b2334ce7596e"/></dir><file name="CreateExampleSegments.php" hash="275651dd04e7d33aa59979c420c2970b"/><file name="Linkedattributes.php" hash="1d5418092958834750addbdece0b0d9a"/><file name="OauthPermissionRequest.php" hash="500f081e10b335c5f8a48dc4e66c6cf5"/><file name="OauthRedirectUrl.php" hash="c620189b986869119ef663c1219d3638"/><file name="TestApi.php" hash="18becb7036d41b984e1ef3b8610e9fbe"/><file name="Wishlistattributes.php" hash="215c9f748b4dc961bb55c855a5cd05a0"/></dir><dir name="Helper"><file name="Api.php" hash="bc3ca8d7b919ed6c5e3726cc8ae77f6d"/><file name="Config.php" hash="a3fb0f14af014d75e408fc7b8d082b20"/><file name="Data.php" hash="19c555bc15be41c0e27ebded59176acf"/></dir><dir name="Model"><dir name="Api"><file name="Observer.php" hash="7ddceb0ca6cd952716cb9551ab220fd7"/></dir><file name="Api.php" hash="f045f30bdba8607298a880d3f977562a"/><dir name="Config"><file name="Api.php" hash="16c3d74c28fa1e1fd7ccd339a01790b2"/><dir name="Attributes"><file name="Abstract.php" hash="a9253efd2e6e57d8a00ce6daf04de7e0"/></dir><file name="AuthenticationMethod.php" hash="90307b668c7ba94867823aba983b2fdc"/><dir name="Backend"><file name="Apikey.php" hash="82d8bafbdcbbb74078bc8427e7569290"/><file name="Listid.php" hash="ebebd820797f3aa4b5bf69e75771a513"/></dir><file name="ClientSelection.php" hash="0adc61c13342da28e8a1815f4f65ae0d"/><file name="ConflictResolutionMethod.php" hash="48938666ddfd96e6b3b5c13c01a4c36c"/><file name="CustomerAttributes.php" hash="5cf999910a27b44d4c7747e2e10b4179"/><file name="DefaultCustomFields.php" hash="fbca6fc17b394e5f38511760a10a9aa1"/><file name="ExampleSegments.php" hash="4ab29a0f8a62c18b3d846ae4901ae2fb"/><file name="ListFlag.php" hash="b259912cdf6a68883a58534079f4db71"/><file name="ListSelection.php" hash="763601cc87f4948c0f3ee93eea3093eb"/><file name="ProductAttributes.php" hash="1a3c82d010fa5aec93d56b1bbabf6568"/><file name="Scope.php" hash="f6c06f4344c1db712925314a7dce7c3d"/><file name="SubscriptionSources.php" hash="e9291723ce6420cb9ebfeff4c994372a"/></dir><file name="Cron.php" hash="4eb2cf346c0705237a402d24053c8ea2"/><dir name="Customer"><file name="Observer.php" hash="7e9a16d3e235959f5c63394d552f906d"/></dir><dir name="Email"><file name="Cron.php" hash="00b7d38721fde5732a92d9d733f32439"/><file name="Template.php" hash="16a81f1059dff3b9e7162ff68991360c"/></dir><file name="Email.php" hash="b587fc5062c33e2f2b97111e11095b2c"/><dir name="List"><file name="Cron.php" hash="010417a44ddaaf4d5cf254dedb5f188e"/><dir name="Initial"><file name="Cron.php" hash="1496b75f327a9dc7cee888dd602f496b"/></dir></dir><dir name="Newsletter"><file name="Observer.php" hash="0c194bd321eb4ce58d0859d505254a0d"/></dir><file name="Newsletter.php" hash="4bcb7a0970b9e55c905e753990263f56"/><dir name="Product"><file name="Observer.php" hash="70834ac17bd0ff931b9b9334d79980bb"/></dir><dir name="Resource"><dir name="Email"><file name="Collection.php" hash="85165381ae7416ecdb24cd11c88fd591"/></dir><file name="Email.php" hash="42f44bf5cbbbdb5dc6e7f4944dec9cf8"/></dir></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Createsend"><file name="ApiController.php" hash="3dfa90cd58af3ce08f77dfafc4485885"/><file name="EmailController.php" hash="14bf61eb251af1444335723475d67f38"/><file name="SegmentController.php" hash="d3aaf5498b92589f2a6ca816931a8978"/></dir></dir><file name="OauthController.php" hash="4f20e1a620363465aa33cda712282646"/><file name="UnsubscribeController.php" hash="062e972b753446efc1d226f83952aeda"/><file name="WebhooksController.php" hash="d51f3f5614001ba46b300b7269a86e42"/></dir><dir name="etc"><file name="adminhtml.xml" hash="4b9b24169fc9612fcf941022d7918071"/><file name="config.xml" hash="a8f5521e72f7bee7a6057d3561e4c75e"/><file name="system.xml" hash="aadf9a7a0bb9d018d8e90f51442c8935"/></dir><dir name="sql"><dir name="campaignmonitor_createsend_setup"><file name="install-1.0.0.php" hash="5af34eba2541737bf1701e2a989d7961"/><file name="install-1.0.1.php" hash="5af34eba2541737bf1701e2a989d7961"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Campaignmonitor_Createsend.xml" hash="e2b42c271a897551d0750506555af6d4"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="campaignmonitor"><file name="createsend.xml" hash="5e2dbc978680b1631759eb5664303d1b"/></dir></dir><dir name="template"><dir name="campaignmonitor"><dir name="createsend"><file name="ajax.phtml" hash="74eb59c4ad5b2f686536e33c929419ca"/><file name="apiclient.phtml" hash="753efb7fad644b1d4122689cd48123d6"/><dir name="email"><file name="details.phtml" hash="7a280f81e7fc737ab3a44de8fb3bdb01"/><file name="html.phtml" hash="e5c2f2d96fde96eb62887bb0cdb511f5"/><file name="text.phtml" hash="666a3bece1273f29d42044ee3054b08e"/><file name="tracking.phtml" hash="ca3cee04bf39c89001cb654cbc0acf1c"/></dir><file name="switcher.phtml" hash="f0ebd5e04640cba50b022ad77159ae2b"/><dir name="system"><dir name="config"><dir name="form"><dir name="field"><file name="array_dropdown.phtml" hash="9e47b2ee3ce33ca21cc95d2e360ecc77"/></dir></dir></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="mage"><dir name="shell"><file name="campaignmonitor_email.php" hash="8a1b04a4970e178c04351247de4ec59a"/><file name="campaignmonitor_email.php" hash="8a1b04a4970e178c04351247de4ec59a"/><file name="campaignmonitor_list_initial.php" hash="5dc090760799d568ab3906c84b7cbc6d"/></dir></target></contents>
26
  <compatible/>
27
  <dependencies><required><php><min>5.3.0</min><max>8.0.0</max></php></required></dependencies>
28
  </package>
shell/campaignmonitor_list.php DELETED
@@ -1,52 +0,0 @@
1
- <?php
2
- /**
3
- * Campaign Monitor Magento Extension
4
- *
5
- * NOTICE OF LICENSE
6
- *
7
- * This source file is subject to the Open Software License (OSL 3.0)
8
- * that is available through the world-wide-web at this URL:
9
- * http://opensource.org/licenses/osl-3.0.php
10
- * If you are unable to obtain it through the world-wide-web, please
11
- * send an email to license@magento.com and you will be sent a copy.
12
- *
13
- * @package Campaignmonitor_Createsend
14
- * @copyright Copyright (c) 2015 Campaign Monitor (https://www.campaignmonitor.com/)
15
- * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
16
- */
17
-
18
- require_once 'abstract.php';
19
-
20
- /**
21
- * Synchronise list subscribers between Campaign Monitor and Magento.
22
- *
23
- * To use this script, go to:
24
- *
25
- * ``System -> Configuration -> Campaign Monitor -> General -> Advanced``
26
- *
27
- * and set ``Use Magento cron`` to ``No``.
28
- *
29
- * Then add an entry in your Unix crontab to run this script at least once a day.
30
- *
31
- */
32
- class Mage_Shell_Campaignmonitor_List extends Mage_Shell_Abstract
33
- {
34
- /**
35
- * Run script
36
- *
37
- */
38
- public function run()
39
- {
40
- /** @var array $tasks */
41
- $tasks = array();
42
- $tasks[] = Mage::getModel('createsend/list_cron');
43
-
44
- /** @var Campaignmonitor_Createsend_Model_Cron $task */
45
- foreach ($tasks as $task) {
46
- $task->runJob();
47
- }
48
- }
49
- }
50
-
51
- $shell = new Mage_Shell_Campaignmonitor_List();
52
- $shell->run();