Iterable_Plugin - Version 1.6.0

Version Notes

Fixes TrackingEventTypes on a case-sensitive file system.

Download this release

Release Info

Developer Ilya Brin
Extension Iterable_Plugin
Version 1.6.0
Comparing to
See all releases


Code changes from version 1.4.5 to 1.6.0

app/code/community/Iterable/TrackOrderPlaced/.idea/foobar ADDED
File without changes
app/code/community/Iterable/TrackOrderPlaced/Helper/Data.php CHANGED
@@ -137,7 +137,7 @@ class Iterable_TrackOrderPlaced_Helper_Data extends Mage_Core_Helper_Abstract {
137
  );
138
  $this->setCurrentIp($dataFields);
139
  $params['dataFields'] = $dataFields;
140
- $eventName = isset($eventNameHint) ? $eventNameHint : Iterable_TrackOrderPlaced_Model_TrackingEventTypes::EVENT_TYPE_USER;
141
  return $this->callIterableApi($eventName, $endpoint, $params);
142
  }
143
 
@@ -155,7 +155,7 @@ class Iterable_TrackOrderPlaced_Helper_Data extends Mage_Core_Helper_Abstract {
155
  if (!empty($dataFields)) {
156
  $params['subscribers'][0]['dataFields'] = $dataFields;
157
  }
158
- return $this->callIterableApi(Iterable_TrackOrderPlaced_Model_TrackingEventTypes::EVENT_TYPE_NEWSLETTER_SUBSCRIBE, $endpoint, $params);
159
  }
160
 
161
  public function unsubscribeEmailFromList($email, $listId) {
@@ -169,7 +169,7 @@ class Iterable_TrackOrderPlaced_Helper_Data extends Mage_Core_Helper_Abstract {
169
  )
170
  // 'campaignId' => iterableCid cookie?
171
  );
172
- return $this->callIterableApi(Iterable_TrackOrderPlaced_Model_TrackingEventTypes::EVENT_TYPE_NEWSLETTER_UNSUBSCRIBE, $endpoint, $params);
173
  }
174
 
175
  public function track($event, $email, $dataFields=array()) {
@@ -195,7 +195,7 @@ class Iterable_TrackOrderPlaced_Helper_Data extends Mage_Core_Helper_Abstract {
195
  if (!empty($dataFields)) {
196
  $params['user']['dataFields'] = $dataFields;
197
  }
198
- return $this->callIterableApi(Iterable_TrackOrderPlaced_Model_TrackingEventTypes::EVENT_TYPE_CART_UPDATED, $endpoint, $params);
199
  }
200
 
201
  public function trackPurchase($email, $items, $total, $campaignId=NULL, $templateId=NULL, $dataFields=array(), $customerDataFields=array()) {
@@ -219,7 +219,7 @@ class Iterable_TrackOrderPlaced_Helper_Data extends Mage_Core_Helper_Abstract {
219
  if ($templateId != NULL) {
220
  $params['templateId'] = $templateId;
221
  }
222
- return $this->callIterableApi(Iterable_TrackOrderPlaced_Model_TrackingEventTypes::EVENT_TYPE_ORDER, $endpoint, $params);
223
  }
224
 
225
  public function triggerCampaign($email, $campaignId, $dataFields=NULL) {
@@ -231,22 +231,22 @@ class Iterable_TrackOrderPlaced_Helper_Data extends Mage_Core_Helper_Abstract {
231
  if (! is_null($dataFields)) {
232
  $params['dataFields'] = $dataFields;
233
  }
234
- return $this->callIterableApi(Iterable_TrackOrderPlaced_Model_TrackingEventTypes::EVENT_TYPE_TRIGGER_EMAIL, $endpoint, $params);
235
  }
236
 
237
  public function trackShipment($email, $shipment) {
238
- return $this->track(Iterable_TrackOrderPlaced_Model_TrackingEventTypes::EVENT_TYPE_SHIPMENT, $email, $shipment);
239
  }
240
 
241
  public function trackReview($email, $review)
242
  {
243
- return $this->track(Iterable_TrackOrderPlaced_Model_TrackingEventTypes::EVENT_TYPE_REVIEW, $email, $review);
244
  }
245
 
246
  public function trackWishlist($email, $wishlist)
247
  {
248
  return $this->updateUser($email, array(
249
  'wishlist' => $wishlist
250
- ), Iterable_TrackOrderPlaced_Model_TrackingEventTypes::EVENT_TYPE_WISHLIST_ADD_PRODUCT);
251
  }
252
  }
137
  );
138
  $this->setCurrentIp($dataFields);
139
  $params['dataFields'] = $dataFields;
140
+ $eventName = isset($eventNameHint) ? $eventNameHint : Iterable_TrackOrderPlaced_Model_Trackingeventtypes::EVENT_TYPE_USER;
141
  return $this->callIterableApi($eventName, $endpoint, $params);
142
  }
143
 
155
  if (!empty($dataFields)) {
156
  $params['subscribers'][0]['dataFields'] = $dataFields;
157
  }
158
+ return $this->callIterableApi(Iterable_TrackOrderPlaced_Model_Trackingeventtypes::EVENT_TYPE_NEWSLETTER_SUBSCRIBE, $endpoint, $params);
159
  }
160
 
161
  public function unsubscribeEmailFromList($email, $listId) {
169
  )
170
  // 'campaignId' => iterableCid cookie?
171
  );
172
+ return $this->callIterableApi(Iterable_TrackOrderPlaced_Model_Trackingeventtypes::EVENT_TYPE_NEWSLETTER_UNSUBSCRIBE, $endpoint, $params);
173
  }
174
 
175
  public function track($event, $email, $dataFields=array()) {
195
  if (!empty($dataFields)) {
196
  $params['user']['dataFields'] = $dataFields;
197
  }
198
+ return $this->callIterableApi(Iterable_TrackOrderPlaced_Model_Trackingeventtypes::EVENT_TYPE_CART_UPDATED, $endpoint, $params);
199
  }
200
 
201
  public function trackPurchase($email, $items, $total, $campaignId=NULL, $templateId=NULL, $dataFields=array(), $customerDataFields=array()) {
219
  if ($templateId != NULL) {
220
  $params['templateId'] = $templateId;
221
  }
222
+ return $this->callIterableApi(Iterable_TrackOrderPlaced_Model_Trackingeventtypes::EVENT_TYPE_ORDER, $endpoint, $params);
223
  }
224
 
225
  public function triggerCampaign($email, $campaignId, $dataFields=NULL) {
231
  if (! is_null($dataFields)) {
232
  $params['dataFields'] = $dataFields;
233
  }
234
+ return $this->callIterableApi(Iterable_TrackOrderPlaced_Model_Trackingeventtypes::EVENT_TYPE_TRIGGER_EMAIL, $endpoint, $params);
235
  }
236
 
237
  public function trackShipment($email, $shipment) {
238
+ return $this->track(Iterable_TrackOrderPlaced_Model_Trackingeventtypes::EVENT_TYPE_SHIPMENT, $email, $shipment);
239
  }
240
 
241
  public function trackReview($email, $review)
242
  {
243
+ return $this->track(Iterable_TrackOrderPlaced_Model_Trackingeventtypes::EVENT_TYPE_REVIEW, $email, $review);
244
  }
245
 
246
  public function trackWishlist($email, $wishlist)
247
  {
248
  return $this->updateUser($email, array(
249
  'wishlist' => $wishlist
250
+ ), Iterable_TrackOrderPlaced_Model_Trackingeventtypes::EVENT_TYPE_WISHLIST_ADD_PRODUCT);
251
  }
252
  }
app/code/community/Iterable/TrackOrderPlaced/Model/Observer.php CHANGED
@@ -427,7 +427,7 @@ class Iterable_TrackOrderPlaced_Model_Observer
427
  'item' => $cartItem
428
  );
429
  $helper = Mage::helper('trackorderplaced');
430
- $helper->track(Iterable_TrackOrderPlaced_Model_TrackingEventTypes::EVENT_TYPE_ADD_TO_CART, $email, $dataFields);
431
  }
432
  */
433
 
427
  'item' => $cartItem
428
  );
429
  $helper = Mage::helper('trackorderplaced');
430
+ $helper->track(Iterable_TrackOrderPlaced_Model_Trackingeventtypes::EVENT_TYPE_ADD_TO_CART, $email, $dataFields);
431
  }
432
  */
433
 
app/code/community/Iterable/TrackOrderPlaced/Model/{TrackingEventTypes.php → Trackingeventtypes.php} RENAMED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- class Iterable_TrackOrderPlaced_Model_TrackingEventTypes
4
  {
5
 
6
  const EVENT_TYPE_ORDER = 'order';
1
  <?php
2
 
3
+ class Iterable_TrackOrderPlaced_Model_Trackingeventtypes
4
  {
5
 
6
  const EVENT_TYPE_ORDER = 'order';
app/code/community/Iterable/TrackOrderPlaced/etc/config.xml CHANGED
@@ -20,7 +20,7 @@
20
  -->
21
  <Iterable_TrackOrderPlaced>
22
  <!-- The version of our module, starting at 0.0.1 -->
23
- <version>0.0.1</version>
24
  </Iterable_TrackOrderPlaced>
25
  </modules>
26
 
20
  -->
21
  <Iterable_TrackOrderPlaced>
22
  <!-- The version of our module, starting at 0.0.1 -->
23
+ <version>1.6.0</version>
24
  </Iterable_TrackOrderPlaced>
25
  </modules>
26
 
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Iterable_Plugin</name>
4
- <version>1.4.5</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/OSL-3.0">Open Software License (OSL) </license>
7
  <channel>community</channel>
@@ -15,11 +15,11 @@ drip marketing campaigns.&#xD;
15
  To install, click the 'Install Now' button above and paste the link into your Magento Connect Manager. You will then see an Iterable section in your Magento Admin view. In the 'Advanced' section, select the events you would like to be sent to Iterable. Then, in the API section, enter your Magento API key from Iterable (located in the API Config section on the left side menu).&#xD;
16
  &#xD;
17
  Questions? Comments? Feel free to contact us at support@iterable.com. Also, for more info or a free demo, please visit us at Iterable.com.</description>
18
- <notes>Support more events.</notes>
19
  <authors><author><name>Ilya Brin</name><user>Iterable</user><email>ilya@iterable.com</email></author></authors>
20
- <date>2014-10-17</date>
21
- <time>23:55:14</time>
22
- <contents><target name="magecommunity"><dir name="Iterable"><dir name="TrackOrderPlaced"><dir name="Helper"><file name="Data.php" hash="9ce6682115181036d2e00ca36e2845c7"/></dir><dir name="Model"><dir name="Email"><file name="Template.php" hash="225b9fb6b5eac3b506813bae86e1f005"/></dir><file name="Observer.php" hash="965051384155f2c05f394b50554b0442"/><file name="TrackingEventTypes.php" hash="da9b860e6e9e6c7bd29a65067b816b20"/></dir><dir name="etc"><file name="config.xml" hash="4c74dd108c3908f77fdb04bd59260691"/><file name="system.xml" hash="32d1f49eb03cd585b7c33a894fe4de15"/></dir><dir name=".idea"><file name="TrackOrderPlaced.iml" hash="64a676a732fd4b7f408cdd46b49aaa24"/><file name="compiler.xml" hash="7e7efa3e3d6514a0ff290e4dfce3cbe9"/><dir name="copyright"><file name="profiles_settings.xml" hash="b1e0b181e080c28b1d116582290e6e97"/></dir><file name="encodings.xml" hash="f1c5edfa5b1a67aabcb9e41674afa252"/><file name="misc.xml" hash="a09f56c13a544171f953e7723e0d4439"/><file name="modules.xml" hash="c93cdff764916047e398fcf5b105a3ed"/><dir name="scopes"><file name="scope_settings.xml" hash="3d0b1957d39aa5636904788c54e654cf"/></dir><file name="vcs.xml" hash="1b4ab30910ae53c73594cd0e3db9840b"/><file name="workspace.xml" hash="6b623904b5b85b0966e42a14d9711d8d"/><file name=".name" hash="8b29e935aaea69d5d9c071be993c4610"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="iterable"><file name="common.xml" hash="d90fbb22fb34fa29deb6b0e131f9e767"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Iterable_TrackOrderPlaced.xml" hash="0d4506dadf95eecb54e215ed03b2c6a7"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="base"><dir name="default"><dir name="iterable"><dir name="images"><file name="section_logo.png" hash="fe5090ba955a890c1efe2c09cb260342"/></dir><file name="iterable.css" hash="4d928c5a4ed76d62e246a57ee868ec23"/></dir></dir></dir></dir></target></contents>
23
  <compatible/>
24
  <dependencies><required><php><min>5.3.1</min><max>6.0.0</max></php></required></dependencies>
25
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Iterable_Plugin</name>
4
+ <version>1.6.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/OSL-3.0">Open Software License (OSL) </license>
7
  <channel>community</channel>
15
  To install, click the 'Install Now' button above and paste the link into your Magento Connect Manager. You will then see an Iterable section in your Magento Admin view. In the 'Advanced' section, select the events you would like to be sent to Iterable. Then, in the API section, enter your Magento API key from Iterable (located in the API Config section on the left side menu).&#xD;
16
  &#xD;
17
  Questions? Comments? Feel free to contact us at support@iterable.com. Also, for more info or a free demo, please visit us at Iterable.com.</description>
18
+ <notes>Fixes TrackingEventTypes on a case-sensitive file system.</notes>
19
  <authors><author><name>Ilya Brin</name><user>Iterable</user><email>ilya@iterable.com</email></author></authors>
20
+ <date>2015-09-11</date>
21
+ <time>01:18:29</time>
22
+ <contents><target name="magecommunity"><dir name="Iterable"><dir name="TrackOrderPlaced"><dir name="Helper"><file name="Data.php" hash="06b62e12204751bfd4a0b9f9c385eb82"/></dir><dir name="Model"><dir name="Email"><file name="Template.php" hash="225b9fb6b5eac3b506813bae86e1f005"/></dir><file name="Observer.php" hash="52381c8207b52476a11a52860e6268f3"/><file name="Trackingeventtypes.php" hash="ebc9e15c1bb02bb6dade12c4be8328e3"/></dir><dir name="etc"><file name="config.xml" hash="5332ebcd72d93a677d05d0a3e938c294"/><file name="system.xml" hash="32d1f49eb03cd585b7c33a894fe4de15"/></dir><dir name=".idea"><file name="TrackOrderPlaced.iml" hash="64a676a732fd4b7f408cdd46b49aaa24"/><file name="compiler.xml" hash="7e7efa3e3d6514a0ff290e4dfce3cbe9"/><dir name="copyright"><file name="profiles_settings.xml" hash="b1e0b181e080c28b1d116582290e6e97"/></dir><file name="encodings.xml" hash="f1c5edfa5b1a67aabcb9e41674afa252"/><file name="foobar" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="misc.xml" hash="a09f56c13a544171f953e7723e0d4439"/><file name="modules.xml" hash="c93cdff764916047e398fcf5b105a3ed"/><dir name="scopes"><file name="scope_settings.xml" hash="3d0b1957d39aa5636904788c54e654cf"/></dir><file name="vcs.xml" hash="1b4ab30910ae53c73594cd0e3db9840b"/><file name="workspace.xml" hash="6b623904b5b85b0966e42a14d9711d8d"/><file name=".name" hash="8b29e935aaea69d5d9c071be993c4610"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="iterable"><file name="common.xml" hash="d90fbb22fb34fa29deb6b0e131f9e767"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Iterable_TrackOrderPlaced.xml" hash="0d4506dadf95eecb54e215ed03b2c6a7"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="base"><dir name="default"><dir name="iterable"><dir name="images"><file name="section_logo.png" hash="fe5090ba955a890c1efe2c09cb260342"/></dir><file name="iterable.css" hash="4d928c5a4ed76d62e246a57ee868ec23"/></dir></dir></dir></dir></target></contents>
23
  <compatible/>
24
  <dependencies><required><php><min>5.3.1</min><max>6.0.0</max></php></required></dependencies>
25
  </package>