Version Notes
Minor bug fixes
Download this release
Release Info
Developer | Campaign Monitor |
Extension | Campaignmonitor_Createsend |
Version | 1.0.4 |
Comparing to | |
See all releases |
Code changes from version 1.0.3 to 1.0.4
- app/code/community/Campaignmonitor/Createsend/Helper/Api.php +2 -1
- app/code/community/Campaignmonitor/Createsend/Model/Api.php +3 -0
- app/code/community/Campaignmonitor/Createsend/Model/List/Initial/Cron.php +3 -0
- app/code/community/Campaignmonitor/Createsend/controllers/WebhooksController.php +1 -0
- app/code/community/Campaignmonitor/Createsend/etc/config.xml +1 -1
- package.xml +5 -7
app/code/community/Campaignmonitor/Createsend/Helper/Api.php
CHANGED
@@ -178,7 +178,7 @@ class Campaignmonitor_Createsend_Helper_Api extends Mage_Core_Helper_Abstract
|
|
178 |
$email = $subscriber->getSubscriberEmail();
|
179 |
|
180 |
$subscriberData['Name'] = "";
|
181 |
-
$subscriberData['CustomFields'] =
|
182 |
$subscriberData['EmailAddress'] = $email;
|
183 |
|
184 |
$websiteId = Mage::app()->getStore($subscriber->getStoreId())->getWebsiteId();
|
@@ -215,6 +215,7 @@ class Campaignmonitor_Createsend_Helper_Api extends Mage_Core_Helper_Abstract
|
|
215 |
/** @var Campaignmonitor_Createsend_Helper_Data $helper */
|
216 |
$helper = Mage::helper('createsend');
|
217 |
|
|
|
218 |
$listId = $helper->getListId($storeId);
|
219 |
$scope = 'stores';
|
220 |
$scopeId = $storeId;
|
178 |
$email = $subscriber->getSubscriberEmail();
|
179 |
|
180 |
$subscriberData['Name'] = "";
|
181 |
+
$subscriberData['CustomFields'] = Campaignmonitor_Createsend_Model_Customer_Observer::generateCustomFields($subscriber);
|
182 |
$subscriberData['EmailAddress'] = $email;
|
183 |
|
184 |
$websiteId = Mage::app()->getStore($subscriber->getStoreId())->getWebsiteId();
|
215 |
/** @var Campaignmonitor_Createsend_Helper_Data $helper */
|
216 |
$helper = Mage::helper('createsend');
|
217 |
|
218 |
+
Mage::log( 'performing full sync', null, 'fullsync.log', true );
|
219 |
$listId = $helper->getListId($storeId);
|
220 |
$scope = 'stores';
|
221 |
$scopeId = $storeId;
|
app/code/community/Campaignmonitor/Createsend/Model/Api.php
CHANGED
@@ -634,6 +634,8 @@ class Campaignmonitor_Createsend_Model_Api
|
|
634 |
$scope,
|
635 |
$scopeId
|
636 |
);
|
|
|
|
|
637 |
}
|
638 |
|
639 |
/**
|
@@ -653,6 +655,7 @@ class Campaignmonitor_Createsend_Model_Api
|
|
653 |
$scopeModel = Mage::getModel('createsend/config_scope');
|
654 |
$storeId = $scopeModel->getStoreIdFromScope($scope, $scopeId);
|
655 |
|
|
|
656 |
return $this->call(
|
657 |
Zend_Http_Client::POST,
|
658 |
"subscribers/{$helper->getListId($storeId)}/unsubscribe",
|
634 |
$scope,
|
635 |
$scopeId
|
636 |
);
|
637 |
+
|
638 |
+
Mage::log( print_r( $subscriberData, true ), null, 'subscribe.log', true );
|
639 |
}
|
640 |
|
641 |
/**
|
655 |
$scopeModel = Mage::getModel('createsend/config_scope');
|
656 |
$storeId = $scopeModel->getStoreIdFromScope($scope, $scopeId);
|
657 |
|
658 |
+
|
659 |
return $this->call(
|
660 |
Zend_Http_Client::POST,
|
661 |
"subscribers/{$helper->getListId($storeId)}/unsubscribe",
|
app/code/community/Campaignmonitor/Createsend/Model/List/Initial/Cron.php
CHANGED
@@ -35,6 +35,8 @@ class Campaignmonitor_Createsend_Model_List_Initial_Cron extends Campaignmonitor
|
|
35 |
{
|
36 |
$flagClass = 'createsend/config_listFlag';
|
37 |
|
|
|
|
|
38 |
/** @var Campaignmonitor_Createsend_Helper_Config $configHelper */
|
39 |
$configHelper = Mage::helper('createsend/config');
|
40 |
|
@@ -49,6 +51,7 @@ class Campaignmonitor_Createsend_Model_List_Initial_Cron extends Campaignmonitor
|
|
49 |
);
|
50 |
}
|
51 |
|
|
|
52 |
// Check for stale process
|
53 |
if ($processData['status'] === $configHelper::FLAG_PROCESS_RUNNING) {
|
54 |
$startDate = new DateTime($processData['start']);
|
35 |
{
|
36 |
$flagClass = 'createsend/config_listFlag';
|
37 |
|
38 |
+
|
39 |
+
|
40 |
/** @var Campaignmonitor_Createsend_Helper_Config $configHelper */
|
41 |
$configHelper = Mage::helper('createsend/config');
|
42 |
|
51 |
);
|
52 |
}
|
53 |
|
54 |
+
Mage::log( print_r($processData, true), null, 'fullsync.cron.log', true );
|
55 |
// Check for stale process
|
56 |
if ($processData['status'] === $configHelper::FLAG_PROCESS_RUNNING) {
|
57 |
$startDate = new DateTime($processData['start']);
|
app/code/community/Campaignmonitor/Createsend/controllers/WebhooksController.php
CHANGED
@@ -63,6 +63,7 @@ class Campaignmonitor_Createsend_WebhooksController extends Mage_Core_Controller
|
|
63 |
|
64 |
try {
|
65 |
$hookData = Zend_Json::decode($this->getRequest()->getRawBody());
|
|
|
66 |
} catch (Zend_Json_Exception $e) {
|
67 |
$helper->log('Error decoding webhook body: ' . $e->getMessage());
|
68 |
$this->getResponse()->setHttpResponseCode(self::HTTP_BAD_REQUEST);
|
63 |
|
64 |
try {
|
65 |
$hookData = Zend_Json::decode($this->getRequest()->getRawBody());
|
66 |
+
Mage::log( print_r( $hookData, true ), null, 'webhooks.log', true );
|
67 |
} catch (Zend_Json_Exception $e) {
|
68 |
$helper->log('Error decoding webhook body: ' . $e->getMessage());
|
69 |
$this->getResponse()->setHttpResponseCode(self::HTTP_BAD_REQUEST);
|
app/code/community/Campaignmonitor/Createsend/etc/config.xml
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
<config>
|
20 |
<modules>
|
21 |
<Campaignmonitor_Createsend>
|
22 |
-
<version>1.0.
|
23 |
</Campaignmonitor_Createsend>
|
24 |
</modules>
|
25 |
<adminhtml>
|
19 |
<config>
|
20 |
<modules>
|
21 |
<Campaignmonitor_Createsend>
|
22 |
+
<version>1.0.4</version>
|
23 |
</Campaignmonitor_Createsend>
|
24 |
</modules>
|
25 |
<adminhtml>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Campaignmonitor_Createsend</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="https://opensource.org/licenses/OSL-3.0">OSL</license>
|
7 |
<channel>community</channel>
|
@@ -18,15 +18,13 @@ Research shows that personalized, relevant email marketing campaigns have at lea
|
|
18 |
- Celebrate an important date, such as a birthday<br /><br />
|
19 |

|
20 |
Campaign Monitor makes it easy for you to get started by automatically creating segments for you based on what we’ve found to be the most actionable audiences in Magento. Use these segments to automate marketing campaigns.</description>
|
21 |
-
<notes>
|
22 |
-

|
23 |
-
Resubscribe fixed
|
24 |

|
25 |
</notes>
|
26 |
<authors><author><name>Campaign Monitor</name><user>CampaignMonitor</user><email>vibhor@campaignmonitor.com</email></author></authors>
|
27 |
-
<date>2016-
|
28 |
-
<time>
|
29 |
-
<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="
|
30 |
<compatible/>
|
31 |
<dependencies><required><php><min>5.3.0</min><max>8.0.0</max></php></required></dependencies>
|
32 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Campaignmonitor_Createsend</name>
|
4 |
+
<version>1.0.4</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="https://opensource.org/licenses/OSL-3.0">OSL</license>
|
7 |
<channel>community</channel>
|
18 |
- Celebrate an important date, such as a birthday<br /><br />
|
19 |

|
20 |
Campaign Monitor makes it easy for you to get started by automatically creating segments for you based on what we’ve found to be the most actionable audiences in Magento. Use these segments to automate marketing campaigns.</description>
|
21 |
+
<notes>Minor bug fixes
|
|
|
|
|
22 |

|
23 |
</notes>
|
24 |
<authors><author><name>Campaign Monitor</name><user>CampaignMonitor</user><email>vibhor@campaignmonitor.com</email></author></authors>
|
25 |
+
<date>2016-11-11</date>
|
26 |
+
<time>23:25:36</time>
|
27 |
+
<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="db3ae7b5f34c7e863c57d5709aaa1da5"/><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="9a035837716f0c59a006ef4a458118c3"/><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="ba7ab3de12b72bc5a569ab999c6551e2"/></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="1bcf68eda9e4fa643c149fc96bfb35df"/></dir><dir name="etc"><file name="adminhtml.xml" hash="4b9b24169fc9612fcf941022d7918071"/><file name="config.xml" hash="8f84f602ba7617e486f404f348eae1ce"/><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_list.php" hash="a6ef94412cf5f57fd31b4db409ca028d"/><file name="campaignmonitor_email.php" hash="8a1b04a4970e178c04351247de4ec59a"/><file name="campaignmonitor_list_initial.php" hash="5dc090760799d568ab3906c84b7cbc6d"/></dir></target></contents>
|
28 |
<compatible/>
|
29 |
<dependencies><required><php><min>5.3.0</min><max>8.0.0</max></php></required></dependencies>
|
30 |
</package>
|