ActiveCampaign_Subscriptions - Version 1.5.6

Version Notes

Minor bug fix for version 1.5.5.

Download this release

Release Info

Developer ActiveCampaign, Inc.
Extension ActiveCampaign_Subscriptions
Version 1.5.6
Comparing to
See all releases


Code changes from version 1.5.5 to 1.5.6

app/code/community/ActiveCampaign/Subscriptions/activecampaign-api-php/Connector.class.php CHANGED
@@ -217,9 +217,9 @@ class AC_Connector {
217
  return $response;
218
  }
219
 
220
- $requestException = new RequestException;
221
  $requestException->setFailedMessage($response);
222
- throw $requestException;
223
  }
224
 
225
  if ($this->debug) {
217
  return $response;
218
  }
219
 
220
+ /*$requestException = new RequestException;
221
  $requestException->setFailedMessage($response);
222
+ throw $requestException;*/
223
  }
224
 
225
  if ($this->debug) {
app/code/community/ActiveCampaign/Subscriptions/controllers/Adminhtml/SubscriptionsController.php CHANGED
@@ -149,9 +149,13 @@ class ActiveCampaign_Subscriptions_Adminhtml_SubscriptionsController extends Mag
149
  $contacts_magento = Mage::getResourceModel('newsletter/contact_collection');
150
  if ($contacts_magento) {
151
  $contacts_magento = $contacts_magento->showStoreInfo()->showCustomerInfo()->getData();
152
- } else {
 
153
  $contacts_magento = Mage::getModel('newsletter/subscriber')->getCollection()->getData();
154
  }
 
 
 
155
 
156
  $contacts_ac = array();
157
 
@@ -164,9 +168,9 @@ class ActiveCampaign_Subscriptions_Adminhtml_SubscriptionsController extends Mag
164
  foreach ($contacts_magento as $contact) {
165
 
166
  $contacts_ac_ = array(
167
- "email" => $contact["contact_email"],
168
- "first_name" => $contact["customer_firstname"],
169
- "last_name" => $contact["customer_lastname"],
170
  );
171
 
172
  // add lists
@@ -186,8 +190,6 @@ class ActiveCampaign_Subscriptions_Adminhtml_SubscriptionsController extends Mag
186
 
187
  }
188
 
189
- //$this->dbg($contacts_ac);
190
-
191
  $contacts_ac_serialized = serialize($contacts_ac);
192
 
193
  $contact_request = $ac->api("contact/sync?service=magento", $contacts_ac_serialized);
149
  $contacts_magento = Mage::getResourceModel('newsletter/contact_collection');
150
  if ($contacts_magento) {
151
  $contacts_magento = $contacts_magento->showStoreInfo()->showCustomerInfo()->getData();
152
+ }
153
+ if (!$contacts_magento) {
154
  $contacts_magento = Mage::getModel('newsletter/subscriber')->getCollection()->getData();
155
  }
156
+ if (!$contacts_magento) {
157
+ $contacts_magento = Mage::getModel('newsletter/subscriber')->getCollection()->showCustomerInfo()->getData();
158
+ }
159
 
160
  $contacts_ac = array();
161
 
168
  foreach ($contacts_magento as $contact) {
169
 
170
  $contacts_ac_ = array(
171
+ "email" => $contact["subscriber_email"],
172
+ "first_name" => $contact["subscriber_firstname"],
173
+ "last_name" => $contact["subscriber_lastname"],
174
  );
175
 
176
  // add lists
190
 
191
  }
192
 
 
 
193
  $contacts_ac_serialized = serialize($contacts_ac);
194
 
195
  $contact_request = $ac->api("contact/sync?service=magento", $contacts_ac_serialized);
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>ActiveCampaign_Subscriptions</name>
4
- <version>1.5.5</version>
5
  <stability>stable</stability>
6
  <license uri="https://www.activecampaign.com/hosted/terms.php">Commercial/Free</license>
7
  <channel>community</channel>
@@ -14,11 +14,11 @@
14
  3. Have existing customer account newsletter modifications updated in ActiveCampaign.&#xD;
15
  &#xD;
16
  4. Bulk export/sync all current newsletter contacts to ActiveCampaign in just two clicks!</description>
17
- <notes>Fix for bulk export from Magento (import into ActiveCampaign) causing an issue when there is a lot of data. Also modified how we get Magento newsletter subscribers (some versions have it located in another variable).</notes>
18
  <authors><author><name>ActiveCampaign, Inc.</name><user>activecampaign</user><email>help@activecampaign.com</email></author></authors>
19
  <date>2016-11-15</date>
20
- <time>19:22:54</time>
21
- <contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="subscriptions.xml" hash="825b33cd139c693c88047584959f49ed"/></dir><dir name="template"><dir name="subscriptions"><file name="grid.phtml" hash="7c8a5f92d5cad1c228f36b6113e3e25f"/><file name="list.phtml" hash="70c40a80ee43596da6ae899f14191e91"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="subscriptions.xml" hash="d0a96f68db976ce1919a664228184e9c"/></dir><dir name="template"><dir name="subscriptions"><file name="subscriptions.phtml" hash="2025758bce03d7b9cfe99029050c7be4"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="ActiveCampaign_Subscriptions.xml" hash="14eb3a0c9c06bc847b4e8c6ff691c07d"/></dir></target><target name="magecommunity"><dir name="ActiveCampaign"><dir name="Subscriptions"><dir name="activecampaign-api-php"><file name="Account.class.php" hash="b6426c518978bbfb4ae032cb6ddcc29c"/><file name="ActiveCampaign.class.php" hash="900f5ef0acd4af4105471feda2917aae"/><file name="Auth.class.php" hash="affc478ccf1622400409d8b623230183"/><file name="Campaign.class.php" hash="229ec1cb98add26450f38aa283f40e5f"/><file name="Connector.class.php" hash="46d650cceec9128394255d050077cbf9"/><file name="Design.class.php" hash="53104c2ee4f4d54577f385188ba8c9af"/><file name="Form.class.php" hash="2fe24b9e11057e55bb79221fa59a38a7"/><file name="Group.class.php" hash="4712367081b6099bc88440c7ac4c35d0"/><file name="List.class.php" hash="c451709386aaebabeef2d85422e3cf3f"/><file name="Message.class.php" hash="8c072e28994283d0ff7b950df55a6655"/><file name="Contact.class.php" hash="d19e57f06044b5dc98b929b449521a19"/><file name="User.class.php" hash="5a213c94cc6d2a9545856982a38ad26b"/><file name="Webhook.class.php" hash="2933f75823679abd5d178774c8d61682"/><file name="Automation.class.php" hash="f58d2c9ed16fce6c838c50160484363e"/><file name="Subscriber.class.php" hash="94c6b4289e50ea4cf33e98b72e450528"/><file name="Deal.class.php" hash="39b1cacc347584517d4fb145d060082f"/><file name="Tracking.class.php" hash="f84aa5361c44203f90ef14bb08d90a9e"/><file name="Settings.class.php" hash="85a2ffea84086486f5fb9f4325fe701d"/></dir><dir name="Block"><file name="Subscriptions.php" hash="79b032b024a0593188258d4fef3fa733"/><dir name="Adminhtml"><file name="Subscriptions.php" hash="7f9fdec5858ef7a30c1fcd129f13fe67"/><dir name="Subscriptions"><file name="Edit.php" hash="3c464d71d1ad78ae035f810a1248f918"/><file name="Grid.php" hash="b51fc9698c21224488c41826489a8177"/><dir name="Edit"><file name="Form.php" hash="b1eda088b2adf03d69bc1aa3cfb2a00a"/><file name="Tabs.php" hash="4c94ebd27bb6bb0a572131d441afa945"/><dir name="Tab"><file name="Connection.php" hash="230d5a8f70b5de930864b25821290efb"/><file name="Export.php" hash="f65aa906629d6a1b4a17f16014488017"/><file name="List.php" hash="4f2cd4ca088cca5bb2ad1b598c9bc486"/><file name="Form.php" hash="8bf394482cf60f311b8610521888b0d8"/></dir></dir></dir></dir></dir><dir name="controllers"><file name="IndexController.php" hash="f6e27a764745bdb55f17fdca49a7fa81"/><dir name="Adminhtml"><file name="SubscriptionsController.php" hash="ccef738ef57683d4f88dab6d36a7b69b"/></dir></dir><dir name="etc"><file name="config.xml" hash="40947886dd3611ebeb717de55ef8c240"/></dir><dir name="Helper"><file name="Data.php" hash="4b35d91431328ee595132df575a60a2a"/></dir><dir name="Model"><file name="Observer.php" hash="91aead63e3b6e7d4674b20eb5c2efe96"/><file name="Status.php" hash="c35feda8164009341d289074be5612c0"/><file name="Subscriptions.php" hash="76818326ecfd635e574f704003184300"/><dir name="Mysql4"><file name="Subscriptions.php" hash="d112b3f1194a8bb7f329dacb34161941"/><dir name="Subscriptions"><file name="Collection.php" hash="457890390bd29e72dda81d3088ef5a50"/></dir></dir></dir><dir name="sql"><dir name="subscriptions_setup"><file name="mysql4-install-0.1.0.php" hash="9f756eb38486cc878134f07f22f661c0"/></dir></dir></dir></dir></target></contents>
22
  <compatible/>
23
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php><extension><name>curl</name><min>7.19.7</min><max>7.28.0</max></extension></required></dependencies>
24
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>ActiveCampaign_Subscriptions</name>
4
+ <version>1.5.6</version>
5
  <stability>stable</stability>
6
  <license uri="https://www.activecampaign.com/hosted/terms.php">Commercial/Free</license>
7
  <channel>community</channel>
14
  3. Have existing customer account newsletter modifications updated in ActiveCampaign.&#xD;
15
  &#xD;
16
  4. Bulk export/sync all current newsletter contacts to ActiveCampaign in just two clicks!</description>
17
+ <notes>Minor bug fix for version 1.5.5.</notes>
18
  <authors><author><name>ActiveCampaign, Inc.</name><user>activecampaign</user><email>help@activecampaign.com</email></author></authors>
19
  <date>2016-11-15</date>
20
+ <time>20:11:12</time>
21
+ <contents><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="subscriptions.xml" hash="825b33cd139c693c88047584959f49ed"/></dir><dir name="template"><dir name="subscriptions"><file name="grid.phtml" hash="7c8a5f92d5cad1c228f36b6113e3e25f"/><file name="list.phtml" hash="70c40a80ee43596da6ae899f14191e91"/></dir></dir></dir></dir></dir><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="subscriptions.xml" hash="d0a96f68db976ce1919a664228184e9c"/></dir><dir name="template"><dir name="subscriptions"><file name="subscriptions.phtml" hash="2025758bce03d7b9cfe99029050c7be4"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="ActiveCampaign_Subscriptions.xml" hash="14eb3a0c9c06bc847b4e8c6ff691c07d"/></dir></target><target name="magecommunity"><dir name="ActiveCampaign"><dir name="Subscriptions"><dir name="activecampaign-api-php"><file name="Account.class.php" hash="b6426c518978bbfb4ae032cb6ddcc29c"/><file name="ActiveCampaign.class.php" hash="900f5ef0acd4af4105471feda2917aae"/><file name="Auth.class.php" hash="affc478ccf1622400409d8b623230183"/><file name="Campaign.class.php" hash="229ec1cb98add26450f38aa283f40e5f"/><file name="Connector.class.php" hash="00565cf2997315f627890cd293cc5f48"/><file name="Design.class.php" hash="53104c2ee4f4d54577f385188ba8c9af"/><file name="Form.class.php" hash="2fe24b9e11057e55bb79221fa59a38a7"/><file name="Group.class.php" hash="4712367081b6099bc88440c7ac4c35d0"/><file name="List.class.php" hash="c451709386aaebabeef2d85422e3cf3f"/><file name="Message.class.php" hash="8c072e28994283d0ff7b950df55a6655"/><file name="Contact.class.php" hash="d19e57f06044b5dc98b929b449521a19"/><file name="User.class.php" hash="5a213c94cc6d2a9545856982a38ad26b"/><file name="Webhook.class.php" hash="2933f75823679abd5d178774c8d61682"/><file name="Automation.class.php" hash="f58d2c9ed16fce6c838c50160484363e"/><file name="Subscriber.class.php" hash="94c6b4289e50ea4cf33e98b72e450528"/><file name="Deal.class.php" hash="39b1cacc347584517d4fb145d060082f"/><file name="Tracking.class.php" hash="f84aa5361c44203f90ef14bb08d90a9e"/><file name="Settings.class.php" hash="85a2ffea84086486f5fb9f4325fe701d"/></dir><dir name="Block"><file name="Subscriptions.php" hash="79b032b024a0593188258d4fef3fa733"/><dir name="Adminhtml"><file name="Subscriptions.php" hash="7f9fdec5858ef7a30c1fcd129f13fe67"/><dir name="Subscriptions"><file name="Edit.php" hash="3c464d71d1ad78ae035f810a1248f918"/><file name="Grid.php" hash="b51fc9698c21224488c41826489a8177"/><dir name="Edit"><file name="Form.php" hash="b1eda088b2adf03d69bc1aa3cfb2a00a"/><file name="Tabs.php" hash="4c94ebd27bb6bb0a572131d441afa945"/><dir name="Tab"><file name="Connection.php" hash="230d5a8f70b5de930864b25821290efb"/><file name="Export.php" hash="f65aa906629d6a1b4a17f16014488017"/><file name="List.php" hash="4f2cd4ca088cca5bb2ad1b598c9bc486"/><file name="Form.php" hash="8bf394482cf60f311b8610521888b0d8"/></dir></dir></dir></dir></dir><dir name="controllers"><file name="IndexController.php" hash="f6e27a764745bdb55f17fdca49a7fa81"/><dir name="Adminhtml"><file name="SubscriptionsController.php" hash="d551aa4f14c0394168d177f7922de4f6"/></dir></dir><dir name="etc"><file name="config.xml" hash="40947886dd3611ebeb717de55ef8c240"/></dir><dir name="Helper"><file name="Data.php" hash="4b35d91431328ee595132df575a60a2a"/></dir><dir name="Model"><file name="Observer.php" hash="91aead63e3b6e7d4674b20eb5c2efe96"/><file name="Status.php" hash="c35feda8164009341d289074be5612c0"/><file name="Subscriptions.php" hash="76818326ecfd635e574f704003184300"/><dir name="Mysql4"><file name="Subscriptions.php" hash="d112b3f1194a8bb7f329dacb34161941"/><dir name="Subscriptions"><file name="Collection.php" hash="457890390bd29e72dda81d3088ef5a50"/></dir></dir></dir><dir name="sql"><dir name="subscriptions_setup"><file name="mysql4-install-0.1.0.php" hash="9f756eb38486cc878134f07f22f661c0"/></dir></dir></dir></dir></target></contents>
22
  <compatible/>
23
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php><extension><name>curl</name><min>7.19.7</min><max>7.28.0</max></extension></required></dependencies>
24
  </package>