Ebizmarts_MageMonkey - Version 1.1.29

Version Notes

1.1.29
--------

-Integrated module Sweet Monkey to add Sweet Tooth loyalty points into the mailing system.

-A/B Testing for Abandoned Carts.

-Added new option on Mailchimp's configuration to send Magento Newsletter confirmation emails.

-Abandoned Cart cron runs every 5 minutes to send the Email Catcher coupon as soon as possible.

-Email Catcher showing 2 times as minimum fixed to be shown only once if set to 1.

-Fixed customer group filter on Abandoned Cart.

-New Order Autoresponder can be sent a configured amount of days after a change of status.

-Typo error on Fifth email title.

-tabs_lonks_over_bg.gif javascript error fixed.

-Show Ebizmarts logo via https on MailChimp's module.

Download this release

Release Info

Developer Magento Core Team
Extension Ebizmarts_MageMonkey
Version 1.1.29
Comparing to
See all releases


Code changes from version 1.1.28 to 1.1.29

Files changed (52) hide show
  1. app/code/community/Ebizmarts/AbandonedCart/Helper/Data.php +49 -0
  2. app/code/community/Ebizmarts/AbandonedCart/Model/Abtesting.php +17 -0
  3. app/code/community/Ebizmarts/AbandonedCart/Model/Config.php +15 -0
  4. app/code/community/Ebizmarts/AbandonedCart/Model/Cron.php +112 -19
  5. app/code/community/Ebizmarts/AbandonedCart/Model/EventObserver.php +43 -2
  6. app/code/community/Ebizmarts/AbandonedCart/Model/Resource/Abtesting.php +18 -0
  7. app/code/community/Ebizmarts/AbandonedCart/Model/Resource/Abtesting/Collection.php +18 -0
  8. app/code/community/Ebizmarts/AbandonedCart/Model/System/Config/Yesnovariation.php +29 -0
  9. app/code/community/Ebizmarts/AbandonedCart/etc/config.xml +32 -4
  10. app/code/community/Ebizmarts/AbandonedCart/etc/system.xml +197 -25
  11. app/code/community/Ebizmarts/AbandonedCart/sql/ebizmarts_abandonedcart_setup/mysql4-upgrade-0.1.30-0.1.31.php +26 -0
  12. app/code/community/Ebizmarts/Autoresponder/Helper/Data.php +49 -0
  13. app/code/community/Ebizmarts/Autoresponder/Model/Cron.php +205 -0
  14. app/code/community/Ebizmarts/Autoresponder/Model/EventObserver.php +1 -1
  15. app/code/community/Ebizmarts/Autoresponder/Model/System/Config/Newordertrigger.php +2 -1
  16. app/code/community/Ebizmarts/Autoresponder/etc/system.xml +3 -3
  17. app/code/community/Ebizmarts/MageMonkey/Helper/Data.php +4 -4
  18. app/code/community/Ebizmarts/MageMonkey/Model/Config.php +1 -0
  19. app/code/community/Ebizmarts/MageMonkey/Model/Cron.php +20 -18
  20. app/code/community/Ebizmarts/MageMonkey/Model/Ecommerce360.php +12 -4
  21. app/code/community/Ebizmarts/MageMonkey/Model/Monkey.php +32 -0
  22. app/code/community/Ebizmarts/MageMonkey/Model/Observer.php +12 -3
  23. app/code/community/Ebizmarts/MageMonkey/Model/Subscriber.php +9 -3
  24. app/code/community/Ebizmarts/MageMonkey/Model/System/Config/Source/CustomerGroup.php +15 -15
  25. app/code/community/Ebizmarts/MageMonkey/etc/config.xml +1 -1
  26. app/code/community/Ebizmarts/MageMonkey/etc/system.xml +11 -0
  27. app/code/community/Ebizmarts/SweetMonkey/Block/Adminhtml/System/Config/Autovars.php +51 -0
  28. app/code/community/Ebizmarts/SweetMonkey/Block/Adminhtml/System/Config/Fieldset/Hint.php +53 -0
  29. app/code/community/Ebizmarts/SweetMonkey/Block/Adminhtml/System/Config/Form/Field/Mapfields.php +28 -0
  30. app/code/community/Ebizmarts/SweetMonkey/Helper/Data.php +47 -0
  31. app/code/community/Ebizmarts/SweetMonkey/Model/Cron.php +92 -0
  32. app/code/community/Ebizmarts/SweetMonkey/Model/Observer.php +161 -0
  33. app/code/community/Ebizmarts/SweetMonkey/controllers/Adminhtml/MageMonkeyController.php +68 -0
  34. app/code/community/Ebizmarts/SweetMonkey/etc/adminhtml.xml +22 -0
  35. app/code/community/Ebizmarts/SweetMonkey/etc/config.xml +142 -0
  36. app/code/community/Ebizmarts/SweetMonkey/etc/system.xml +80 -0
  37. app/design/adminhtml/default/default/template/ebizmarts/mandrill/system/config/fieldset/hint.phtml +1 -1
  38. app/design/adminhtml/default/default/template/magemonkey/system/config/resetlocal360.phtml +10 -10
  39. app/design/adminhtml/default/default/template/sweetmonkey/system/config/autovars.phtml +78 -0
  40. app/design/adminhtml/default/default/template/sweetmonkey/system/config/fieldset/hint.phtml +11 -0
  41. app/design/frontend/base/default/layout/ebizmarts/autoresponder.xml +0 -1
  42. app/design/frontend/base/default/template/ebizmarts_abandonedcart/popup/emailcatcher.phtml +10 -10
  43. app/locale/en_US/Ebizmarts_SweetMonkey.csv +13 -0
  44. app/locale/en_US/template/email/ebizmarts/abandonedcart/abandoned_cart_mail_1.html +4 -1
  45. app/locale/en_US/template/email/ebizmarts/abandonedcart/abandoned_cart_mail_2.html +4 -1
  46. app/locale/en_US/template/email/ebizmarts/abandonedcart/abandoned_cart_mail_3.html +4 -1
  47. app/locale/en_US/template/email/ebizmarts/abandonedcart/popup_coupon_template.html +1 -2
  48. app/locale/en_US/template/email/sweetmonkey/expiry_notice.html +39 -0
  49. app/locale/en_US/template/email/sweetmonkey/points_notice.html +39 -0
  50. package.xml +19 -16
  51. skin/adminhtml/default/default/ebizmarts/ebizmarts.css +1 -1
  52. skin/adminhtml/default/default/ebizmarts/mandrill/mandrill.css +1 -1
app/code/community/Ebizmarts/AbandonedCart/Helper/Data.php CHANGED
@@ -69,4 +69,53 @@ class Ebizmarts_AbandonedCart_Helper_Data extends Mage_Core_Helper_Abstract {
69
  ->setSentAt(Mage::getModel('core/date')->gmtDate())
70
  ->save();
71
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72
  }
69
  ->setSentAt(Mage::getModel('core/date')->gmtDate())
70
  ->save();
71
  }
72
+
73
+ public function getTBTPoints($customerId)
74
+ {
75
+
76
+ $tbtCustomer = Mage::getModel('rewards/customer')->load($customerId);
77
+
78
+ //Point balance
79
+ $tbtVars['pts'] = $tbtCustomer->getPointsSummary();
80
+
81
+ $tbtVars['points'] = $tbtCustomer->getUsablePointsBalance(1);
82
+
83
+ //Earn and Spent points
84
+ $lastTransfers = $tbtCustomer->getTransfers()
85
+ ->selectOnlyActive()
86
+ ->addOrder('last_update_ts', Varien_Data_Collection::SORT_ORDER_DESC);
87
+
88
+ $spent = $earn = null;
89
+
90
+ if ($lastTransfers->getSize()) {
91
+ foreach ($lastTransfers as $transfer) {
92
+
93
+ if (is_null($earn) && $transfer->getQuantity() > 0) {
94
+ $earn = $this->_formatDateMerge($transfer->getEffectiveStart());
95
+ } else if (is_null($spent) && $transfer->getQuantity() < 0) {
96
+ $spent = $this->_formatDateMerge($transfer->getEffectiveStart());
97
+ }
98
+
99
+ if (!is_null($spent) && !is_null($earn)) {
100
+ break;
101
+ }
102
+
103
+ }
104
+ }
105
+
106
+ if ($earn) {
107
+ $tbtVars['ptsearn'] = $earn;
108
+ }
109
+ if ($spent) {
110
+ $tbtVars['ptsspent'] = $spent;
111
+ }
112
+
113
+ //Expiration Points
114
+ $val = Mage::getSingleton('rewards/expiry')
115
+ ->getExpiryDate($tbtCustomer);
116
+ if ($val) {
117
+ $tbtVars['ptsexp'] = $val;
118
+ }
119
+ return $tbtVars;
120
+ }
121
  }
app/code/community/Ebizmarts/AbandonedCart/Model/Abtesting.php ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ *
5
+ * @category Ebizmarts
6
+ * @package Ebizmarts_AbandonedCart
7
+ * @author Ebizmarts Team <info@ebizmarts.com>
8
+ * @license http://opensource.org/licenses/osl-3.0.php
9
+ */
10
+
11
+ class Ebizmarts_AbandonedCart_Model_Abtesting extends Mage_Core_Model_Abstract
12
+ {
13
+ public function _construct() {
14
+ $this->_init('ebizmarts_abandonedcart/abtesting');
15
+ }
16
+
17
+ }
app/code/community/Ebizmarts/AbandonedCart/Model/Config.php CHANGED
@@ -40,6 +40,21 @@ class Ebizmarts_AbandonedCart_Model_Config
40
  const IN_HOURS = 1;
41
  const PAGE = 'ebizmarts_abandonedcart/general/page';
42
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
 
44
  const COUPON_DAYS = "ebizmarts_abandonedcart/coupon/sendon";
45
  const SEND_COUPON = "ebizmarts_abandonedcart/coupon/create";
40
  const IN_HOURS = 1;
41
  const PAGE = 'ebizmarts_abandonedcart/general/page';
42
 
43
+ const AB_TESTING_ACTIVE = 'ebizmarts_abandonedcart/A_Btesting/active';
44
+ const AB_TESTING_MANDRILL_SUFFIX = 'ebizmarts_abandonedcart/A_Btesting/mandrill_suffix';
45
+ const AB_TESTING_FIRST_EMAIL = 'ebizmarts_abandonedcart/A_Btesting/template1';
46
+ const AB_TESTING_SECOND_EMAIL = 'ebizmarts_abandonedcart/A_Btesting/template2';
47
+ const AB_TESTING_THIRD_EMAIL = 'ebizmarts_abandonedcart/A_Btesting/template3';
48
+ const AB_TESTING_FOURTH_EMAIL = 'ebizmarts_abandonedcart/A_Btesting/template4';
49
+ const AB_TESTING_FIFTH_EMAIL = 'ebizmarts_abandonedcart/A_Btesting/template5';
50
+ const AB_TESTING_EMAIL_TEMPLATE = 'ebizmarts_abandonedcart/A_Btesting/coupon_template';
51
+ const AB_TESTING_FIRST_SUBJECT = "ebizmarts_abandonedcart/A_Btesting/subject1";
52
+ const AB_TESTING_SECOND_SUBJECT = "ebizmarts_abandonedcart/A_Btesting/subject2";
53
+ const AB_TESTING_THIRD_SUBJECT = "ebizmarts_abandonedcart/A_Btesting/subject3";
54
+ const AB_TESTING_FOURTH_SUBJECT = "ebizmarts_abandonedcart/A_Btesting/subject4";
55
+ const AB_TESTING_FIFTH_SUBJECT = "ebizmarts_abandonedcart/A_Btesting/subject5";
56
+ const AB_TESTING_COUPON_SENDON = "ebizmarts_abandonedcart/A_Btesting/A_Btesting_sendon";
57
+
58
 
59
  const COUPON_DAYS = "ebizmarts_abandonedcart/coupon/sendon";
60
  const SEND_COUPON = "ebizmarts_abandonedcart/coupon/create";
app/code/community/Ebizmarts/AbandonedCart/Model/Cron.php CHANGED
@@ -49,6 +49,18 @@ class Ebizmarts_AbandonedCart_Model_Cron
49
  Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);
50
  Mage::getSingleton('core/design_package' )->setStore($storeId);
51
 
 
 
 
 
 
 
 
 
 
 
 
 
52
  $adapter = Mage::getSingleton('core/resource')->getConnection('sales_read');
53
  $days = array(
54
  0 => Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::DAYS_1, $storeId),
@@ -58,12 +70,18 @@ class Ebizmarts_AbandonedCart_Model_Cron
58
  4 => Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::DAYS_5, $storeId)
59
  );
60
  $maxtimes = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::MAXTIMES, $storeId)+1;
61
- $sendcoupondays = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::COUPON_DAYS, $storeId);
62
  $sendcoupon = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::SEND_COUPON, $storeId);
63
  $firstdate = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::FIRST_DATE, $storeId);
64
  $unit = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::UNIT, $storeId);
65
  $customergroups = explode(",",Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::CUSTOMER_GROUPS, $storeId));
66
- $mandrillTag = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::MANDRILL_TAG, $storeId)."_$storeId";
 
 
 
 
 
 
 
67
 
68
  //coupon vars
69
  $couponamount = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::COUPON_AMOUNT, $storeId);
@@ -107,7 +125,7 @@ class Ebizmarts_AbandonedCart_Model_Cron
107
 
108
  $collection->addFieldToFilter('main_table.customer_email', array('neq' => ''));
109
  if(count($customergroups)) {
110
- $collection->addFieldToFilter('main_table.customer_group_id', array('in', $customergroups));
111
  }
112
 
113
  // for each cart of the current run
@@ -186,7 +204,11 @@ class Ebizmarts_AbandonedCart_Model_Cron
186
  //$url = Mage::getBaseUrl('web').'ebizmarts_abandonedcart/abandoned/loadquote?id='.$quote->getEntityId();
187
  //srand((double)microtime()*1000000);
188
  $token = md5(rand(0,9999999));
189
- $url = Mage::getModel('core/url')->setStore($storeId)->getUrl('',array('_nosid'=>true)).'ebizmarts_abandonedcart/abandoned/loadquote?id='.$quote->getEntityId().'&token='.$token;
 
 
 
 
190
 
191
  $data = array('AbandonedURL'=>$url, 'AbandonedDate' => $quote->getUpdatedAt());
192
 
@@ -212,9 +234,8 @@ class Ebizmarts_AbandonedCart_Model_Cron
212
 
213
  // if days have passed proceed to send mail
214
  if ($updatedAtDiff >= $diff) {
215
-
216
- $mailsubject = $this->_getMailSubject($run, $storeId);
217
- $templateId = $this->_getTemplateId($run, $storeId);
218
  if ($sendcoupon && $run + 1 == $sendcoupondays) {
219
  //$templateId = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::EMAIL_TEMPLATE_XML_PATH);
220
  // create a new coupon
@@ -233,6 +254,23 @@ class Ebizmarts_AbandonedCart_Model_Cron
233
  $vars = array('quote' => $quote, 'url' => $url, 'unsubscribeurl' => $unsubscribeUrl, 'tags' => array($mandrillTag));
234
 
235
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
236
  Mage::app()->getTranslator()->init('frontend', true);
237
  $translate = Mage::getSingleton('core/translate');
238
  $mail = Mage::getModel('core/email_template')->setTemplateSubject($mailsubject)->sendTransactional($templateId, $sender, $email, $name, $vars, $storeId);
@@ -240,6 +278,14 @@ class Ebizmarts_AbandonedCart_Model_Cron
240
  $quote2->setEbizmartsAbandonedcartCounter($quote2->getEbizmartsAbandonedcartCounter() + 1);
241
  $quote2->setEbizmartsAbandonedcartToken($token);
242
  $quote2->save();
 
 
 
 
 
 
 
 
243
  Mage::helper('ebizmarts_abandonedcart')->saveMail('abandoned cart', $email, $name, $couponcode, $storeId);
244
  }
245
  }
@@ -269,6 +315,9 @@ class Ebizmarts_AbandonedCart_Model_Cron
269
 
270
  foreach($collection as $item) {
271
  $email = $item->getEmail();
 
 
 
272
  $emailArr = explode('@', $email);
273
  $pseudoName = $emailArr[0];
274
  if (Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::POPUP_COUPON_AUTOMATIC, $storeId) == 2) {
@@ -278,6 +327,10 @@ class Ebizmarts_AbandonedCart_Model_Cron
278
  $couponcode = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::POPUP_COUPON_CODE);
279
  $vars = array('couponcode' => $couponcode, 'name' => $pseudoName, 'tags' => array($tags));
280
  }
 
 
 
 
281
  $translate = Mage::getSingleton('core/translate');
282
  $mail = Mage::getModel('core/email_template')->setTemplateSubject($mailSubject)->sendTransactional($templateId, $sender, $email, $pseudoName, $vars, $storeId);
283
  $item->setProcessed(1)->save();
@@ -384,24 +437,44 @@ class Ebizmarts_AbandonedCart_Model_Cron
384
  * @param $store
385
  * @return mixed|null
386
  */
387
- protected function _getMailSubject($currentCount, $store){
388
 
389
  $ret = NULL;
390
  switch($currentCount){
391
  case 0:
392
- $ret = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::FIRST_SUBJECT, $store);
 
 
 
 
393
  break;
394
  case 1:
395
- $ret = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::SECOND_SUBJECT, $store);
 
 
 
 
396
  break;
397
  case 2:
398
- $ret = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::THIRD_SUBJECT, $store);
 
 
 
 
399
  break;
400
  case 3:
401
- $ret = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::FOURTH_SUBJECT, $store);
 
 
 
 
402
  break;
403
  case 4:
404
- $ret = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::FIFTH_SUBJECT, $store);
 
 
 
 
405
  break;
406
  }
407
  return $ret;
@@ -412,24 +485,44 @@ class Ebizmarts_AbandonedCart_Model_Cron
412
  * @param $currentCount
413
  * @return mixed
414
  */
415
- protected function _getTemplateId($currentCount, $store){
416
 
417
  $ret = NULL;
418
  switch($currentCount){
419
  case 0:
420
- $ret = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::FIRST_EMAIL_TEMPLATE_XML_PATH, $store);
 
 
 
 
421
  break;
422
  case 1:
423
- $ret = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::SECOND_EMAIL_TEMPLATE_XML_PATH, $store);
 
 
 
 
424
  break;
425
  case 2:
426
- $ret = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::THIRD_EMAIL_TEMPLATE_XML_PATH, $store);
 
 
 
 
427
  break;
428
  case 3:
429
- $ret = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::FOURTH_EMAIL_TEMPLATE_XML_PATH, $store);
 
 
 
 
430
  break;
431
  case 4:
432
- $ret = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::FIFTH_EMAIL_TEMPLATE_XML_PATH, $store);
 
 
 
 
433
  break;
434
  }
435
  return $ret;
49
  Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);
50
  Mage::getSingleton('core/design_package' )->setStore($storeId);
51
 
52
+ $abTesting = false;
53
+ $item = Mage::getModel('ebizmarts_abandonedcart/abtesting')->getCollection()
54
+ ->addFieldToFilter('store_id', array('eq'=>$storeId))
55
+ ->getFirstItem();
56
+ if($item) {
57
+ $status = $item->getCurrentStatus();
58
+ if (Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::AB_TESTING_ACTIVE, $storeId) && $status == 1) {
59
+ $abTesting = true;
60
+ $suffix = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::AB_TESTING_MANDRILL_SUFFIX, $storeId);
61
+ }
62
+ }
63
+
64
  $adapter = Mage::getSingleton('core/resource')->getConnection('sales_read');
65
  $days = array(
66
  0 => Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::DAYS_1, $storeId),
70
  4 => Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::DAYS_5, $storeId)
71
  );
72
  $maxtimes = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::MAXTIMES, $storeId)+1;
 
73
  $sendcoupon = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::SEND_COUPON, $storeId);
74
  $firstdate = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::FIRST_DATE, $storeId);
75
  $unit = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::UNIT, $storeId);
76
  $customergroups = explode(",",Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::CUSTOMER_GROUPS, $storeId));
77
+ $mandrillTag = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::MANDRILL_TAG, $storeId) . "_$storeId";
78
+
79
+ if($abTesting) {
80
+ $mandrillTag .= '_'.$suffix;
81
+ $sendcoupondays = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::AB_TESTING_COUPON_SENDON, $storeId);
82
+ }else{
83
+ $sendcoupondays = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::COUPON_DAYS, $storeId);
84
+ }
85
 
86
  //coupon vars
87
  $couponamount = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::COUPON_AMOUNT, $storeId);
125
 
126
  $collection->addFieldToFilter('main_table.customer_email', array('neq' => ''));
127
  if(count($customergroups)) {
128
+ $collection->addFieldToFilter('main_table.customer_group_id', array('in' => $customergroups));
129
  }
130
 
131
  // for each cart of the current run
204
  //$url = Mage::getBaseUrl('web').'ebizmarts_abandonedcart/abandoned/loadquote?id='.$quote->getEntityId();
205
  //srand((double)microtime()*1000000);
206
  $token = md5(rand(0,9999999));
207
+ if($abTesting){
208
+ $url = Mage::getModel('core/url')->setStore($storeId)->getUrl('', array('_nosid' => true)) . 'ebizmarts_abandonedcart/abandoned/loadquote?id=' . $quote->getEntityId() . '&token=' . $token . '&' . $suffix;
209
+ }else {
210
+ $url = Mage::getModel('core/url')->setStore($storeId)->getUrl('', array('_nosid' => true)) . 'ebizmarts_abandonedcart/abandoned/loadquote?id=' . $quote->getEntityId() . '&token=' . $token;
211
+ }
212
 
213
  $data = array('AbandonedURL'=>$url, 'AbandonedDate' => $quote->getUpdatedAt());
214
 
234
 
235
  // if days have passed proceed to send mail
236
  if ($updatedAtDiff >= $diff) {
237
+ $mailsubject = $this->_getMailSubject($run, $abTesting, $storeId);
238
+ $templateId = $this->_getTemplateId($run, $abTesting, $storeId);
 
239
  if ($sendcoupon && $run + 1 == $sendcoupondays) {
240
  //$templateId = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::EMAIL_TEMPLATE_XML_PATH);
241
  // create a new coupon
254
  $vars = array('quote' => $quote, 'url' => $url, 'unsubscribeurl' => $unsubscribeUrl, 'tags' => array($mandrillTag));
255
 
256
  }
257
+
258
+ $customer = Mage::getModel('customer/customer')
259
+ ->setStore(Mage::app()->getStore($storeId))
260
+ ->loadByEmail($email);
261
+ if($customer->getId()) {
262
+ $tbtPoints = Mage::helper('ebizmarts_abandonedcart')->getTBTPoints($customer->getId());
263
+ foreach ($tbtPoints as $key => $field) {
264
+ if ($key == 'points') {
265
+ if ($field >= Mage::getStoreConfig('sweetmonkey/general/email_points', $storeId)) {
266
+ $vars[$key] = $field;
267
+ }
268
+ } else {
269
+ $vars[$key] = $field;
270
+ }
271
+ }
272
+ }
273
+
274
  Mage::app()->getTranslator()->init('frontend', true);
275
  $translate = Mage::getSingleton('core/translate');
276
  $mail = Mage::getModel('core/email_template')->setTemplateSubject($mailsubject)->sendTransactional($templateId, $sender, $email, $name, $vars, $storeId);
278
  $quote2->setEbizmartsAbandonedcartCounter($quote2->getEbizmartsAbandonedcartCounter() + 1);
279
  $quote2->setEbizmartsAbandonedcartToken($token);
280
  $quote2->save();
281
+
282
+ if(Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::AB_TESTING_ACTIVE, $storeId)) {
283
+ $counterCollection = Mage::getModel('ebizmarts_abandonedcart/abtesting')->getCollection()
284
+ ->addFieldToFilter('store_id', array('eq' => $storeId));
285
+ $counter = $counterCollection->getFirstItem();
286
+ $counter->setCurrentStatus($counter->getCurrentStatus() + 1)
287
+ ->save();
288
+ }
289
  Mage::helper('ebizmarts_abandonedcart')->saveMail('abandoned cart', $email, $name, $couponcode, $storeId);
290
  }
291
  }
315
 
316
  foreach($collection as $item) {
317
  $email = $item->getEmail();
318
+ $customer = Mage::getModel('customer/customer')
319
+ ->setStore(Mage::app()->getStore($storeId))
320
+ ->loadByEmail($email);
321
  $emailArr = explode('@', $email);
322
  $pseudoName = $emailArr[0];
323
  if (Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::POPUP_COUPON_AUTOMATIC, $storeId) == 2) {
327
  $couponcode = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::POPUP_COUPON_CODE);
328
  $vars = array('couponcode' => $couponcode, 'name' => $pseudoName, 'tags' => array($tags));
329
  }
330
+ $tbtPoints = Mage::helper('ebizmarts_abandonedcart')->getTBTPoints($customer->getId());
331
+ if($tbtPoints){
332
+ $vars['sweetMonkey'] = $tbtPoints;
333
+ }
334
  $translate = Mage::getSingleton('core/translate');
335
  $mail = Mage::getModel('core/email_template')->setTemplateSubject($mailSubject)->sendTransactional($templateId, $sender, $email, $pseudoName, $vars, $storeId);
336
  $item->setProcessed(1)->save();
437
  * @param $store
438
  * @return mixed|null
439
  */
440
+ protected function _getMailSubject($currentCount, $abTesting = false, $store){
441
 
442
  $ret = NULL;
443
  switch($currentCount){
444
  case 0:
445
+ if($abTesting) {
446
+ $ret = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::AB_TESTING_FIRST_SUBJECT, $store);
447
+ }else{
448
+ $ret = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::FIRST_SUBJECT, $store);
449
+ }
450
  break;
451
  case 1:
452
+ if($abTesting) {
453
+ $ret = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::AB_TESTING_SECOND_SUBJECT, $store);
454
+ }else{
455
+ $ret = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::SECOND_SUBJECT, $store);
456
+ }
457
  break;
458
  case 2:
459
+ if($abTesting) {
460
+ $ret = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::AB_TESTING_THIRD_SUBJECT, $store);
461
+ }else{
462
+ $ret = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::THIRD_SUBJECT, $store);
463
+ }
464
  break;
465
  case 3:
466
+ if($abTesting) {
467
+ $ret = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::AB_TESTING_FOURTH_SUBJECT, $store);
468
+ }else{
469
+ $ret = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::FOURTH_SUBJECT, $store);
470
+ }
471
  break;
472
  case 4:
473
+ if($abTesting) {
474
+ $ret = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::AB_TESTING_FIFTH_SUBJECT, $store);
475
+ }else{
476
+ $ret = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::FIFTH_SUBJECT, $store);
477
+ }
478
  break;
479
  }
480
  return $ret;
485
  * @param $currentCount
486
  * @return mixed
487
  */
488
+ protected function _getTemplateId($currentCount, $abTesting=false, $store){
489
 
490
  $ret = NULL;
491
  switch($currentCount){
492
  case 0:
493
+ if($abTesting) {
494
+ $ret = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::AB_TESTING_FIRST_EMAIL, $store);
495
+ }else{
496
+ $ret = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::FIRST_EMAIL_TEMPLATE_XML_PATH, $store);
497
+ }
498
  break;
499
  case 1:
500
+ if($abTesting) {
501
+ $ret = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::AB_TESTING_SECOND_EMAIL, $store);
502
+ }else{
503
+ $ret = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::SECOND_EMAIL_TEMPLATE_XML_PATH, $store);
504
+ }
505
  break;
506
  case 2:
507
+ if($abTesting) {
508
+ $ret = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::AB_TESTING_THIRD_EMAIL, $store);
509
+ }else{
510
+ $ret = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::THIRD_EMAIL_TEMPLATE_XML_PATH, $store);
511
+ }
512
  break;
513
  case 3:
514
+ if($abTesting) {
515
+ $ret = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::AB_TESTING_FOURTH_EMAIL, $store);
516
+ }else{
517
+ $ret = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::FOURTH_EMAIL_TEMPLATE_XML_PATH, $store);
518
+ }
519
  break;
520
  case 4:
521
+ if($abTesting) {
522
+ $ret = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::AB_TESTING_FIFTH_EMAIL, $store);
523
+ }else{
524
+ $ret = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::FIFTH_EMAIL_TEMPLATE_XML_PATH, $store);
525
+ }
526
  break;
527
  }
528
  return $ret;
app/code/community/Ebizmarts/AbandonedCart/Model/EventObserver.php CHANGED
@@ -22,11 +22,52 @@ class Ebizmarts_AbandonedCart_Model_EventObserver
22
  $scope = 'default';
23
  }
24
 
 
25
  $store = is_null($observer->getEvent()->getStore()) ? Mage::app()->getDefaultStoreView()->getCode(): $observer->getEvent()->getStore();
26
  if(!Mage::helper('ebizmarts_mandrill')->useTransactionalService()) {
27
  $config = new Mage_Core_Model_Config();
28
  $config->saveConfig(Ebizmarts_AbandonedCart_Model_Config::ACTIVE,false,$scope,$store);
29
  $config->saveConfig(Ebizmarts_AbandonedCart_Model_Config::ENABLE_POPUP,false,$scope,$store);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
  Mage::getConfig()->cleanCache();
31
  }
32
 
@@ -34,9 +75,9 @@ class Ebizmarts_AbandonedCart_Model_EventObserver
34
 
35
  public function loadCustomer(Varien_Event_Observer $observer){
36
  $quote = $observer->getEvent()->getQuote();
37
- if(!Mage::getSingleton('customer/session')->isLoggedIn()) {
38
  $action = Mage::app()->getRequest()->getActionName();
39
- $onCheckout = $action == 'saveOrder' || $action == 'savePayment' || $action == 'saveShippingMethod' || $action == 'saveBilling';
40
  if (isset($_COOKIE['email']) && $_COOKIE['email'] != 'none' && !$onCheckout) {
41
  $email = str_replace(' ', '+', $_COOKIE['email']);
42
  if($quote->getCustomerEmail() != $email){
22
  $scope = 'default';
23
  }
24
 
25
+ $cleanCache = false;
26
  $store = is_null($observer->getEvent()->getStore()) ? Mage::app()->getDefaultStoreView()->getCode(): $observer->getEvent()->getStore();
27
  if(!Mage::helper('ebizmarts_mandrill')->useTransactionalService()) {
28
  $config = new Mage_Core_Model_Config();
29
  $config->saveConfig(Ebizmarts_AbandonedCart_Model_Config::ACTIVE,false,$scope,$store);
30
  $config->saveConfig(Ebizmarts_AbandonedCart_Model_Config::ENABLE_POPUP,false,$scope,$store);
31
+ $cleanCache = true;
32
+ }
33
+
34
+ if(Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::SEND_COUPON, $store)){
35
+ $couponActive = '-';
36
+ }else{
37
+ $couponActive = '';
38
+ }
39
+
40
+ if(Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::AB_TESTING_ACTIVE, $store)) {
41
+ $stores = Mage::app()->getStores();
42
+
43
+ foreach($stores as $_store) {
44
+ $storeId = Mage::app()->getStore($_store)->getId();
45
+ $collection = Mage::getModel('ebizmarts_abandonedcart/abtesting')->getCollection()
46
+ ->addFieldToFilter('store_id', array('eq' => $storeId));
47
+ if (count($collection) == 0) {
48
+ Mage::getModel('ebizmarts_abandonedcart/abtesting')
49
+ ->setStoreId($storeId)
50
+ ->setCurrentStatus(0)
51
+ ->save();
52
+ }
53
+ }
54
+ //if AB Testing active and its value is different than max number if coupon disabled or different than -max if coupon enabled number change it in order to display the correct settings.
55
+ if (Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::AB_TESTING_ACTIVE, $store) != $couponActive . Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::MAXTIMES, $store)) {
56
+ if (!$config) {
57
+ $config = new Mage_Core_Model_Config();
58
+ }
59
+ if (Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::SEND_COUPON, $store)) {
60
+ $config->saveConfig(Ebizmarts_AbandonedCart_Model_Config::AB_TESTING_ACTIVE, -Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::MAXTIMES, $store), $scope, $store);
61
+ } else {
62
+ $config->saveConfig(Ebizmarts_AbandonedCart_Model_Config::AB_TESTING_ACTIVE, Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::MAXTIMES, $store), $scope, $store);
63
+ }
64
+ $message = Mage::helper('ebizmarts_abandonedcart')->__('Displayed options on A/B Testing section have changed. Please verify everything is correctly set.');
65
+ Mage::getSingleton('adminhtml/session')->addWarning($message);
66
+ $cleanCache = true;
67
+ }
68
+ }
69
+
70
+ if($cleanCache){
71
  Mage::getConfig()->cleanCache();
72
  }
73
 
75
 
76
  public function loadCustomer(Varien_Event_Observer $observer){
77
  $quote = $observer->getEvent()->getQuote();
78
+ if(!Mage::getSingleton('customer/session')->isLoggedIn() && Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::ENABLE_POPUP, $quote->getStoreId())) {
79
  $action = Mage::app()->getRequest()->getActionName();
80
+ $onCheckout = ($action == 'saveOrder' || $action == 'savePayment' || $action == 'saveShippingMethod' || $action == 'saveBilling');
81
  if (isset($_COOKIE['email']) && $_COOKIE['email'] != 'none' && !$onCheckout) {
82
  $email = str_replace(' ', '+', $_COOKIE['email']);
83
  if($quote->getCustomerEmail() != $email){
app/code/community/Ebizmarts/AbandonedCart/Model/Resource/Abtesting.php ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ *
5
+ * @category Ebizmarts
6
+ * @package Ebizmarts_AbandonedCart
7
+ * @author Ebizmarts Team <info@ebizmarts.com>
8
+ * @license http://opensource.org/licenses/osl-3.0.php
9
+ */
10
+
11
+ class Ebizmarts_AbandonedCart_Model_Resource_Abtesting extends Mage_Core_Model_Mysql4_Abstract
12
+ {
13
+ public function _construct()
14
+ {
15
+ $this->_init('ebizmarts_abandonedcart/abtesting','id');
16
+ }
17
+
18
+ }
app/code/community/Ebizmarts/AbandonedCart/Model/Resource/Abtesting/Collection.php ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ *
5
+ * @category Ebizmarts
6
+ * @package Ebizmarts_AbandonedCart
7
+ * @author Ebizmarts Team <info@ebizmarts.com>
8
+ * @license http://opensource.org/licenses/osl-3.0.php
9
+ */
10
+
11
+ class Ebizmarts_AbandonedCart_Model_Resource_Abtesting_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
12
+ {
13
+ protected function _construct()
14
+ {
15
+ $this->_init('ebizmarts_abandonedcart/abtesting');
16
+ }
17
+ }
18
+
app/code/community/Ebizmarts/AbandonedCart/Model/System/Config/Yesnovariation.php ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ *
5
+ * @category Ebizmarts
6
+ * @package Ebizmarts_AbandonedCart
7
+ * @author Ebizmarts Team <info@ebizmarts.com>
8
+ * @license http://opensource.org/licenses/osl-3.0.php
9
+ */
10
+
11
+ class Ebizmarts_AbandonedCart_Model_System_Config_Yesnovariation
12
+ {
13
+ public function toOptionArray()
14
+ {
15
+ $code = Mage::getSingleton('adminhtml/config_data')->getStore();
16
+ $storeId = Mage::getModel('core/store')->load($code)->getId();
17
+ if(Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::SEND_COUPON, $storeId)){
18
+ $active = -Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::MAXTIMES, $storeId);
19
+ }else{
20
+ $active = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::MAXTIMES, $storeId);
21
+ }
22
+ $options = array(
23
+ array('value'=> 0, 'label' => Mage::helper('ebizmarts_abandonedcart')->__('No')),
24
+ array('value'=> $active, 'label' => Mage::helper('ebizmarts_abandonedcart')->__('Yes'))
25
+ );
26
+ return $options;
27
+ }
28
+
29
+ }
app/code/community/Ebizmarts/AbandonedCart/etc/config.xml CHANGED
@@ -10,7 +10,7 @@
10
  <config>
11
  <modules>
12
  <Ebizmarts_AbandonedCart>
13
- <version>0.1.30</version>
14
  </Ebizmarts_AbandonedCart>
15
  </modules>
16
  <global>
@@ -46,6 +46,31 @@
46
  <file>ebizmarts/abandonedcart/popup_coupon_template.html</file>
47
  <type>html</type>
48
  </ebizmarts_abandonedcart_emailcatcher_popup_coupon_template>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
  </email>
50
  </template>
51
  <ebizmarts_abandonedcart>
@@ -66,6 +91,9 @@
66
  <popup>
67
  <table>ebizmarts_abandonedcart_popup</table>
68
  </popup>
 
 
 
69
  </entities>
70
  </ebizmarts_abandonedcart_resource>
71
  </models>
@@ -179,7 +207,7 @@
179
  <jobs>
180
  <ebizmarts_abandoned_cart>
181
  <schedule>
182
- <cron_expr>0 */1 * * *</cron_expr>
183
  </schedule>
184
  <run>
185
  <model>ebizmarts_abandonedcart/cron::abandoned</model>
@@ -210,8 +238,8 @@
210
  <emailcatcher>
211
  <popup_cancel>1</popup_cancel>
212
  <popup_subscription>1</popup_subscription>
213
- <popup_heading>Welcome to our store!</popup_heading>
214
- <popup_text>Please enter your email address to get the most of our store and improve your shopping experience.</popup_text>
215
  <popup_width>410</popup_width>
216
  <popup_cookie_time>1</popup_cookie_time>
217
  <popup_insist>1</popup_insist>
10
  <config>
11
  <modules>
12
  <Ebizmarts_AbandonedCart>
13
+ <version>0.1.31</version>
14
  </Ebizmarts_AbandonedCart>
15
  </modules>
16
  <global>
46
  <file>ebizmarts/abandonedcart/popup_coupon_template.html</file>
47
  <type>html</type>
48
  </ebizmarts_abandonedcart_emailcatcher_popup_coupon_template>
49
+ <ebizmarts_abandonedcart_A_Btesting_template1 translate="label" module="ebizmarts_abandonedcart">
50
+ <label>First A/B Testing Abandoned Cart Mail</label>
51
+ <file>ebizmarts/abandonedcart/abandoned_cart_mail_generic.html</file>
52
+ <type>html</type>
53
+ </ebizmarts_abandonedcart_A_Btesting_template1>
54
+ <ebizmarts_abandonedcart_A_Btesting_template2 translate="label" module="ebizmarts_abandonedcart">
55
+ <label>Second A/B Testing Abandoned Cart Mail</label>
56
+ <file>ebizmarts/abandonedcart/abandoned_cart_mail_generic.html</file>
57
+ <type>html</type>
58
+ </ebizmarts_abandonedcart_A_Btesting_template2>
59
+ <ebizmarts_abandonedcart_A_Btesting_template3 translate="label" module="ebizmarts_abandonedcart">
60
+ <label>Third A/B Testing Abandoned Cart Mail</label>
61
+ <file>ebizmarts/abandonedcart/abandoned_cart_mail_generic.html</file>
62
+ <type>html</type>
63
+ </ebizmarts_abandonedcart_A_Btesting_template3>
64
+ <ebizmarts_abandonedcart_A_Btesting_template4 translate="label" module="ebizmarts_abandonedcart">
65
+ <label>Fourth A/B Testing Abandoned Cart Mail</label>
66
+ <file>ebizmarts/abandonedcart/abandoned_cart_mail_generic.html</file>
67
+ <type>html</type>
68
+ </ebizmarts_abandonedcart_A_Btesting_template4>
69
+ <ebizmarts_abandonedcart_A_Btesting_template5 translate="label" module="ebizmarts_abandonedcart">
70
+ <label>Fifth A/B Testing Abandoned Cart Mail</label>
71
+ <file>ebizmarts/abandonedcart/abandoned_cart_mail_generic.html</file>
72
+ <type>html</type>
73
+ </ebizmarts_abandonedcart_A_Btesting_template5>
74
  </email>
75
  </template>
76
  <ebizmarts_abandonedcart>
91
  <popup>
92
  <table>ebizmarts_abandonedcart_popup</table>
93
  </popup>
94
+ <abtesting>
95
+ <table>ebizmarts_abandonedcart_abtesting</table>
96
+ </abtesting>
97
  </entities>
98
  </ebizmarts_abandonedcart_resource>
99
  </models>
207
  <jobs>
208
  <ebizmarts_abandoned_cart>
209
  <schedule>
210
+ <cron_expr>*/5 * * * *</cron_expr>
211
  </schedule>
212
  <run>
213
  <model>ebizmarts_abandonedcart/cron::abandoned</model>
238
  <emailcatcher>
239
  <popup_cancel>1</popup_cancel>
240
  <popup_subscription>1</popup_subscription>
241
+ <popup_heading>Send us your email!</popup_heading>
242
+ <popup_text>Put your email here for us to get to know you and personalize your service.</popup_text>
243
  <popup_width>410</popup_width>
244
  <popup_cookie_time>1</popup_cookie_time>
245
  <popup_insist>1</popup_insist>
app/code/community/Ebizmarts/AbandonedCart/etc/system.xml CHANGED
@@ -12,7 +12,7 @@
12
  <ebizmarts_abandonedcart translate="label" module="ebizmarts_abandonedcart">
13
  <label><![CDATA[Abandoned Carts Recovery]]></label>
14
  <tab>monkey</tab>
15
- <sort_order>300</sort_order>
16
  <show_in_default>1</show_in_default>
17
  <show_in_website>1</show_in_website>
18
  <show_in_store>1</show_in_store>
@@ -301,7 +301,7 @@
301
  </depends>
302
  </days4>
303
  <subject5 translate="label comment">
304
- <label>Fourth Email Subject</label>
305
  <frontend_type>text</frontend_type>
306
  <sort_order>50</sort_order>
307
  <show_in_default>1</show_in_default>
@@ -346,7 +346,7 @@
346
  <label>Customer Groups</label>
347
  <frontend_type>multiselect</frontend_type>
348
  <source_model>ebizmarts_abandonedcart/system_config_customergroup</source_model>
349
- <sort_order>70</sort_order>
350
  <show_in_default>1</show_in_default>
351
  <show_in_website>1</show_in_website>
352
  <show_in_store>1</show_in_store>
@@ -360,7 +360,7 @@
360
  <label>Auto Login link</label>
361
  <frontend_type>select</frontend_type>
362
  <source_model>adminhtml/system_config_source_yesno</source_model>
363
- <sort_order>80</sort_order>
364
  <show_in_default>1</show_in_default>
365
  <show_in_website>1</show_in_website>
366
  <show_in_store>1</show_in_store>
@@ -369,12 +369,11 @@
369
  <active>1</active>
370
  </depends>
371
  </autologin>
372
-
373
  </fields>
374
  </general>
375
  <coupon>
376
  <label>Coupon</label>
377
- <sort_order>99</sort_order>
378
  <frontend_type>text</frontend_type>
379
  <show_in_default>1</show_in_default>
380
  <show_in_website>1</show_in_website>
@@ -384,7 +383,7 @@
384
  <label>Create Coupon?</label>
385
  <frontend_type>select</frontend_type>
386
  <source_model>adminhtml/system_config_source_yesno</source_model>
387
- <sort_order>100</sort_order>
388
  <show_in_default>1</show_in_default>
389
  <show_in_website>1</show_in_website>
390
  <show_in_store>1</show_in_store>
@@ -392,7 +391,7 @@
392
  <sendon translate="label">
393
  <label>On email number?</label>
394
  <frontend_type>text</frontend_type>
395
- <sort_order>110</sort_order>
396
  <show_in_default>1</show_in_default>
397
  <show_in_website>1</show_in_website>
398
  <show_in_store>1</show_in_store>
@@ -406,7 +405,7 @@
406
  <label>Option</label>
407
  <frontend_type>select</frontend_type>
408
  <source_model>ebizmarts_abandonedcart/system_config_automatic</source_model>
409
- <sort_order>115</sort_order>
410
  <show_in_default>1</show_in_default>
411
  <show_in_website>1</show_in_website>
412
  <show_in_store>1</show_in_store>
@@ -417,7 +416,7 @@
417
  <couponcode>
418
  <label>Coupon Code</label>
419
  <frontend_type>text</frontend_type>
420
- <sort_order>120</sort_order>
421
  <show_in_default>1</show_in_default>
422
  <show_in_website>1</show_in_website>
423
  <show_in_store>1</show_in_store>
@@ -431,7 +430,7 @@
431
  <expire>
432
  <label>Expire on</label>
433
  <frontend_type>text</frontend_type>
434
- <sort_order>120</sort_order>
435
  <show_in_default>1</show_in_default>
436
  <show_in_website>1</show_in_website>
437
  <show_in_store>1</show_in_store>
@@ -445,7 +444,7 @@
445
  <length>
446
  <label>Coupon length</label>
447
  <frontend_type>text</frontend_type>
448
- <sort_order>130</sort_order>
449
  <show_in_default>1</show_in_default>
450
  <show_in_website>1</show_in_website>
451
  <show_in_store>1</show_in_store>
@@ -460,7 +459,7 @@
460
  <label>Discount type</label>
461
  <frontend_type>select</frontend_type>
462
  <source_model>ebizmarts_abandonedcart/system_config_discounttype</source_model>
463
- <sort_order>140</sort_order>
464
  <show_in_default>1</show_in_default>
465
  <show_in_website>1</show_in_website>
466
  <show_in_store>1</show_in_store>
@@ -474,7 +473,7 @@
474
  <discount>
475
  <label>Discount amount</label>
476
  <frontend_type>text</frontend_type>
477
- <sort_order>150</sort_order>
478
  <show_in_default>1</show_in_default>
479
  <show_in_website>1</show_in_website>
480
  <show_in_store>1</show_in_store>
@@ -488,7 +487,7 @@
488
  <couponlabel>
489
  <label>Label for coupon</label>
490
  <frontend_type>text</frontend_type>
491
- <sort_order>160</sort_order>
492
  <show_in_default>1</show_in_default>
493
  <show_in_website>1</show_in_website>
494
  <show_in_store>1</show_in_store>
@@ -501,9 +500,182 @@
501
  </couponlabel>
502
  </fields>
503
  </coupon>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
504
  <emailcatcher>
505
  <label>Catch email</label>
506
- <sort_order>170</sort_order>
507
  <frontend_type>text</frontend_type>
508
  <show_in_default>1</show_in_default>
509
  <show_in_website>1</show_in_website>
@@ -513,7 +685,7 @@
513
  <label>Catch Email on Popup</label>
514
  <frontend_type>select</frontend_type>
515
  <source_model>adminhtml/system_config_source_yesno</source_model>
516
- <sort_order>180</sort_order>
517
  <show_in_default>1</show_in_default>
518
  <show_in_website>1</show_in_website>
519
  <show_in_store>1</show_in_store>
@@ -522,7 +694,7 @@
522
  <popup_heading translate="label comment">
523
  <label>Popup Heading</label>
524
  <frontend_type>text</frontend_type>
525
- <sort_order>190</sort_order>
526
  <show_in_default>1</show_in_default>
527
  <show_in_website>1</show_in_website>
528
  <show_in_store>1</show_in_store>
@@ -535,7 +707,7 @@
535
  <popup_text translate="label comment">
536
  <label>Popup Message</label>
537
  <frontend_type>textarea</frontend_type>
538
- <sort_order>200</sort_order>
539
  <show_in_default>1</show_in_default>
540
  <show_in_website>1</show_in_website>
541
  <show_in_store>1</show_in_store>
@@ -548,7 +720,7 @@
548
  <popup_width translate="label comment">
549
  <label>Popup Width</label>
550
  <frontend_type>text</frontend_type>
551
- <sort_order>210</sort_order>
552
  <show_in_default>1</show_in_default>
553
  <show_in_website>1</show_in_website>
554
  <show_in_store>1</show_in_store>
@@ -562,7 +734,7 @@
562
  <label>Subscribe customer</label>
563
  <frontend_type>select</frontend_type>
564
  <source_model>adminhtml/system_config_source_yesno</source_model>
565
- <sort_order>220</sort_order>
566
  <show_in_default>1</show_in_default>
567
  <show_in_website>1</show_in_website>
568
  <show_in_store>1</show_in_store>
@@ -575,7 +747,7 @@
575
  <label>Customer can close Popup</label>
576
  <frontend_type>select</frontend_type>
577
  <source_model>adminhtml/system_config_source_yesno</source_model>
578
- <sort_order>230</sort_order>
579
  <show_in_default>1</show_in_default>
580
  <show_in_website>1</show_in_website>
581
  <show_in_store>1</show_in_store>
@@ -587,7 +759,7 @@
587
  <popup_cookie_time translate="label comment">
588
  <label>When popup cancelled show again after</label>
589
  <frontend_type>text</frontend_type>
590
- <sort_order>240</sort_order>
591
  <show_in_default>1</show_in_default>
592
  <show_in_website>1</show_in_website>
593
  <show_in_store>1</show_in_store>
@@ -600,7 +772,7 @@
600
  <popup_insist translate="label comment">
601
  <label>Limit of times popup will get shown</label>
602
  <frontend_type>text</frontend_type>
603
- <sort_order>250</sort_order>
604
  <show_in_default>1</show_in_default>
605
  <show_in_website>1</show_in_website>
606
  <show_in_store>1</show_in_store>
@@ -614,7 +786,7 @@
614
  <label>Create Coupon?</label>
615
  <frontend_type>select</frontend_type>
616
  <source_model>adminhtml/system_config_source_yesno</source_model>
617
- <sort_order>260</sort_order>
618
  <show_in_default>1</show_in_default>
619
  <show_in_website>1</show_in_website>
620
  <show_in_store>1</show_in_store>
12
  <ebizmarts_abandonedcart translate="label" module="ebizmarts_abandonedcart">
13
  <label><![CDATA[Abandoned Carts Recovery]]></label>
14
  <tab>monkey</tab>
15
+ <sort_order>400</sort_order>
16
  <show_in_default>1</show_in_default>
17
  <show_in_website>1</show_in_website>
18
  <show_in_store>1</show_in_store>
301
  </depends>
302
  </days4>
303
  <subject5 translate="label comment">
304
+ <label>Fifth Email Subject</label>
305
  <frontend_type>text</frontend_type>
306
  <sort_order>50</sort_order>
307
  <show_in_default>1</show_in_default>
346
  <label>Customer Groups</label>
347
  <frontend_type>multiselect</frontend_type>
348
  <source_model>ebizmarts_abandonedcart/system_config_customergroup</source_model>
349
+ <sort_order>60</sort_order>
350
  <show_in_default>1</show_in_default>
351
  <show_in_website>1</show_in_website>
352
  <show_in_store>1</show_in_store>
360
  <label>Auto Login link</label>
361
  <frontend_type>select</frontend_type>
362
  <source_model>adminhtml/system_config_source_yesno</source_model>
363
+ <sort_order>65</sort_order>
364
  <show_in_default>1</show_in_default>
365
  <show_in_website>1</show_in_website>
366
  <show_in_store>1</show_in_store>
369
  <active>1</active>
370
  </depends>
371
  </autologin>
 
372
  </fields>
373
  </general>
374
  <coupon>
375
  <label>Coupon</label>
376
+ <sort_order>70</sort_order>
377
  <frontend_type>text</frontend_type>
378
  <show_in_default>1</show_in_default>
379
  <show_in_website>1</show_in_website>
383
  <label>Create Coupon?</label>
384
  <frontend_type>select</frontend_type>
385
  <source_model>adminhtml/system_config_source_yesno</source_model>
386
+ <sort_order>75</sort_order>
387
  <show_in_default>1</show_in_default>
388
  <show_in_website>1</show_in_website>
389
  <show_in_store>1</show_in_store>
391
  <sendon translate="label">
392
  <label>On email number?</label>
393
  <frontend_type>text</frontend_type>
394
+ <sort_order>80</sort_order>
395
  <show_in_default>1</show_in_default>
396
  <show_in_website>1</show_in_website>
397
  <show_in_store>1</show_in_store>
405
  <label>Option</label>
406
  <frontend_type>select</frontend_type>
407
  <source_model>ebizmarts_abandonedcart/system_config_automatic</source_model>
408
+ <sort_order>85</sort_order>
409
  <show_in_default>1</show_in_default>
410
  <show_in_website>1</show_in_website>
411
  <show_in_store>1</show_in_store>
416
  <couponcode>
417
  <label>Coupon Code</label>
418
  <frontend_type>text</frontend_type>
419
+ <sort_order>90</sort_order>
420
  <show_in_default>1</show_in_default>
421
  <show_in_website>1</show_in_website>
422
  <show_in_store>1</show_in_store>
430
  <expire>
431
  <label>Expire on</label>
432
  <frontend_type>text</frontend_type>
433
+ <sort_order>95</sort_order>
434
  <show_in_default>1</show_in_default>
435
  <show_in_website>1</show_in_website>
436
  <show_in_store>1</show_in_store>
444
  <length>
445
  <label>Coupon length</label>
446
  <frontend_type>text</frontend_type>
447
+ <sort_order>100</sort_order>
448
  <show_in_default>1</show_in_default>
449
  <show_in_website>1</show_in_website>
450
  <show_in_store>1</show_in_store>
459
  <label>Discount type</label>
460
  <frontend_type>select</frontend_type>
461
  <source_model>ebizmarts_abandonedcart/system_config_discounttype</source_model>
462
+ <sort_order>105</sort_order>
463
  <show_in_default>1</show_in_default>
464
  <show_in_website>1</show_in_website>
465
  <show_in_store>1</show_in_store>
473
  <discount>
474
  <label>Discount amount</label>
475
  <frontend_type>text</frontend_type>
476
+ <sort_order>110</sort_order>
477
  <show_in_default>1</show_in_default>
478
  <show_in_website>1</show_in_website>
479
  <show_in_store>1</show_in_store>
487
  <couponlabel>
488
  <label>Label for coupon</label>
489
  <frontend_type>text</frontend_type>
490
+ <sort_order>115</sort_order>
491
  <show_in_default>1</show_in_default>
492
  <show_in_website>1</show_in_website>
493
  <show_in_store>1</show_in_store>
500
  </couponlabel>
501
  </fields>
502
  </coupon>
503
+ <A_Btesting>
504
+ <label>A/B Testing</label>
505
+ <sort_order>120</sort_order>
506
+ <frontend_type>text</frontend_type>
507
+ <show_in_default>1</show_in_default>
508
+ <show_in_website>1</show_in_website>
509
+ <show_in_store>1</show_in_store>
510
+ <fields>
511
+ <active translate="label">
512
+ <label>Enabled</label>
513
+ <frontend_type>select</frontend_type>
514
+ <source_model>ebizmarts_abandonedcart/system_config_Yesnovariation</source_model>
515
+ <sort_order>125</sort_order>
516
+ <show_in_default>1</show_in_default>
517
+ <show_in_website>1</show_in_website>
518
+ <show_in_store>1</show_in_store>
519
+ </active>
520
+ <mandrill_suffix translate="label">
521
+ <label>Test suffix</label>
522
+ <frontend_type>text</frontend_type>
523
+ <sort_order>130</sort_order>
524
+ <show_in_default>1</show_in_default>
525
+ <show_in_website>1</show_in_website>
526
+ <show_in_store>1</show_in_store>
527
+ <depends>
528
+ <active separator=",">0,1,2,3,4,-0,-1,-2,-3,-4</active>
529
+ </depends>
530
+ </mandrill_suffix>
531
+ <subject1 translate="label comment">
532
+ <label>First Email Subject</label>
533
+ <frontend_type>text</frontend_type>
534
+ <sort_order>135</sort_order>
535
+ <show_in_default>1</show_in_default>
536
+ <show_in_website>1</show_in_website>
537
+ <show_in_store>1</show_in_store>
538
+ <can_be_empty>0</can_be_empty>
539
+ <comment><![CDATA[The subject for the first email abandoned cart]]></comment>
540
+ <depends>
541
+ <active separator=",">0,1,2,3,4,-0,-1,-2,-3,-4</active>
542
+ </depends>
543
+ </subject1>
544
+ <template1 translate="label">
545
+ <label>First Email Template</label>
546
+ <frontend_type>select</frontend_type>
547
+ <config_path>ebizmarts_abandonedcart/A_Btesting/template1</config_path>
548
+ <source_model>adminhtml/system_config_source_email_template</source_model>
549
+ <sort_order>140</sort_order>
550
+ <show_in_default>1</show_in_default>
551
+ <show_in_website>1</show_in_website>
552
+ <show_in_store>1</show_in_store>
553
+ <depends>
554
+ <active separator=",">0,1,2,3,4,-0,-1,-2,-3,-4</active>
555
+ </depends>
556
+ </template1>
557
+ <subject2 translate="label comment">
558
+ <label>Second Email Subject</label>
559
+ <frontend_type>text</frontend_type>
560
+ <sort_order>155</sort_order>
561
+ <show_in_default>1</show_in_default>
562
+ <show_in_website>1</show_in_website>
563
+ <show_in_store>1</show_in_store>
564
+ <can_be_empty>0</can_be_empty>
565
+ <comment><![CDATA[The subject for the second email abandoned cart]]></comment>
566
+ <depends>
567
+ <active separator=",">1,2,3,4,-1,-2,-3,-4</active>
568
+ </depends>
569
+ </subject2>
570
+ <template2 translate="label">
571
+ <label>Second Email Template</label>
572
+ <frontend_type>select</frontend_type>
573
+ <config_path>ebizmarts_abandonedcart/A_Btesting/template2</config_path>
574
+ <source_model>adminhtml/system_config_source_email_template</source_model>
575
+ <sort_order>160</sort_order>
576
+ <show_in_default>1</show_in_default>
577
+ <show_in_website>1</show_in_website>
578
+ <show_in_store>1</show_in_store>
579
+ <depends>
580
+ <active separator=",">1,2,3,4,-1,-2,-3,-4</active>
581
+ </depends>
582
+ </template2>
583
+ <subject3 translate="label comment">
584
+ <label>Third Email Subject</label>
585
+ <frontend_type>text</frontend_type>
586
+ <sort_order>170</sort_order>
587
+ <show_in_default>1</show_in_default>
588
+ <show_in_website>1</show_in_website>
589
+ <show_in_store>1</show_in_store>
590
+ <can_be_empty>0</can_be_empty>
591
+ <comment><![CDATA[The subject for the third email abandoned cart]]></comment>
592
+ <depends>
593
+ <active separator=",">2,3,4,-2,-3,-4</active>
594
+ </depends>
595
+ </subject3>
596
+ <template3 translate="label">
597
+ <label>Third Email Template</label>
598
+ <frontend_type>select</frontend_type>
599
+ <config_path>ebizmarts_abandonedcart/A_Btesting/template3</config_path>
600
+ <source_model>adminhtml/system_config_source_email_template</source_model>
601
+ <sort_order>175</sort_order>
602
+ <show_in_default>1</show_in_default>
603
+ <show_in_website>1</show_in_website>
604
+ <show_in_store>1</show_in_store>
605
+ <depends>
606
+ <active separator=",">2,3,4,-2,-3,-4</active>
607
+ </depends>
608
+ </template3>
609
+ <subject4 translate="label comment">
610
+ <label>Fourth Email Subject</label>
611
+ <frontend_type>text</frontend_type>
612
+ <sort_order>185</sort_order>
613
+ <show_in_default>1</show_in_default>
614
+ <show_in_website>1</show_in_website>
615
+ <show_in_store>1</show_in_store>
616
+ <can_be_empty>0</can_be_empty>
617
+ <comment><![CDATA[The subject for the fourth email abandoned cart]]></comment>
618
+ <depends>
619
+ <active separator=",">3,4,-3,-4</active>
620
+ </depends>
621
+ </subject4>
622
+ <template4 translate="label">
623
+ <label>Fourth Email Template</label>
624
+ <frontend_type>select</frontend_type>
625
+ <config_path>ebizmarts_abandonedcart/A_Btesting/template4</config_path>
626
+ <source_model>adminhtml/system_config_source_email_template</source_model>
627
+ <sort_order>190</sort_order>
628
+ <show_in_default>1</show_in_default>
629
+ <show_in_website>1</show_in_website>
630
+ <show_in_store>1</show_in_store>
631
+ <depends>
632
+ <active separator=",">3,4,-3,-4</active>
633
+ </depends>
634
+ </template4>
635
+ <subject5 translate="label comment">
636
+ <label>Fifth Email Subject</label>
637
+ <frontend_type>text</frontend_type>
638
+ <sort_order>200</sort_order>
639
+ <show_in_default>1</show_in_default>
640
+ <show_in_website>1</show_in_website>
641
+ <show_in_store>1</show_in_store>
642
+ <can_be_empty>0</can_be_empty>
643
+ <comment><![CDATA[The subject for the fourth email abandoned cart]]></comment>
644
+ <depends>
645
+ <active separator=",">4,-4</active>
646
+ </depends>
647
+ </subject5>
648
+ <template5 translate="label">
649
+ <label>Fifth Email Template</label>
650
+ <frontend_type>select</frontend_type>
651
+ <config_path>ebizmarts_abandonedcart/A_Btesting/template5</config_path>
652
+ <source_model>adminhtml/system_config_source_email_template</source_model>
653
+ <sort_order>205</sort_order>
654
+ <show_in_default>1</show_in_default>
655
+ <show_in_website>1</show_in_website>
656
+ <show_in_store>1</show_in_store>
657
+ <depends>
658
+ <active separator=",">4,-4</active>
659
+ </depends>
660
+ </template5>
661
+ <A_Btesting_sendon translate="label">
662
+ <label>If cuopon enabled send on email number?</label>
663
+ <frontend_type>text</frontend_type>
664
+ <sort_order>215</sort_order>
665
+ <show_in_default>1</show_in_default>
666
+ <show_in_website>1</show_in_website>
667
+ <show_in_store>1</show_in_store>
668
+ <can_be_empty>0</can_be_empty>
669
+ <comment><![CDATA[The coupon will be created on testing email for Abandoned Cart number]]></comment>
670
+ <depends>
671
+ <active separator=",">-0,-1,-2,-3,-4</active>
672
+ </depends>
673
+ </A_Btesting_sendon>
674
+ </fields>
675
+ </A_Btesting>
676
  <emailcatcher>
677
  <label>Catch email</label>
678
+ <sort_order>220</sort_order>
679
  <frontend_type>text</frontend_type>
680
  <show_in_default>1</show_in_default>
681
  <show_in_website>1</show_in_website>
685
  <label>Catch Email on Popup</label>
686
  <frontend_type>select</frontend_type>
687
  <source_model>adminhtml/system_config_source_yesno</source_model>
688
+ <sort_order>225</sort_order>
689
  <show_in_default>1</show_in_default>
690
  <show_in_website>1</show_in_website>
691
  <show_in_store>1</show_in_store>
694
  <popup_heading translate="label comment">
695
  <label>Popup Heading</label>
696
  <frontend_type>text</frontend_type>
697
+ <sort_order>230</sort_order>
698
  <show_in_default>1</show_in_default>
699
  <show_in_website>1</show_in_website>
700
  <show_in_store>1</show_in_store>
707
  <popup_text translate="label comment">
708
  <label>Popup Message</label>
709
  <frontend_type>textarea</frontend_type>
710
+ <sort_order>235</sort_order>
711
  <show_in_default>1</show_in_default>
712
  <show_in_website>1</show_in_website>
713
  <show_in_store>1</show_in_store>
720
  <popup_width translate="label comment">
721
  <label>Popup Width</label>
722
  <frontend_type>text</frontend_type>
723
+ <sort_order>240</sort_order>
724
  <show_in_default>1</show_in_default>
725
  <show_in_website>1</show_in_website>
726
  <show_in_store>1</show_in_store>
734
  <label>Subscribe customer</label>
735
  <frontend_type>select</frontend_type>
736
  <source_model>adminhtml/system_config_source_yesno</source_model>
737
+ <sort_order>245</sort_order>
738
  <show_in_default>1</show_in_default>
739
  <show_in_website>1</show_in_website>
740
  <show_in_store>1</show_in_store>
747
  <label>Customer can close Popup</label>
748
  <frontend_type>select</frontend_type>
749
  <source_model>adminhtml/system_config_source_yesno</source_model>
750
+ <sort_order>250</sort_order>
751
  <show_in_default>1</show_in_default>
752
  <show_in_website>1</show_in_website>
753
  <show_in_store>1</show_in_store>
759
  <popup_cookie_time translate="label comment">
760
  <label>When popup cancelled show again after</label>
761
  <frontend_type>text</frontend_type>
762
+ <sort_order>255</sort_order>
763
  <show_in_default>1</show_in_default>
764
  <show_in_website>1</show_in_website>
765
  <show_in_store>1</show_in_store>
772
  <popup_insist translate="label comment">
773
  <label>Limit of times popup will get shown</label>
774
  <frontend_type>text</frontend_type>
775
+ <sort_order>260</sort_order>
776
  <show_in_default>1</show_in_default>
777
  <show_in_website>1</show_in_website>
778
  <show_in_store>1</show_in_store>
786
  <label>Create Coupon?</label>
787
  <frontend_type>select</frontend_type>
788
  <source_model>adminhtml/system_config_source_yesno</source_model>
789
+ <sort_order>265</sort_order>
790
  <show_in_default>1</show_in_default>
791
  <show_in_website>1</show_in_website>
792
  <show_in_store>1</show_in_store>
app/code/community/Ebizmarts/AbandonedCart/sql/ebizmarts_abandonedcart_setup/mysql4-upgrade-0.1.30-0.1.31.php ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ *
5
+ * @category Ebizmarts
6
+ * @package Ebizmarts_Autoresponder
7
+ * @author Ebizmarts Team <info@ebizmarts.com>
8
+ * @license http://opensource.org/licenses/osl-3.0.php
9
+ */
10
+
11
+ $installer = $this;
12
+
13
+ $installer->startSetup();
14
+
15
+ $installer->run("
16
+ CREATE TABLE IF NOT EXISTS `{$this->getTable('ebizmarts_abandonedcart_abtesting')}` (
17
+ `id` INT(10) unsigned NOT NULL auto_increment,
18
+ `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
19
+ `current_status` smallint(1),
20
+ `store_id` smallint(5) default 0,
21
+ PRIMARY KEY (`id`)
22
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
23
+
24
+ ");
25
+
26
+ $installer->endSetup();
app/code/community/Ebizmarts/Autoresponder/Helper/Data.php CHANGED
@@ -113,4 +113,53 @@ class Ebizmarts_Autoresponder_Helper_Data extends Mage_Core_Helper_Abstract {
113
  return $collection->getSize() == 0;
114
  }
115
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
116
  }
113
  return $collection->getSize() == 0;
114
  }
115
 
116
+ public function getTBTPoints($customerId)
117
+ {
118
+
119
+ $tbtCustomer = Mage::getModel('rewards/customer')->load($customerId);
120
+
121
+ //Point balance
122
+ $tbtVars['pts'] = $tbtCustomer->getPointsSummary();
123
+
124
+ $tbtVars['points'] = $tbtCustomer->getUsablePointsBalance(1);
125
+
126
+ //Earn and Spent points
127
+ $lastTransfers = $tbtCustomer->getTransfers()
128
+ ->selectOnlyActive()
129
+ ->addOrder('last_update_ts', Varien_Data_Collection::SORT_ORDER_DESC);
130
+
131
+ $spent = $earn = null;
132
+
133
+ if ($lastTransfers->getSize()) {
134
+ foreach ($lastTransfers as $transfer) {
135
+
136
+ if (is_null($earn) && $transfer->getQuantity() > 0) {
137
+ $earn = $this->_formatDateMerge($transfer->getEffectiveStart());
138
+ } else if (is_null($spent) && $transfer->getQuantity() < 0) {
139
+ $spent = $this->_formatDateMerge($transfer->getEffectiveStart());
140
+ }
141
+
142
+ if (!is_null($spent) && !is_null($earn)) {
143
+ break;
144
+ }
145
+
146
+ }
147
+ }
148
+
149
+ if ($earn) {
150
+ $tbtVars['ptsearn'] = $earn;
151
+ }
152
+ if ($spent) {
153
+ $tbtVars['ptsspent'] = $spent;
154
+ }
155
+
156
+ //Expiration Points
157
+ $val = Mage::getSingleton('rewards/expiry')
158
+ ->getExpiryDate($tbtCustomer);
159
+ if ($val) {
160
+ $tbtVars['ptsexp'] = $val;
161
+ }
162
+ return $tbtVars;
163
+ }
164
+
165
  }
app/code/community/Ebizmarts/Autoresponder/Model/Cron.php CHANGED
@@ -78,6 +78,9 @@ class Ebizmarts_Autoresponder_Model_Cron
78
  $collection = Mage::getResourceModel('sales/order_collection');
79
  $collection->addFieldToFilter('main_table.store_id',array('eq'=>$storeId))
80
  ->addFieldToFilter('main_table.created_at',array('from'=>$from,'to'=>$to));
 
 
 
81
  if(count($customerGroups)) {
82
  $collection->addFieldToFilter('main_table.customer_group_id',array('in'=> $customerGroups));
83
  }
@@ -89,6 +92,22 @@ class Ebizmarts_Autoresponder_Model_Cron
89
  $url = Mage::getModel('core/url')->setStore($storeId)->getUrl().'ebizautoresponder/autoresponder/unsubscribe?list=neworder&email='.$email.'&store='.$storeId;
90
  $vars = array('tags'=>array($tags),'url'=>$url);
91
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
92
  $mail = Mage::getModel('core/email_template')->setTemplateSubject($mailSubject)->sendTransactional($templateId,$sender,$email,$name,$vars,$storeId);
93
  $translate->setTranslateInLine(true);
94
  Mage::helper('ebizmarts_abandonedcart')->saveMail('new order',$email,$name,"",$storeId);
@@ -141,6 +160,23 @@ class Ebizmarts_Autoresponder_Model_Cron
141
  }
142
 
143
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
144
  $mail = Mage::getModel('core/email_template')->setTemplateSubject($mailSubject)->sendTransactional($templateId,$sender,$email,$name,$vars,$storeId);
145
  $translate->setTranslateInLine(true);
146
  Mage::helper('ebizmarts_abandonedcart')->saveMail('happy birthday',$email,$name,$couponcode,$storeId);
@@ -186,6 +222,23 @@ class Ebizmarts_Autoresponder_Model_Cron
186
  if(Mage::helper('ebizmarts_autoresponder')->isSubscribed($email,'noactivity',$storeId)) {
187
  $url = Mage::getModel('core/url')->setStore($storeId)->getUrl().'ebizautoresponder/autoresponder/unsubscribe?list=noactivity&email='.$email.'&store='.$storeId;
188
  $vars = array('name' => $name,'tags'=>array($tags),'lastlogin'=>$lastVisited,'url'=>$url);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
189
  $mail = Mage::getModel('core/email_template')->setTemplateSubject($mailSubject)->sendTransactional($templateId,$sender,$email,$name,$vars,$storeId);
190
  $translate->setTranslateInLine(true);
191
  Mage::helper('ebizmarts_abandonedcart')->saveMail('no activity',$email,$name,"",$storeId);
@@ -243,6 +296,23 @@ class Ebizmarts_Autoresponder_Model_Cron
243
  $name = $order->getCustomerFirstname().' '.$order->getCustomerLastname();
244
  $url = Mage::getModel('core/url')->setStore($storeId)->getUrl().'ebizautoresponder/autoresponder/unsubscribe?list=related&email='.$email.'&store='.$storeId;
245
  $vars = array('name' => $name,'tags'=>array($tags),'related'=>$allRelated,'url'=>$url);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
246
  $mail = Mage::getModel('core/email_template')->setTemplateSubject($mailSubject)->sendTransactional($templateId,$sender,$email,$name,$vars,$storeId);
247
  $translate->setTranslateInLine(true);
248
  Mage::helper('ebizmarts_abandonedcart')->saveMail('related products',$email,$name,"",$storeId);
@@ -309,6 +379,23 @@ class Ebizmarts_Autoresponder_Model_Cron
309
  else {
310
  $vars = array('name' => $name,'tags'=>array($tags),'products'=>$products,'ordernum'=>$orderNum,'url'=>$url);
311
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
312
  $mail = Mage::getModel('core/email_template')->setTemplateSubject($mailSubject)->sendTransactional($templateId,$sender,$email,$name,$vars,$storeId);
313
  $translate->setTranslateInLine(true);
314
  Mage::helper('ebizmarts_abandonedcart')->saveMail('product review',$email,$name,"",$storeId);
@@ -348,6 +435,23 @@ class Ebizmarts_Autoresponder_Model_Cron
348
  $name = $customer->getFirstname().' '.$customer->getLastname();
349
  $url = Mage::getModel('core/url')->setStore($storeId)->getUrl().'ebizautoresponder/autoresponder/unsubscribe?list=wishlist&email='.$email.'&store='.$storeId;
350
  $vars = array('name' => $name,'tags'=>array($tags),'products'=>$products,'url'=>$url);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
351
  $mail = Mage::getModel('core/email_template')->setTemplateSubject($mailSubject)->sendTransactional($templateId,$sender,$email,$name,$vars,$storeId);
352
  $translate->setTranslateInLine(true);
353
  Mage::helper('ebizmarts_abandonedcart')->saveMail('wishlist',$email,$name,"",$storeId);
@@ -371,6 +475,23 @@ class Ebizmarts_Autoresponder_Model_Cron
371
  $name = $customer->getFirstname().' '.$customer->getLastname();
372
  $url = Mage::getModel('core/url')->setStore($storeId)->getUrl().'ebizautoresponder/autoresponder/unsubscribe?list=wishlist&email='.$email.'&store='.$storeId;
373
  $vars = array('name' => $name,'tags'=>array($tags),'products'=>$products,'url'=>$url);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
374
  $mail = Mage::getModel('core/email_template')->setTemplateSubject($mailSubject)->sendTransactional($templateId,$sender,$email,$name,$vars,$storeId);
375
  $translate->setTranslateInLine(true);
376
  Mage::helper('ebizmarts_abandonedcart')->saveMail('wishlist',$email,$name,"",$storeId);
@@ -412,6 +533,23 @@ class Ebizmarts_Autoresponder_Model_Cron
412
  $name = $customer->getFirstname().' '.$customer->getLastname();
413
  $url = Mage::getModel('core/url')->setStore($storeId)->getUrl().'ebizautoresponder/autoresponder/unsubscribe?list=visitedproducts&email='.$email.'&store='.$storeId;
414
  $vars = array('name' => $name,'tags'=>array($tags),'products'=>$products,'url'=>$url);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
415
  $mail = Mage::getModel('core/email_template')->setTemplateSubject($mailSubject)->sendTransactional($templateId,$sender,$email,$name,$vars,$storeId);
416
  $translate->setTranslateInLine(true);
417
  Mage::helper('ebizmarts_abandonedcart')->saveMail('visitedproducts',$email,$name,"",$storeId);
@@ -462,6 +600,23 @@ class Ebizmarts_Autoresponder_Model_Cron
462
  $name = 'customer';
463
  $url = Mage::getModel('core/url')->setStore($storeId)->getUrl().'ebizautoresponder/autoresponder/unsubscribe?list=visitedproducts&email='.$email.'&store='.$storeId;
464
  $vars = array('name' => $name,'tags'=>array($tags),'products'=>$products,'url'=>$url);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
465
  $mail = Mage::getModel('core/email_template')->setTemplateSubject($mailSubject)->sendTransactional($templateId,$sender,$email,$name,$vars,$storeId);
466
  $translate->setTranslateInLine(true);
467
  Mage::helper('ebizmarts_abandonedcart')->saveMail('visitedproducts',$email,$name,"",$storeId);
@@ -475,6 +630,23 @@ class Ebizmarts_Autoresponder_Model_Cron
475
  $name = $customer->getFirstname() . ' ' . $customer->getLastname();
476
  $url = Mage::getModel('core/url')->setStore($storeId)->getUrl() . 'ebizautoresponder/autoresponder/unsubscribe?list=visitedproducts&email=' . $email . '&store=' . $storeId;
477
  $vars = array('name' => $name, 'tags' => array($tags), 'products' => $products, 'url' => $url);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
478
  $mail = Mage::getModel('core/email_template')->setTemplateSubject($mailSubject)->sendTransactional($templateId, $sender, $email, $name, $vars, $storeId);
479
  $translate->setTranslateInLine(true);
480
  Mage::helper('ebizmarts_abandonedcart')->saveMail('visitedproducts', $email, $name, "", $storeId);
@@ -486,6 +658,23 @@ class Ebizmarts_Autoresponder_Model_Cron
486
  $name = 'customer';
487
  $url = Mage::getModel('core/url')->setStore($storeId)->getUrl().'ebizautoresponder/autoresponder/unsubscribe?list=visitedproducts&email='.$email.'&store='.$storeId;
488
  $vars = array('name' => $name,'tags'=>array($tags),'products'=>$products,'url'=>$url);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
489
  $mail = Mage::getModel('core/email_template')->setTemplateSubject($mailSubject)->sendTransactional($templateId,$sender,$email,$name,$vars,$storeId);
490
  $translate->setTranslateInLine(true);
491
  Mage::helper('ebizmarts_abandonedcart')->saveMail('visitedproducts',$email,$name,"",$storeId);
@@ -608,6 +797,22 @@ class Ebizmarts_Autoresponder_Model_Cron
608
  $url = Mage::getModel('core/url')->setStore($storeId)->getUrl().'ebizautoresponder/autoresponder/unsubscribe?list=backtostock&email='.$_email.'&store='.$storeId;
609
  $vars = array('name' => $name,'tags'=>array($tags),'product'=>$_product,'url'=>$url);
610
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
611
  $mail = Mage::getModel('core/email_template')->setTemplateSubject($mailSubject)->sendTransactional($templateId,$sender,$_email,$name,$vars,$storeId);
612
 
613
  $translate->setTranslateInLine(true);
78
  $collection = Mage::getResourceModel('sales/order_collection');
79
  $collection->addFieldToFilter('main_table.store_id',array('eq'=>$storeId))
80
  ->addFieldToFilter('main_table.created_at',array('from'=>$from,'to'=>$to));
81
+ if(Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::NEWORDER_TRIGGER, $storeId) == 2){
82
+ $collection->addFieldToFilter('main_table.status', array('eq' => strtolower(Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::NEWORDER_ORDER_STATUS, $storeId))));
83
+ }
84
  if(count($customerGroups)) {
85
  $collection->addFieldToFilter('main_table.customer_group_id',array('in'=> $customerGroups));
86
  }
92
  $url = Mage::getModel('core/url')->setStore($storeId)->getUrl().'ebizautoresponder/autoresponder/unsubscribe?list=neworder&email='.$email.'&store='.$storeId;
93
  $vars = array('tags'=>array($tags),'url'=>$url);
94
 
95
+ $customer = Mage::getModel('customer/customer')
96
+ ->setStore(Mage::app()->getStore($storeId))
97
+ ->loadByEmail($email);
98
+ if($customer->getId()) {
99
+ $tbtPoints = Mage::helper('ebizmarts_autoresponder')->getTBTPoints($customer->getId());
100
+ foreach ($tbtPoints as $key => $field) {
101
+ if ($key == 'points') {
102
+ if ($field >= Mage::getStoreConfig('sweetmonkey/general/email_points', $storeId)) {
103
+ $vars[$key] = $field;
104
+ }
105
+ } else {
106
+ $vars[$key] = $field;
107
+ }
108
+ }
109
+ }
110
+
111
  $mail = Mage::getModel('core/email_template')->setTemplateSubject($mailSubject)->sendTransactional($templateId,$sender,$email,$name,$vars,$storeId);
112
  $translate->setTranslateInLine(true);
113
  Mage::helper('ebizmarts_abandonedcart')->saveMail('new order',$email,$name,"",$storeId);
160
  }
161
 
162
  }
163
+
164
+ $customer = Mage::getModel('customer/customer')
165
+ ->setStore(Mage::app()->getStore($storeId))
166
+ ->loadByEmail($email);
167
+ if($customer->getId()) {
168
+ $tbtPoints = Mage::helper('ebizmarts_autoresponder')->getTBTPoints($customer->getId());
169
+ foreach ($tbtPoints as $key => $field) {
170
+ if ($key == 'points') {
171
+ if ($field >= Mage::getStoreConfig('sweetmonkey/general/email_points', $storeId)) {
172
+ $vars[$key] = $field;
173
+ }
174
+ } else {
175
+ $vars[$key] = $field;
176
+ }
177
+ }
178
+ }
179
+
180
  $mail = Mage::getModel('core/email_template')->setTemplateSubject($mailSubject)->sendTransactional($templateId,$sender,$email,$name,$vars,$storeId);
181
  $translate->setTranslateInLine(true);
182
  Mage::helper('ebizmarts_abandonedcart')->saveMail('happy birthday',$email,$name,$couponcode,$storeId);
222
  if(Mage::helper('ebizmarts_autoresponder')->isSubscribed($email,'noactivity',$storeId)) {
223
  $url = Mage::getModel('core/url')->setStore($storeId)->getUrl().'ebizautoresponder/autoresponder/unsubscribe?list=noactivity&email='.$email.'&store='.$storeId;
224
  $vars = array('name' => $name,'tags'=>array($tags),'lastlogin'=>$lastVisited,'url'=>$url);
225
+
226
+ $customer = Mage::getModel('customer/customer')
227
+ ->setStore(Mage::app()->getStore($storeId))
228
+ ->loadByEmail($email);
229
+ if($customer->getId()) {
230
+ $tbtPoints = Mage::helper('ebizmarts_autoresponder')->getTBTPoints($customer->getId());
231
+ foreach ($tbtPoints as $key => $field) {
232
+ if ($key == 'points') {
233
+ if ($field >= Mage::getStoreConfig('sweetmonkey/general/email_points', $storeId)) {
234
+ $vars[$key] = $field;
235
+ }
236
+ } else {
237
+ $vars[$key] = $field;
238
+ }
239
+ }
240
+ }
241
+
242
  $mail = Mage::getModel('core/email_template')->setTemplateSubject($mailSubject)->sendTransactional($templateId,$sender,$email,$name,$vars,$storeId);
243
  $translate->setTranslateInLine(true);
244
  Mage::helper('ebizmarts_abandonedcart')->saveMail('no activity',$email,$name,"",$storeId);
296
  $name = $order->getCustomerFirstname().' '.$order->getCustomerLastname();
297
  $url = Mage::getModel('core/url')->setStore($storeId)->getUrl().'ebizautoresponder/autoresponder/unsubscribe?list=related&email='.$email.'&store='.$storeId;
298
  $vars = array('name' => $name,'tags'=>array($tags),'related'=>$allRelated,'url'=>$url);
299
+
300
+ $customer = Mage::getModel('customer/customer')
301
+ ->setStore(Mage::app()->getStore($storeId))
302
+ ->loadByEmail($email);
303
+ if($customer->getId()) {
304
+ $tbtPoints = Mage::helper('ebizmarts_autoresponder')->getTBTPoints($customer->getId());
305
+ foreach ($tbtPoints as $key => $field) {
306
+ if ($key == 'points') {
307
+ if ($field >= Mage::getStoreConfig('sweetmonkey/general/email_points', $storeId)) {
308
+ $vars[$key] = $field;
309
+ }
310
+ } else {
311
+ $vars[$key] = $field;
312
+ }
313
+ }
314
+ }
315
+
316
  $mail = Mage::getModel('core/email_template')->setTemplateSubject($mailSubject)->sendTransactional($templateId,$sender,$email,$name,$vars,$storeId);
317
  $translate->setTranslateInLine(true);
318
  Mage::helper('ebizmarts_abandonedcart')->saveMail('related products',$email,$name,"",$storeId);
379
  else {
380
  $vars = array('name' => $name,'tags'=>array($tags),'products'=>$products,'ordernum'=>$orderNum,'url'=>$url);
381
  }
382
+
383
+ $customer = Mage::getModel('customer/customer')
384
+ ->setStore(Mage::app()->getStore($storeId))
385
+ ->loadByEmail($email);
386
+ if($customer->getId()) {
387
+ $tbtPoints = Mage::helper('ebizmarts_autoresponder')->getTBTPoints($customer->getId());
388
+ foreach ($tbtPoints as $key => $field) {
389
+ if ($key == 'points') {
390
+ if ($field >= Mage::getStoreConfig('sweetmonkey/general/email_points', $storeId)) {
391
+ $vars[$key] = $field;
392
+ }
393
+ } else {
394
+ $vars[$key] = $field;
395
+ }
396
+ }
397
+ }
398
+
399
  $mail = Mage::getModel('core/email_template')->setTemplateSubject($mailSubject)->sendTransactional($templateId,$sender,$email,$name,$vars,$storeId);
400
  $translate->setTranslateInLine(true);
401
  Mage::helper('ebizmarts_abandonedcart')->saveMail('product review',$email,$name,"",$storeId);
435
  $name = $customer->getFirstname().' '.$customer->getLastname();
436
  $url = Mage::getModel('core/url')->setStore($storeId)->getUrl().'ebizautoresponder/autoresponder/unsubscribe?list=wishlist&email='.$email.'&store='.$storeId;
437
  $vars = array('name' => $name,'tags'=>array($tags),'products'=>$products,'url'=>$url);
438
+
439
+ $customer = Mage::getModel('customer/customer')
440
+ ->setStore(Mage::app()->getStore($storeId))
441
+ ->loadByEmail($email);
442
+ if($customer->getId()) {
443
+ $tbtPoints = Mage::helper('ebizmarts_autoresponder')->getTBTPoints($customer->getId());
444
+ foreach ($tbtPoints as $key => $field) {
445
+ if ($key == 'points') {
446
+ if ($field >= Mage::getStoreConfig('sweetmonkey/general/email_points', $storeId)) {
447
+ $vars[$key] = $field;
448
+ }
449
+ } else {
450
+ $vars[$key] = $field;
451
+ }
452
+ }
453
+ }
454
+
455
  $mail = Mage::getModel('core/email_template')->setTemplateSubject($mailSubject)->sendTransactional($templateId,$sender,$email,$name,$vars,$storeId);
456
  $translate->setTranslateInLine(true);
457
  Mage::helper('ebizmarts_abandonedcart')->saveMail('wishlist',$email,$name,"",$storeId);
475
  $name = $customer->getFirstname().' '.$customer->getLastname();
476
  $url = Mage::getModel('core/url')->setStore($storeId)->getUrl().'ebizautoresponder/autoresponder/unsubscribe?list=wishlist&email='.$email.'&store='.$storeId;
477
  $vars = array('name' => $name,'tags'=>array($tags),'products'=>$products,'url'=>$url);
478
+
479
+ $customer = Mage::getModel('customer/customer')
480
+ ->setStore(Mage::app()->getStore($storeId))
481
+ ->loadByEmail($email);
482
+ if($customer->getId()) {
483
+ $tbtPoints = Mage::helper('ebizmarts_autoresponder')->getTBTPoints($customer->getId());
484
+ foreach ($tbtPoints as $key => $field) {
485
+ if ($key == 'points') {
486
+ if ($field >= Mage::getStoreConfig('sweetmonkey/general/email_points', $storeId)) {
487
+ $vars[$key] = $field;
488
+ }
489
+ } else {
490
+ $vars[$key] = $field;
491
+ }
492
+ }
493
+ }
494
+
495
  $mail = Mage::getModel('core/email_template')->setTemplateSubject($mailSubject)->sendTransactional($templateId,$sender,$email,$name,$vars,$storeId);
496
  $translate->setTranslateInLine(true);
497
  Mage::helper('ebizmarts_abandonedcart')->saveMail('wishlist',$email,$name,"",$storeId);
533
  $name = $customer->getFirstname().' '.$customer->getLastname();
534
  $url = Mage::getModel('core/url')->setStore($storeId)->getUrl().'ebizautoresponder/autoresponder/unsubscribe?list=visitedproducts&email='.$email.'&store='.$storeId;
535
  $vars = array('name' => $name,'tags'=>array($tags),'products'=>$products,'url'=>$url);
536
+
537
+ $customer = Mage::getModel('customer/customer')
538
+ ->setStore(Mage::app()->getStore($storeId))
539
+ ->loadByEmail($email);
540
+ if($customer->getId()) {
541
+ $tbtPoints = Mage::helper('ebizmarts_autoresponder')->getTBTPoints($customer->getId());
542
+ foreach ($tbtPoints as $key => $field) {
543
+ if ($key == 'points') {
544
+ if ($field >= Mage::getStoreConfig('sweetmonkey/general/email_points', $storeId)) {
545
+ $vars[$key] = $field;
546
+ }
547
+ } else {
548
+ $vars[$key] = $field;
549
+ }
550
+ }
551
+ }
552
+
553
  $mail = Mage::getModel('core/email_template')->setTemplateSubject($mailSubject)->sendTransactional($templateId,$sender,$email,$name,$vars,$storeId);
554
  $translate->setTranslateInLine(true);
555
  Mage::helper('ebizmarts_abandonedcart')->saveMail('visitedproducts',$email,$name,"",$storeId);
600
  $name = 'customer';
601
  $url = Mage::getModel('core/url')->setStore($storeId)->getUrl().'ebizautoresponder/autoresponder/unsubscribe?list=visitedproducts&email='.$email.'&store='.$storeId;
602
  $vars = array('name' => $name,'tags'=>array($tags),'products'=>$products,'url'=>$url);
603
+
604
+ $customer = Mage::getModel('customer/customer')
605
+ ->setStore(Mage::app()->getStore($storeId))
606
+ ->loadByEmail($email);
607
+ if($customer->getId()) {
608
+ $tbtPoints = Mage::helper('ebizmarts_autoresponder')->getTBTPoints($customer->getId());
609
+ foreach ($tbtPoints as $key => $field) {
610
+ if ($key == 'points') {
611
+ if ($field >= Mage::getStoreConfig('sweetmonkey/general/email_points', $storeId)) {
612
+ $vars[$key] = $field;
613
+ }
614
+ } else {
615
+ $vars[$key] = $field;
616
+ }
617
+ }
618
+ }
619
+
620
  $mail = Mage::getModel('core/email_template')->setTemplateSubject($mailSubject)->sendTransactional($templateId,$sender,$email,$name,$vars,$storeId);
621
  $translate->setTranslateInLine(true);
622
  Mage::helper('ebizmarts_abandonedcart')->saveMail('visitedproducts',$email,$name,"",$storeId);
630
  $name = $customer->getFirstname() . ' ' . $customer->getLastname();
631
  $url = Mage::getModel('core/url')->setStore($storeId)->getUrl() . 'ebizautoresponder/autoresponder/unsubscribe?list=visitedproducts&email=' . $email . '&store=' . $storeId;
632
  $vars = array('name' => $name, 'tags' => array($tags), 'products' => $products, 'url' => $url);
633
+
634
+ $customer = Mage::getModel('customer/customer')
635
+ ->setStore(Mage::app()->getStore($storeId))
636
+ ->loadByEmail($email);
637
+ if($customer->getId()) {
638
+ $tbtPoints = Mage::helper('ebizmarts_autoresponder')->getTBTPoints($customer->getId());
639
+ foreach ($tbtPoints as $key => $field) {
640
+ if ($key == 'points') {
641
+ if ($field >= Mage::getStoreConfig('sweetmonkey/general/email_points', $storeId)) {
642
+ $vars[$key] = $field;
643
+ }
644
+ } else {
645
+ $vars[$key] = $field;
646
+ }
647
+ }
648
+ }
649
+
650
  $mail = Mage::getModel('core/email_template')->setTemplateSubject($mailSubject)->sendTransactional($templateId, $sender, $email, $name, $vars, $storeId);
651
  $translate->setTranslateInLine(true);
652
  Mage::helper('ebizmarts_abandonedcart')->saveMail('visitedproducts', $email, $name, "", $storeId);
658
  $name = 'customer';
659
  $url = Mage::getModel('core/url')->setStore($storeId)->getUrl().'ebizautoresponder/autoresponder/unsubscribe?list=visitedproducts&email='.$email.'&store='.$storeId;
660
  $vars = array('name' => $name,'tags'=>array($tags),'products'=>$products,'url'=>$url);
661
+
662
+ $customer = Mage::getModel('customer/customer')
663
+ ->setStore(Mage::app()->getStore($storeId))
664
+ ->loadByEmail($email);
665
+ if($customer->getId()) {
666
+ $tbtPoints = Mage::helper('ebizmarts_autoresponder')->getTBTPoints($customer->getId());
667
+ foreach ($tbtPoints as $key => $field) {
668
+ if ($key == 'points') {
669
+ if ($field >= Mage::getStoreConfig('sweetmonkey/general/email_points', $storeId)) {
670
+ $vars[$key] = $field;
671
+ }
672
+ } else {
673
+ $vars[$key] = $field;
674
+ }
675
+ }
676
+ }
677
+
678
  $mail = Mage::getModel('core/email_template')->setTemplateSubject($mailSubject)->sendTransactional($templateId,$sender,$email,$name,$vars,$storeId);
679
  $translate->setTranslateInLine(true);
680
  Mage::helper('ebizmarts_abandonedcart')->saveMail('visitedproducts',$email,$name,"",$storeId);
797
  $url = Mage::getModel('core/url')->setStore($storeId)->getUrl().'ebizautoresponder/autoresponder/unsubscribe?list=backtostock&email='.$_email.'&store='.$storeId;
798
  $vars = array('name' => $name,'tags'=>array($tags),'product'=>$_product,'url'=>$url);
799
 
800
+ $customer = Mage::getModel('customer/customer')
801
+ ->setStore(Mage::app()->getStore($storeId))
802
+ ->loadByEmail($_email);
803
+ if($customer->getId()) {
804
+ $tbtPoints = Mage::helper('ebizmarts_autoresponder')->getTBTPoints($customer->getId());
805
+ foreach ($tbtPoints as $key => $field) {
806
+ if ($key == 'points') {
807
+ if ($field >= Mage::getStoreConfig('sweetmonkey/general/email_points', $storeId)) {
808
+ $vars[$key] = $field;
809
+ }
810
+ } else {
811
+ $vars[$key] = $field;
812
+ }
813
+ }
814
+ }
815
+
816
  $mail = Mage::getModel('core/email_template')->setTemplateSubject($mailSubject)->sendTransactional($templateId,$sender,$_email,$name,$vars,$storeId);
817
 
818
  $translate->setTranslateInLine(true);
app/code/community/Ebizmarts/Autoresponder/Model/EventObserver.php CHANGED
@@ -238,7 +238,7 @@ class Ebizmarts_Autoresponder_Model_EventObserver
238
 
239
  $order = $observer->getEvent()->getOrder();
240
 
241
- if ($new_data['status'] && $original_data['status'] !== $new_data['status'] && $new_data['status'] == Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::NEWORDER_ORDER_STATUS, $storeId)) {
242
  if(Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::NEWORDER_ACTIVE, $storeId) && Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::NEWORDER_TRIGGER, $storeId) == 1){
243
  $tags = Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::NEWORDER_MANDRILL_TAG,$storeId)."_$storeId";
244
  $mailSubject = Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::NEWORDER_SUBJECT,$storeId);
238
 
239
  $order = $observer->getEvent()->getOrder();
240
 
241
+ if (isset($new_data['status']) && isset($original_data['status']) !== $new_data['status'] && $new_data['status'] == Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::NEWORDER_ORDER_STATUS, $storeId)) {
242
  if(Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::NEWORDER_ACTIVE, $storeId) && Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::NEWORDER_TRIGGER, $storeId) == 1){
243
  $tags = Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::NEWORDER_MANDRILL_TAG,$storeId)."_$storeId";
244
  $mailSubject = Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::NEWORDER_SUBJECT,$storeId);
app/code/community/Ebizmarts/Autoresponder/Model/System/Config/Newordertrigger.php CHANGED
@@ -16,7 +16,8 @@ class Ebizmarts_Autoresponder_Model_System_Config_Newordertrigger
16
  {
17
  $this->_options = array(
18
  array('value'=> 0, 'label' => 'Days after order'),
19
- array('value'=> 1, 'label' => 'Order status')
 
20
  );
21
  return $this->_options;
22
  }
16
  {
17
  $this->_options = array(
18
  array('value'=> 0, 'label' => 'Days after order'),
19
+ array('value'=> 1, 'label' => 'Order status'),
20
+ array('value'=> 2, 'label' => 'Days after order status changed to')
21
  );
22
  return $this->_options;
23
  }
app/code/community/Ebizmarts/Autoresponder/etc/system.xml CHANGED
@@ -12,7 +12,7 @@
12
  <ebizmarts_autoresponder translate="label" module="ebizmarts_autoresponder">
13
  <label><![CDATA[Autoresponder Emails]]></label>
14
  <tab>monkey</tab>
15
- <sort_order>400</sort_order>
16
  <show_in_default>1</show_in_default>
17
  <show_in_website>1</show_in_website>
18
  <show_in_store>1</show_in_store>
@@ -103,7 +103,7 @@
103
  <show_in_store>1</show_in_store>
104
  <depends>
105
  <active>1</active>
106
- <trigger>0</trigger>
107
  </depends>
108
  </days>
109
  <order_status translate="label comment">
@@ -117,7 +117,7 @@
117
  <comment><![CDATA[The email will be sent when order gets to the selected status.]]></comment>
118
  <depends>
119
  <active>1</active>
120
- <trigger>1</trigger>
121
  </depends>
122
  </order_status>
123
  <subject translate="label">
12
  <ebizmarts_autoresponder translate="label" module="ebizmarts_autoresponder">
13
  <label><![CDATA[Autoresponder Emails]]></label>
14
  <tab>monkey</tab>
15
+ <sort_order>500</sort_order>
16
  <show_in_default>1</show_in_default>
17
  <show_in_website>1</show_in_website>
18
  <show_in_store>1</show_in_store>
103
  <show_in_store>1</show_in_store>
104
  <depends>
105
  <active>1</active>
106
+ <trigger separator=",">0,2</trigger>
107
  </depends>
108
  </days>
109
  <order_status translate="label comment">
117
  <comment><![CDATA[The email will be sent when order gets to the selected status.]]></comment>
118
  <depends>
119
  <active>1</active>
120
+ <trigger separator=",">1,2</trigger>
121
  </depends>
122
  </order_status>
123
  <subject translate="label">
app/code/community/Ebizmarts/MageMonkey/Helper/Data.php CHANGED
@@ -911,10 +911,10 @@ class Ebizmarts_MageMonkey_Helper_Data extends Mage_Core_Helper_Abstract
911
  ->setImportMode(TRUE)
912
  ->setSubscriberEmail($email);
913
  }else{
914
- $customer = Mage::getSingleton('customer/customer')->load($email);
915
- if($customer->getId()){
916
- $object = $customer;
917
- }
918
  $subscriber = $object;
919
  }
920
 
911
  ->setImportMode(TRUE)
912
  ->setSubscriberEmail($email);
913
  }else{
914
+ // $customer = Mage::getSingleton('customer/customer')->load($email);
915
+ // if($customer->getId()){
916
+ // $object = $customer;
917
+ // }
918
  $subscriber = $object;
919
  }
920
 
app/code/community/Ebizmarts/MageMonkey/Model/Config.php CHANGED
@@ -22,6 +22,7 @@ class Ebizmarts_MageMonkey_Model_Config
22
  const GENERAL_CHANGECUSTOMERGROUP = 'monkey/general/changecustomergroup';
23
  const GENERAL_SHOWREALLISTNAME = 'monkey/general/showreallistname';
24
  const GENERAL_ADDITIONAL_LIST = 'monkey/general/additional_lists';
 
25
  const GENERAL_DOUBLE_OPTIN = 'monkey/general/double_optin';
26
  const GENERAL_MAP_FIELDS = 'monkey/general/map_fields';
27
  const GENERAL_GUEST_NAME = 'monkey/general/guest_name';
22
  const GENERAL_CHANGECUSTOMERGROUP = 'monkey/general/changecustomergroup';
23
  const GENERAL_SHOWREALLISTNAME = 'monkey/general/showreallistname';
24
  const GENERAL_ADDITIONAL_LIST = 'monkey/general/additional_lists';
25
+ const GENERAL_CONFIRMATION_EMAIL = 'monkey/general/confirmation_email';
26
  const GENERAL_DOUBLE_OPTIN = 'monkey/general/double_optin';
27
  const GENERAL_MAP_FIELDS = 'monkey/general/map_fields';
28
  const GENERAL_GUEST_NAME = 'monkey/general/guest_name';
app/code/community/Ebizmarts/MageMonkey/Model/Cron.php CHANGED
@@ -446,8 +446,7 @@ class Ebizmarts_MageMonkey_Model_Cron
446
  $collection = Mage::getModel('monkey/asyncorders')->getCollection();
447
  $collection->addFieldToFilter('processed',array('eq'=>0));
448
  $storeId = null;
449
- foreach($collection as $item)
450
- {
451
  $info = (array)unserialize($item->getInfo());
452
  // $collection2 = Mage::getmodel('monkey/asyncsubscribers')->getCollection()
453
  // ->addFieldToFilter('processed',array('eq'=>1))
@@ -464,31 +463,34 @@ class Ebizmarts_MageMonkey_Model_Cron
464
  // }
465
  $orderId = $info['order_id'];
466
  unset($info['order_id']);
467
- if($storeId!=$info['store_id']) {
468
- $api = Mage::getSingleton('monkey/api',array('store' => $info['store_id']));
469
  $storeId = $info['store_id'];
470
  }
471
- if(isset($info['campaign_id'])) {
472
  $api->campaignEcommOrderAdd($info);
473
- }
474
- else {
475
  $api->ecommOrderAdd($info);
476
  $info['campaign_id'] = null;
477
  }
478
  $item->setProcessed(1)->save();
479
 
480
- $order = Mage::getModel('monkey/ecommerce')
481
- ->setOrderIncrementId($info['id'])
482
- ->setOrderId($orderId)
483
- ->setMcCampaignId($info['campaign_id'])
484
- ->setCreatedAt( Mage::getModel('core/date')->gmtDate() )
485
- ->setStoreId($info['store_id']);
486
- if(isset($info['email_id'])){
487
- $order->setMcEmailId($info['email_id']);
488
- }else{
489
- $order->setMcEmailId($info['email']);
 
 
 
 
 
490
  }
491
- $order->save();
492
  }
493
  }
494
  public function cleanordersAsync()
446
  $collection = Mage::getModel('monkey/asyncorders')->getCollection();
447
  $collection->addFieldToFilter('processed',array('eq'=>0));
448
  $storeId = null;
449
+ foreach($collection as $item) {
 
450
  $info = (array)unserialize($item->getInfo());
451
  // $collection2 = Mage::getmodel('monkey/asyncsubscribers')->getCollection()
452
  // ->addFieldToFilter('processed',array('eq'=>1))
463
  // }
464
  $orderId = $info['order_id'];
465
  unset($info['order_id']);
466
+ if ($storeId != $info['store_id']) {
467
+ $api = Mage::getSingleton('monkey/api', array('store' => $info['store_id']));
468
  $storeId = $info['store_id'];
469
  }
470
+ if (isset($info['campaign_id'])) {
471
  $api->campaignEcommOrderAdd($info);
472
+ } else {
 
473
  $api->ecommOrderAdd($info);
474
  $info['campaign_id'] = null;
475
  }
476
  $item->setProcessed(1)->save();
477
 
478
+ $sentCollection = Mage::getModel('monkey/ecommerce')->getCollection()
479
+ ->addFieldToFilter('order_increment_id', array('eq', $orderId));
480
+ if (count($sentCollection) == 0) {
481
+ $order = Mage::getModel('monkey/ecommerce')
482
+ ->setOrderIncrementId($info['id'])
483
+ ->setOrderId($orderId)
484
+ ->setMcCampaignId($info['campaign_id'])
485
+ ->setCreatedAt(Mage::getModel('core/date')->gmtDate())
486
+ ->setStoreId($info['store_id']);
487
+ if (isset($info['email_id'])) {
488
+ $order->setMcEmailId($info['email_id']);
489
+ } else {
490
+ $order->setMcEmailId($info['email']);
491
+ }
492
+ $order->save();
493
  }
 
494
  }
495
  }
496
  public function cleanordersAsync()
app/code/community/Ebizmarts/MageMonkey/Model/Ecommerce360.php CHANGED
@@ -214,7 +214,7 @@ class Ebizmarts_MageMonkey_Model_Ecommerce360
214
  {
215
  foreach ($this->_order->getAllItems() as $item){
216
  $mcitem = array();
217
- $product = Mage::getSingleton('catalog/product')->load($item->getProductId());
218
 
219
  if(in_array($product->getTypeId(), $this->_productsToSkip) && $product->getPriceType() == 0){
220
  if($product->getTypeId() == Mage_Catalog_Model_Product_Type::TYPE_CONFIGURABLE){
@@ -321,13 +321,21 @@ class Ebizmarts_MageMonkey_Model_Ecommerce360
321
  if($max == $count){
322
  break;
323
  }
 
324
  if($state != 'all_status') {
325
  $orders = Mage::getResourceModel('sales/order_collection')->addFieldToFilter('main_table.store_id', array('eq' => $storeId));
326
- $orders->getSelect()->joinLeft(array('ecommerce' => Mage::getSingleton('core/resource')->getTableName('monkey/ecommerce')), 'main_table.entity_id = ecommerce.order_id', 'main_table.*')->where('ecommerce.order_id is null AND main_table.status = \'' . $state . '\'')
 
 
 
 
327
  ->limit($max - $count);
328
  }else{
329
  $orders = Mage::getResourceModel('sales/order_collection')->addFieldToFilter('main_table.store_id', array('eq' => $storeId));
330
- $orders->getSelect()->joinLeft(array('ecommerce' => Mage::getSingleton('core/resource')->getTableName('monkey/ecommerce')), 'main_table.entity_id = ecommerce.order_id', 'main_table.*')->where('ecommerce.order_id is null')
 
 
 
331
  ->limit($max - $count);
332
  }
333
  $count += count($orders);
@@ -401,7 +409,7 @@ class Ebizmarts_MageMonkey_Model_Ecommerce360
401
  $rs = $api->ecommOrderAdd($this->_info);
402
  }
403
  }
404
- if (isset($rs['complete']) && $rs['complete'] == TRUE) {
405
  $order = Mage::getModel('monkey/ecommerce')
406
  ->setOrderIncrementId($this->_info['id'])
407
  ->setOrderId($this->_info['order_id'])
214
  {
215
  foreach ($this->_order->getAllItems() as $item){
216
  $mcitem = array();
217
+ $product = Mage::getModel('catalog/product')->load($item->getProductId());
218
 
219
  if(in_array($product->getTypeId(), $this->_productsToSkip) && $product->getPriceType() == 0){
220
  if($product->getTypeId() == Mage_Catalog_Model_Product_Type::TYPE_CONFIGURABLE){
321
  if($max == $count){
322
  break;
323
  }
324
+ $ecommerceTable = Mage::getSingleton('core/resource')->getTableName('monkey/ecommerce');
325
  if($state != 'all_status') {
326
  $orders = Mage::getResourceModel('sales/order_collection')->addFieldToFilter('main_table.store_id', array('eq' => $storeId));
327
+ // $orders->getSelect()->joinLeft(array('ecommerce' => Mage::getSingleton('core/resource')->getTableName('monkey/ecommerce')), 'main_table.entity_id = ecommerce.order_id', 'main_table.*')->where('ecommerce.order_id is null AND main_table.status = \'' . $state . '\'')
328
+ // ->limit($max - $count);
329
+ $orders->getSelect()->where('main_table.status = \'' . $state . '\' ' .
330
+ 'AND main_table.entity_id NOT IN '.
331
+ "(SELECT ecommerce.order_id FROM {$ecommerceTable} AS ecommerce WHERE ecommerce.store_id = {$storeId})")
332
  ->limit($max - $count);
333
  }else{
334
  $orders = Mage::getResourceModel('sales/order_collection')->addFieldToFilter('main_table.store_id', array('eq' => $storeId));
335
+ // $orders->getSelect()->joinLeft(array('ecommerce' => Mage::getSingleton('core/resource')->getTableName('monkey/ecommerce')), 'main_table.entity_id = ecommerce.order_id', 'main_table.*')->where('ecommerce.order_id is null')
336
+ // ->limit($max - $count);
337
+ $orders->getSelect()->where('main_table.entity_id NOT IN '.
338
+ "(SELECT ecommerce.order_id FROM {$ecommerceTable} AS ecommerce WHERE ecommerce.store_id = {$storeId})")
339
  ->limit($max - $count);
340
  }
341
  $count += count($orders);
409
  $rs = $api->ecommOrderAdd($this->_info);
410
  }
411
  }
412
+ if (isset($rs['complete']) && $rs['complete'] == TRUE && !Mage::getStoreConfig('monkey/general/checkout_async', Mage::app()->getStore()->getId())) {
413
  $order = Mage::getModel('monkey/ecommerce')
414
  ->setOrderIncrementId($this->_info['id'])
415
  ->setOrderId($this->_info['order_id'])
app/code/community/Ebizmarts/MageMonkey/Model/Monkey.php CHANGED
@@ -64,6 +64,9 @@ class Ebizmarts_MageMonkey_Model_Monkey {
64
  $this->_updateEmail($data);
65
  $cacheHelper->clearCache('listUpdateMember', $object);
66
  break;
 
 
 
67
  }
68
 
69
  if (!is_null($store)) {
@@ -208,6 +211,35 @@ class Ebizmarts_MageMonkey_Model_Monkey {
208
  }
209
  }
210
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
211
  /**
212
  * Return Inbox model instance
213
  *
64
  $this->_updateEmail($data);
65
  $cacheHelper->clearCache('listUpdateMember', $object);
66
  break;
67
+ case 'profile':
68
+ $this->_profile($data);
69
+ break;
70
  }
71
 
72
  if (!is_null($store)) {
211
  }
212
  }
213
 
214
+ protected function _profile($data){
215
+
216
+ $subscriber = $this->loadByEmail($data['email']);
217
+ $storeId = $subscriber->getStoreId();
218
+ $mapMerges = Mage::getStoreConfig(Ebizmarts_MageMonkey_Model_Config::GENERAL_MAP_FIELDS, $storeId);
219
+
220
+ $customerCollection = Mage::getModel('customer/customer')->getCollection()
221
+ ->addFieldToFilter('email', array('eq' => $data['email']));
222
+ if(count($customerCollection) > 0){
223
+ $toUpdate = $customerCollection->getFirstItem();
224
+ }else{
225
+ $toUpdate = $subscriber;
226
+ }
227
+
228
+ $this->_mapFieldsToMagento($data, $toUpdate, $storeId);
229
+
230
+ }
231
+
232
+ protected function _mapFieldsToMagento($data, $toUpdate, $storeId){
233
+ $mapMerges = Mage::getStoreConfig(Ebizmarts_MageMonkey_Model_Config::GENERAL_MAP_FIELDS, $storeId);
234
+
235
+ foreach($data['merges'] as $merge){
236
+ if(in_array($merge, $mapMerges['mailchimp'])){
237
+
238
+ }
239
+ }
240
+
241
+ }
242
+
243
  /**
244
  * Return Inbox model instance
245
  *
app/code/community/Ebizmarts/MageMonkey/Model/Observer.php CHANGED
@@ -19,6 +19,7 @@ class Ebizmarts_MageMonkey_Model_Observer
19
  */
20
  public function handleSubscriber(Varien_Event_Observer $observer)
21
  {
 
22
  if(!Mage::helper('monkey')->canMonkey()){
23
  return $observer;
24
  }
@@ -31,6 +32,8 @@ class Ebizmarts_MageMonkey_Model_Observer
31
  if( !Mage::helper('monkey')->isAdmin() &&
32
  (Mage::getStoreConfig(Mage_Newsletter_Model_Subscriber::XML_PATH_CONFIRMATION_FLAG, $subscriber->getStoreId()) == 1) ){
33
  $subscriber->setStatus(Mage_Newsletter_Model_Subscriber::STATUS_UNCONFIRMED);
 
 
34
  }
35
 
36
  if( $subscriber->getBulksync() ){
@@ -343,8 +346,15 @@ class Ebizmarts_MageMonkey_Model_Observer
343
  } else {
344
  $subscriber = Mage::getModel('newsletter/subscriber')
345
  ->loadByEmail($customer->getEmail());
346
- $subscriber->setImportMode(TRUE)->unsubscribe();
347
- Mage::getSingleton('monkey/api', $customer->getStoreId())->listUnsubscribe($defaultList, $customer->getEmail());
 
 
 
 
 
 
 
348
  }
349
  }
350
  Mage::getSingleton('core/session')->setIsUpdateCustomer(FALSE);
@@ -373,7 +383,6 @@ class Ebizmarts_MageMonkey_Model_Observer
373
  Mage::getSingleton('core/session')->setMonkeyPost( serialize(Mage::app()->getRequest()->getPost()) );
374
  if(!is_null($subscribe)||!is_null($force)){
375
  Mage::getSingleton('core/session')->setMonkeyCheckout(true);
376
-
377
  }
378
  }
379
  if($oneStep){
19
  */
20
  public function handleSubscriber(Varien_Event_Observer $observer)
21
  {
22
+ Mage::log('handleSubscriber', null, 'santiago.log', true);
23
  if(!Mage::helper('monkey')->canMonkey()){
24
  return $observer;
25
  }
32
  if( !Mage::helper('monkey')->isAdmin() &&
33
  (Mage::getStoreConfig(Mage_Newsletter_Model_Subscriber::XML_PATH_CONFIRMATION_FLAG, $subscriber->getStoreId()) == 1) ){
34
  $subscriber->setStatus(Mage_Newsletter_Model_Subscriber::STATUS_UNCONFIRMED);
35
+ }elseif(Mage::helper('monkey')->isAdmin()){
36
+ $subscriber->setStatus(Mage_Newsletter_Model_Subscriber::STATUS_SUBSCRIBED);
37
  }
38
 
39
  if( $subscriber->getBulksync() ){
346
  } else {
347
  $subscriber = Mage::getModel('newsletter/subscriber')
348
  ->loadByEmail($customer->getEmail());
349
+ if($subscriber->getId()) {
350
+ $subscriber->setImportMode(TRUE)->unsubscribe();
351
+ Mage::getSingleton('monkey/api', $customer->getStoreId())->listUnsubscribe($defaultList, $customer->getEmail());
352
+ }else{
353
+ Mage::getModel('newsletter/subscriber')
354
+ ->setSubscriberEmail($customer->getEmail())
355
+ ->setImportMode(TRUE)
356
+ ->subscribe($customer->getEmail());
357
+ }
358
  }
359
  }
360
  Mage::getSingleton('core/session')->setIsUpdateCustomer(FALSE);
383
  Mage::getSingleton('core/session')->setMonkeyPost( serialize(Mage::app()->getRequest()->getPost()) );
384
  if(!is_null($subscribe)||!is_null($force)){
385
  Mage::getSingleton('core/session')->setMonkeyCheckout(true);
 
386
  }
387
  }
388
  if($oneStep){
app/code/community/Ebizmarts/MageMonkey/Model/Subscriber.php CHANGED
@@ -10,7 +10,8 @@ class Ebizmarts_MageMonkey_Model_Subscriber extends Mage_Newsletter_Model_Subscr
10
  {
11
  public function sendUnsubscriptionEmail()
12
  {
13
- if(Mage::getStoreConfig('monkey/general/active', Mage::helper('monkey')->getThisStore()) == 1) {
 
14
  return $this;
15
  }else{
16
  return parent::sendUnsubscriptionEmail();
@@ -19,7 +20,8 @@ class Ebizmarts_MageMonkey_Model_Subscriber extends Mage_Newsletter_Model_Subscr
19
 
20
  public function sendConfirmationRequestEmail()
21
  {
22
- if(Mage::getStoreConfig('monkey/general/active', Mage::helper('monkey')->getThisStore()) == 1) {
 
23
  return $this;
24
  }else{
25
  return parent::sendConfirmationRequestEmail();
@@ -28,9 +30,13 @@ class Ebizmarts_MageMonkey_Model_Subscriber extends Mage_Newsletter_Model_Subscr
28
 
29
  public function sendConfirmationSuccessEmail()
30
  {
31
- if(Mage::getStoreConfig('monkey/general/active', Mage::helper('monkey')->getThisStore()) == 1) {
 
 
 
32
  return $this;
33
  }else{
 
34
  return parent::sendConfirmationSuccessEmail();
35
  }
36
  }
10
  {
11
  public function sendUnsubscriptionEmail()
12
  {
13
+ $store = Mage::helper('monkey')->getThisStore();
14
+ if(Mage::getStoreConfig(Ebizmarts_MageMonkey_Model_Config::GENERAL_ACTIVE, $store) == 1 && !Mage::getStoreConfig(Ebizmarts_MageMonkey_Model_Config::GENERAL_CONFIRMATION_EMAIL, $store)) {
15
  return $this;
16
  }else{
17
  return parent::sendUnsubscriptionEmail();
20
 
21
  public function sendConfirmationRequestEmail()
22
  {
23
+ $store = Mage::helper('monkey')->getThisStore();
24
+ if(Mage::getStoreConfig(Ebizmarts_MageMonkey_Model_Config::GENERAL_ACTIVE, $store) == 1 && !Mage::getStoreConfig(Ebizmarts_MageMonkey_Model_Config::GENERAL_CONFIRMATION_EMAIL, $store)) {
25
  return $this;
26
  }else{
27
  return parent::sendConfirmationRequestEmail();
30
 
31
  public function sendConfirmationSuccessEmail()
32
  {
33
+ $store = Mage::helper('monkey')->getThisStore();
34
+ Mage::log('store '.$store->getId(), null, 'santiago.log', true);
35
+ Mage::log(Mage::getStoreConfig(Ebizmarts_MageMonkey_Model_Config::GENERAL_CONFIRMATION_EMAIL, $store), null, 'santiago.log', true);
36
+ if(Mage::getStoreConfig(Ebizmarts_MageMonkey_Model_Config::GENERAL_ACTIVE, $store) == 1 && !Mage::getStoreConfig(Ebizmarts_MageMonkey_Model_Config::GENERAL_CONFIRMATION_EMAIL, $store)) {
37
  return $this;
38
  }else{
39
+ Mage::log('parent', null, 'santiago.log', true);
40
  return parent::sendConfirmationSuccessEmail();
41
  }
42
  }
app/code/community/Ebizmarts/MageMonkey/Model/System/Config/Source/CustomerGroup.php CHANGED
@@ -31,21 +31,21 @@ class Ebizmarts_MageMonkey_Model_System_Config_Source_CustomerGroup
31
  */
32
  public function toOptionArray()
33
  {
34
- $groups = array();
35
-
36
- if(is_array($this->_group)){
37
- foreach($this->_group as $group) {
38
- $groups[] = array('value'=> $group['id'], 'label' => $group['name'],'style'=>'font-weight: bold;');
39
- $prefix = $group['id'];
40
- foreach($group['groups'] as $key=>$list){
41
- $groups []= array('value' => $prefix.'_'.$list['name'], 'label' => $list['name'],'style'=>'padding-left:20px');
42
- }
43
- }
44
-
45
- }else{
46
- $groups []= array('value' => '', 'label' => Mage::helper('monkey')->__('--- No data ---'));
47
- }
48
- return $groups;
49
  }
50
 
51
  }
31
  */
32
  public function toOptionArray()
33
  {
34
+ // $groups = array();
35
+ //
36
+ // if(is_array($this->_group)){
37
+ // foreach($this->_group as $group) {
38
+ // $groups[] = array('value'=> $group['id'], 'label' => $group['name'],'style'=>'font-weight: bold;');
39
+ // $prefix = $group['id'];
40
+ // foreach($group['groups'] as $key=>$list){
41
+ // $groups []= array('value' => $prefix.'_'.$list['name'], 'label' => $list['name'],'style'=>'padding-left:20px');
42
+ // }
43
+ // }
44
+ //
45
+ // }else{
46
+ // $groups []= array('value' => '', 'label' => Mage::helper('monkey')->__('--- No data ---'));
47
+ // }
48
+ // return $groups;
49
  }
50
 
51
  }
app/code/community/Ebizmarts/MageMonkey/etc/config.xml CHANGED
@@ -10,7 +10,7 @@
10
  <config>
11
  <modules>
12
  <Ebizmarts_MageMonkey>
13
- <version>1.1.28</version>
14
  </Ebizmarts_MageMonkey>
15
  </modules>
16
  <global>
10
  <config>
11
  <modules>
12
  <Ebizmarts_MageMonkey>
13
+ <version>1.1.29</version>
14
  </Ebizmarts_MageMonkey>
15
  </modules>
16
  <global>
app/code/community/Ebizmarts/MageMonkey/etc/system.xml CHANGED
@@ -160,6 +160,17 @@
160
  <can_be_empty>1</can_be_empty>
161
  <comment>All selected lists will be available to customers as additionals lists</comment>
162
  </additional_lists>
 
 
 
 
 
 
 
 
 
 
 
163
  <double_optin translate="label comment">
164
  <label>Double opt-in</label>
165
  <frontend_type>label</frontend_type>
160
  <can_be_empty>1</can_be_empty>
161
  <comment>All selected lists will be available to customers as additionals lists</comment>
162
  </additional_lists>
163
+ <confirmation_email translate="label comment">
164
+ <label>Use Magento's confirmation email</label>
165
+ <frontend_type>select</frontend_type>
166
+ <source_model>adminhtml/system_config_source_yesno</source_model>
167
+ <sort_order>45</sort_order>
168
+ <show_in_default>1</show_in_default>
169
+ <show_in_website>1</show_in_website>
170
+ <show_in_store>1</show_in_store>
171
+ <can_be_empty>1</can_be_empty>
172
+ <comment><![CDATA[Use Magento's confirmation email when user subscribes to Newsletter.]]></comment>
173
+ </confirmation_email>
174
  <double_optin translate="label comment">
175
  <label>Double opt-in</label>
176
  <frontend_type>label</frontend_type>
app/code/community/Ebizmarts/SweetMonkey/Block/Adminhtml/System/Config/Autovars.php ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Renderer for automatic Merge Vars creation in MailChimp
5
+ *
6
+ * @author Ebizmarts Team <info@ebizmarts.com>
7
+ */
8
+ class Ebizmarts_SweetMonkey_Block_Adminhtml_System_Config_Autovars extends Mage_Adminhtml_Block_System_Config_Form_Field {
9
+
10
+ /**
11
+ * Set template to itself
12
+ *
13
+ * @return Ebizmarts_SweetMonkey_Block_Adminhtml_System_Config_Autovars
14
+ */
15
+ protected function _prepareLayout() {
16
+ parent::_prepareLayout();
17
+ if (!$this->getTemplate()) {
18
+ $this->setTemplate('sweetmonkey/system/config/autovars.phtml');
19
+ }
20
+ return $this;
21
+ }
22
+
23
+ /**
24
+ * Unset some non-related element parameters
25
+ *
26
+ * @param Varien_Data_Form_Element_Abstract $element
27
+ * @return string
28
+ */
29
+ public function render(Varien_Data_Form_Element_Abstract $element) {
30
+ $element->unsScope()->unsCanUseWebsiteValue()->unsCanUseDefaultValue();
31
+ return parent::render($element);
32
+ }
33
+
34
+ /**
35
+ * Get the button and scripts contents
36
+ *
37
+ * @param Varien_Data_Form_Element_Abstract $element
38
+ * @return string
39
+ */
40
+ protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element){
41
+
42
+ $originalData = $element->getOriginalData();
43
+ $this->addData(array(
44
+ 'button_label' => Mage::helper('paypal')->__($originalData['button_label']),
45
+ 'html_id' => $element->getHtmlId(),
46
+ 'snd_button_label' => Mage::helper('paypal')->__($originalData['snd_button_label']),
47
+ 'snd_html_id' => 'sandbox_' . $element->getHtmlId(),
48
+ ));
49
+ return $this->_toHtml();
50
+ }
51
+ }
app/code/community/Ebizmarts/SweetMonkey/Block/Adminhtml/System/Config/Fieldset/Hint.php ADDED
@@ -0,0 +1,53 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Ebizmarts_SweetMonkey_Block_Adminhtml_System_Config_Fieldset_Hint
4
+ extends Mage_Adminhtml_Block_Abstract
5
+ implements Varien_Data_Form_Element_Renderer_Interface {
6
+
7
+ protected $_template = 'sweetmonkey/system/config/fieldset/hint.phtml';
8
+
9
+ /**
10
+ * Render fieldset html
11
+ *
12
+ * @param Varien_Data_Form_Element_Abstract $element
13
+ * @return string
14
+ */
15
+ public function render(Varien_Data_Form_Element_Abstract $element) {
16
+ return $this->toHtml();
17
+ }
18
+
19
+ public function getSweetMonkeyVersion() {
20
+ return (string) Mage::getConfig()->getNode('modules/Ebizmarts_SweetMonkey/version');
21
+ }
22
+
23
+ public function getPxParams() {
24
+
25
+ $v = $this->getSweetMonkeyVersion();
26
+
27
+ $sweetTooth = Mage::getStoreConfig('rewards/platform/apisubdomain');
28
+ if(Mage::getStoreConfig('rewards/platform/is_connected')) {
29
+ $platform = Mage::getSingleton('rewards/platform_instance');
30
+ try {
31
+ $account = $platform->account()->get();
32
+
33
+ $sweetTooth .= "-" . $account['username'];
34
+
35
+ } catch (Exception $ex) {
36
+ Mage::logException($ex);
37
+ }
38
+ }
39
+
40
+ $ext = "Sweet Monkey ({$sweetTooth});{$v}";
41
+
42
+ $modulesArray = (array)Mage::getConfig()->getNode('modules')->children();
43
+ $aux = (array_key_exists('Enterprise_Enterprise', $modulesArray))? 'EE' : 'CE' ;
44
+ $mageVersion = Mage::getVersion();
45
+ $mage = "Magento {$aux};{$mageVersion}";
46
+
47
+ $hash = md5($ext . '_' . $mage . '_' . $ext);
48
+
49
+ return "ext=$ext&mage={$mage}&ctrl={$hash}";
50
+
51
+ }
52
+
53
+ }
app/code/community/Ebizmarts/SweetMonkey/Block/Adminhtml/System/Config/Form/Field/Mapfields.php ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Renderer for merge vars in configuration
5
+ *
6
+ * @author Ebizmarts Team <info@ebizmarts.com>
7
+ */
8
+ class Ebizmarts_SweetMonkey_Block_Adminhtml_System_Config_Form_Field_Mapfields extends Mage_Adminhtml_Block_System_Config_Form_Field_Array_Abstract {
9
+
10
+ /**
11
+ * Set the columns name
12
+ *
13
+ * @return void
14
+ */
15
+ public function __construct() {
16
+ $this->addColumn('var_code', array(
17
+ 'label' => Mage::helper('sweetmonkey')->__('Code'),
18
+ 'style' => 'width:120px',
19
+ ));
20
+ $this->addColumn('var_label', array(
21
+ 'label' => Mage::helper('sweetmonkey')->__('Label'),
22
+ 'style' => 'width:120px',
23
+ ));
24
+ $this->_addAfter = false;
25
+ $this->_addButtonLabel = Mage::helper('sweetmonkey')->__('Add field');
26
+ parent::__construct();
27
+ }
28
+ }
app/code/community/Ebizmarts/SweetMonkey/Helper/Data.php ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Main Helper for module
5
+ *
6
+ * @author Ebizmarts Team <info@ebizmarts.com>
7
+ */
8
+ class Ebizmarts_SweetMonkey_Helper_Data extends Mage_Core_Helper_Abstract {
9
+
10
+ /**
11
+ * Check if the module is enabled in configuration
12
+ *
13
+ * @return boolean
14
+ */
15
+ public function enabled() {
16
+ return (bool)Mage::getStoreConfigFlag('sweetmonkey/general/active');
17
+ }
18
+
19
+ /**
20
+ * Get data from configuration
21
+ *
22
+ * @param string $field
23
+ * @return string
24
+ */
25
+ public function config($field) {
26
+ return Mage::getStoreConfig('sweetmonkey/general/' . $field);
27
+ }
28
+
29
+ public function pushVars($customer) {
30
+
31
+ if(Mage::helper('monkey')->canMonkey() && $customer->getId()) {
32
+
33
+ $mergeVars = Mage::helper('monkey')->getMergeVars($customer, TRUE);
34
+ $api = Mage::getSingleton('monkey/api', array('store' => $customer->getStoreId()));
35
+
36
+ $lists = $api->listsForEmail($customer->getEmail());
37
+
38
+ if(is_array($lists)){
39
+ foreach($lists as $listId){
40
+ $api->listUpdateMember($listId, $customer->getEmail(), $mergeVars);
41
+ }
42
+ }
43
+
44
+ }
45
+ }
46
+
47
+ }
app/code/community/Ebizmarts/SweetMonkey/Model/Cron.php ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Model to handle cron tasks logic
5
+ *
6
+ * @author Ebizmarts Team <info@ebizmarts.com>
7
+ */
8
+ class Ebizmarts_SweetMonkey_Model_Cron {
9
+
10
+ const XML_PATH_EXPIRY_EMAIL_TEMPLATE = 'sweetmonkey/general/warning/expiry_email_template';
11
+ const XML_PATH_EXPIRY_EMAIL_IDENTITY = 'sweetmonkey/general/warning/expiry_email_identity';
12
+ const XML_PATH_POINTS_EMAIL_TEMPLATE = 'sweetmonkey/general/warning/points_email_template';
13
+ const XML_PATH_POINTS_EMAIL_IDENTITY = 'sweetmonkey/general/warning/points_email_identity';
14
+
15
+ protected $_daysUntilExpiry = 3;
16
+ protected $_pointsToNotify = 500;
17
+
18
+ /**
19
+ * Send automated emails to the customers
20
+ *
21
+ * @return void
22
+ */
23
+ public function automatedEmails() {
24
+ $this->checkAllCustomers();
25
+ }
26
+
27
+ public function checkAllCustomers() {
28
+ $customers = Mage::getModel('rewards/customer')->getCollection();
29
+ foreach ($customers as $c) {
30
+ if (!Mage::helper('rewards/expiry')->isEnabled($c->getStoreId()))
31
+ continue;
32
+ $c = Mage::getModel('rewards/customer')->load($c->getId());
33
+
34
+ /* send an automated email 3 days before a points expiration */
35
+ $days = Mage::getModel('rewards/expiry')->getDaysUntilExpiry($c);
36
+ if ($days == $this->_daysUntilExpiry) {
37
+ $points = $c->getPoints();
38
+ $vars = array(
39
+ 'customer_name' => $c->getName(),
40
+ 'customer_email' => $c->getEmail(),
41
+ 'store_name' => $c->getStore()->getName(),
42
+ 'points_transferred' => (string) $points[1],
43
+ 'points_balance' => (string) $c->getPointsSummary(),
44
+ 'days_left' => $days,
45
+ 'days_until_expiry' => $this->_daysUntilExpiry
46
+ );
47
+ $email = Mage::getModel('core/email_template');
48
+ $email->sendTransactional(
49
+ Mage::getStoreConfig(self::XML_PATH_EXPIRY_EMAIL_TEMPLATE), Mage::getStoreConfig(self::XML_PATH_EXPIRY_EMAIL_IDENTITY), $c->getEmail(), $c->getName(), $vars
50
+ );
51
+ }
52
+
53
+ /* send an automated email if a customer has a 500 points or more */
54
+ $points = $c->getPoints();
55
+ if ($points[1] >= $this->_pointsToNotify) {
56
+ $vars = array(
57
+ 'customer_name' => $c->getName(),
58
+ 'customer_email' => $c->getEmail(),
59
+ 'store_name' => $c->getStore()->getName(),
60
+ 'points_transferred' => (string) $points[1],
61
+ 'points_balance' => (string) $c->getPointsSummary(),
62
+ 'days_left' => $days,
63
+ 'points_to_notify' => $this->_pointsToNotify
64
+ );
65
+ $email = Mage::getModel('core/email_template');
66
+ $email->sendTransactional(
67
+ Mage::getStoreConfig(self::XML_PATH_POINTS_EMAIL_TEMPLATE), Mage::getStoreConfig(self::XML_PATH_POINTS_EMAIL_IDENTITY), $c->getEmail(), $c->getName(), $vars
68
+ );
69
+ }
70
+ }
71
+ }
72
+
73
+ /**
74
+ * Push customers vars to MailChimp
75
+ *
76
+ * @return void
77
+ */
78
+ public function pushMergeVarsForCustomers() {
79
+
80
+ $customers = Mage::getModel('rewards/customer')->getCollection();
81
+
82
+ foreach ($customers as $c) {
83
+ if (!Mage::helper('rewards/expiry')->isEnabled($c->getStoreId())) {
84
+ continue;
85
+ }
86
+
87
+ $customer = Mage::getModel('rewards/customer')->load($c->getId());
88
+ Mage::helper('sweetmonkey')->pushVars($customer);
89
+ }
90
+ }
91
+
92
+ }
app/code/community/Ebizmarts/SweetMonkey/Model/Observer.php ADDED
@@ -0,0 +1,161 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Event observer main model
5
+ *
6
+ * @author Ebizmarts Team <info@ebizmarts.com>
7
+ */
8
+ class Ebizmarts_SweetMonkey_Model_Observer {
9
+
10
+ /**
11
+ * Sende merge vars after customer logs in
12
+ *
13
+ * @param Varien_Event_Observer $observer
14
+ * @return void
15
+ */
16
+ public function customerLogin($observer) {
17
+ $customer = $observer->getEvent()->getCustomer();
18
+ Mage::helper('sweetmonkey')->pushVars($customer);
19
+ return $this;
20
+ }
21
+
22
+ /**
23
+ * Sende merge vars after Rewards/Customer saves
24
+ *
25
+ * @param Varien_Event_Observer $observer
26
+ * @return void
27
+ */
28
+ public function customerRewardSave($observer) {
29
+ $obj = $observer->getEvent()->getObject();
30
+ if($obj instanceof TBT_Rewards_Model_Customer) {
31
+ Mage::helper('sweetmonkey')->pushVars($obj);
32
+ }
33
+
34
+ return $this;
35
+ }
36
+
37
+ /**
38
+ * Sende merge vars on new points transfer
39
+ *
40
+ * @param Varien_Event_Observer $observer
41
+ * @return void
42
+ */
43
+ public function pointsEvent($observer) {
44
+ $customer = $observer->getEvent()->getCustomer();
45
+ if (! $customer) {
46
+ return $this;
47
+ }
48
+
49
+ Mage::helper('sweetmonkey')->pushVars($customer);
50
+
51
+ return $this;
52
+ }
53
+
54
+ /**
55
+ * Add points merge vars to MailChimp MergeVars struct
56
+ *
57
+ * @param Varien_Event_Observer $observer
58
+ * @return void
59
+ */
60
+ public function attachTbtMergeVars($observer) {
61
+
62
+ $holder = $observer->getEvent()->getNewvars();
63
+ $helper = Mage::helper('sweetmonkey');
64
+ $customerHelper = Mage::helper('customer');
65
+ $customer = $observer->getEvent()->getCustomer();
66
+ if($helper->enabled() && ($customer->getId())) {
67
+
68
+
69
+ $merge = unserialize($helper->config('merge_vars'));
70
+
71
+ if(count($merge)){
72
+
73
+ $tbtVars = array();
74
+ foreach($merge as $varTag) {
75
+ $tbtVars [$varTag['var_code']] = '-';
76
+ }
77
+
78
+ $tbtCustomer = Mage::getModel('rewards/customer')->load($customer->getId());
79
+ //Point balance
80
+ if(array_key_exists('PTS', $tbtVars)) {
81
+ $tbtVars['PTS'] = $tbtCustomer->getPointsSummary();
82
+ }
83
+
84
+ if(array_key_exists('POINTS', $tbtVars)) {
85
+ $tbtVars['POINTS'] = $tbtCustomer->getUsablePointsBalance(1);
86
+ }
87
+
88
+ //Earn and Spent points
89
+ $existEarn = array_key_exists('PTSEARN', $tbtVars);
90
+ $existSpent = array_key_exists('PTSSPENT', $tbtVars);
91
+
92
+ if($existEarn || $existSpent) {
93
+
94
+ $lastTransfers = $tbtCustomer->getTransfers()
95
+ ->selectOnlyActive()
96
+ ->addOrder('last_update_ts', Varien_Data_Collection::SORT_ORDER_DESC);
97
+
98
+ $spent = $earn = null;
99
+
100
+ if($lastTransfers->getSize()) {
101
+ foreach($lastTransfers as $transfer) {
102
+
103
+ if(is_null($earn) && $transfer->getQuantity() > 0){
104
+ $earn = date_format(date_create_from_format('Y-m-d H:i:s', $transfer->getEffectiveStart()), 'Y-m-d');
105
+ }else if(is_null($spent) && $transfer->getQuantity() < 0) {
106
+ $spent = date_format(date_create_from_format('Y-m-d H:i:s', $transfer->getEffectiveStart()), 'Y-m-d');
107
+ }
108
+
109
+ if(!is_null($spent) && !is_null($earn)) {
110
+ break;
111
+ }
112
+
113
+ }
114
+ }
115
+
116
+ if($existEarn && $earn) {
117
+ $tbtVars['PTSEARN'] = $earn;
118
+ }
119
+ if($existSpent && $spent) {
120
+ $tbtVars['PTSSPENT'] = $spent;
121
+ }
122
+
123
+
124
+ }
125
+
126
+ //Expiration Points
127
+ if(array_key_exists('PTSEXP', $tbtVars)) {
128
+ $val = Mage::getSingleton('rewards/expiry')
129
+ ->getExpiryDate($tbtCustomer);
130
+ if($val){
131
+ $val = date_format(date_create_from_format('d/m/Y', $val), 'Y-m-d');
132
+ $tbtVars['PTSEXP'] = $val;
133
+ }
134
+ }
135
+ foreach($tbtVars as $key => $var){
136
+ $aux = str_replace('points', '', strtolower($var));
137
+ $tbtVars[$key] = str_replace('no', 0, $aux);
138
+ Mage::log('cambio '.$tbtVars[$key], null, 'santiago.log', true);
139
+
140
+ }
141
+
142
+ $tbtVars = array_filter($tbtVars);
143
+ //Add data to MailChimp merge vars
144
+ $holder->setData($tbtVars);
145
+ }
146
+
147
+ }
148
+ return $this;
149
+ }
150
+
151
+ /**
152
+ * Gets a date in format YYYY-MM-DD HH:m:s and returns MM/DD/YYYY
153
+ *
154
+ * @param string Date in format YYYY-MM-DD
155
+ * @return string MM/DD/YYYY
156
+ */
157
+ protected function _formatDateMerge($date) {
158
+ return preg_replace("/(\d+)\D+(\d+)\D+(\d+)\D+(\d+)\D+(\d+)\D+(\d+)/", "$2/$3/$1", $date);
159
+ }
160
+
161
+ }
app/code/community/Ebizmarts/SweetMonkey/controllers/Adminhtml/MageMonkeyController.php ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Controller to handle logic for merge vars in config
5
+ *
6
+ * @author Ebizmarts Team <info@ebizmarts.com>
7
+ */
8
+ class Ebizmarts_SweetMonkey_Adminhtml_MageMonkeyController extends Mage_Adminhtml_Controller_Action {
9
+
10
+ /**
11
+ * Get merge vars for given list
12
+ */
13
+ public function varsForListAction() {
14
+ $listId = $this->getRequest()->getParam('list_id', null);
15
+
16
+ $mergeVars = array();
17
+
18
+ if ($listId) {
19
+ $api = Mage::getModel('monkey/api');
20
+
21
+ $mergeVars = $api->listMergeVars($listId);
22
+ }
23
+
24
+ $this->getResponse()->setBody(Zend_Json::encode($mergeVars));
25
+ return;
26
+ }
27
+
28
+ /**
29
+ * Add merge vars to list
30
+ */
31
+ public function varsToListAction() {
32
+
33
+ $listId = $this->getRequest()->getPost('list_id', null);
34
+
35
+ if ($listId) {
36
+
37
+ $api = Mage::getModel('monkey/api');
38
+ parse_str($this->getRequest()->getPost('merge_vars'), $mergeVars);
39
+
40
+ $options = array();
41
+ foreach ($mergeVars as $tag => $name) {
42
+
43
+ //Date for some fields, format is "MM/DD/YYYY"
44
+ if ($tag == 'PTSSPENT' || $tag == 'PTSEARN' || $tag == 'PTSEXP') {
45
+ $options ['field_type'] = 'date';
46
+ }
47
+ else {
48
+
49
+ //We add a new mergevar for INT points.
50
+ if($tag == 'PTS') {
51
+ $options = array('field_type' => 'number');
52
+ $api->listMergeVarAdd($listId, "POINTS", "Points", $options);
53
+
54
+ $options = array();
55
+ }
56
+ }
57
+
58
+ $api->listMergeVarAdd($listId, $tag, $name, $options);
59
+
60
+ $options = array();
61
+ }
62
+ }
63
+
64
+ $this->getResponse()->setBody(Zend_Json::encode(array()));
65
+ return;
66
+ }
67
+
68
+ }
app/code/community/Ebizmarts/SweetMonkey/etc/adminhtml.xml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <acl>
4
+ <resources>
5
+ <admin>
6
+ <children>
7
+ <system>
8
+ <children>
9
+ <config>
10
+ <children>
11
+ <sweetmonkey translate="title" module="sweetmonkey">
12
+ <title>Sweet Monkey Configuration</title>
13
+ </sweetmonkey>
14
+ </children>
15
+ </config>
16
+ </children>
17
+ </system>
18
+ </children>
19
+ </admin>
20
+ </resources>
21
+ </acl>
22
+ </config>
app/code/community/Ebizmarts/SweetMonkey/etc/config.xml ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <modules>
4
+ <Ebizmarts_SweetMonkey>
5
+ <version>1.1.8</version>
6
+ </Ebizmarts_SweetMonkey>
7
+ </modules>
8
+ <global>
9
+ <models>
10
+ <sweetmonkey>
11
+ <class>Ebizmarts_SweetMonkey_Model</class>
12
+ </sweetmonkey>
13
+ </models>
14
+ <blocks>
15
+ <sweetmonkey>
16
+ <class>Ebizmarts_SweetMonkey_Block</class>
17
+ </sweetmonkey>
18
+ </blocks>
19
+ <helpers>
20
+ <sweetmonkey>
21
+ <class>Ebizmarts_SweetMonkey_Helper</class>
22
+ </sweetmonkey>
23
+ </helpers>
24
+ <events>
25
+ <rewards_points_indexer_update>
26
+ <observers>
27
+ <sweetmonkey_send_vars>
28
+ <class>sweetmonkey/observer</class>
29
+ <method>pointsEvent</method>
30
+ </sweetmonkey_send_vars>
31
+ </observers>
32
+ </rewards_points_indexer_update>
33
+ <model_save_after>
34
+ <observers>
35
+ <sweetmonkey_send_vars>
36
+ <class>sweetmonkey/observer</class>
37
+ <method>customerRewardSave</method>
38
+ </sweetmonkey_send_vars>
39
+ </observers>
40
+ </model_save_after>
41
+ <magemonkey_mergevars_after>
42
+ <observers>
43
+ <sweetmonkey_merge_vars>
44
+ <class>sweetmonkey/observer</class>
45
+ <method>attachTbtMergeVars</method>
46
+ </sweetmonkey_merge_vars>
47
+ </observers>
48
+ </magemonkey_mergevars_after>
49
+ </events>
50
+ <template>
51
+ <email>
52
+ <sweetmonkey_warning_email_expiry translate="label" module="sweetmonkey">
53
+ <label>Sweet Tooth - Points Expiry in 3 Days Notice </label>
54
+ <file>sweetmonkey/expiry_notice.html</file>
55
+ <type>html</type>
56
+ </sweetmonkey_warning_email_expiry>
57
+ <sweetmonkey_warning_email_points translate="label" module="sweetmonkey">
58
+ <label>Sweet Tooth - More than 500 Points Notice </label>
59
+ <file>sweetmonkey/points_notice.html</file>
60
+ <type>html</type>
61
+ </sweetmonkey_warning_email_points>
62
+ </email>
63
+ </template>
64
+ </global>
65
+ <frontend>
66
+ <events>
67
+ <customer_login>
68
+ <observers>
69
+ <sweetmonkey_send_vars>
70
+ <class>sweetmonkey/observer</class>
71
+ <method>customerLogin</method>
72
+ </sweetmonkey_send_vars>
73
+ </observers>
74
+ </customer_login>
75
+ </events>
76
+ <translate>
77
+ <modules>
78
+ <Ebizmarts_SweetMonkey>
79
+ <files>
80
+ <default>Ebizmarts_SweetMonkey.csv</default>
81
+ </files>
82
+ </Ebizmarts_SweetMonkey>
83
+ </modules>
84
+ </translate>
85
+ </frontend>
86
+ <admin>
87
+ <routers>
88
+ <adminhtml>
89
+ <args>
90
+ <modules>
91
+ <sweetmonkey before="Mage_Adminhtml">Ebizmarts_SweetMonkey_Adminhtml</sweetmonkey>
92
+ </modules>
93
+ </args>
94
+ </adminhtml>
95
+ </routers>
96
+ </admin>
97
+ <adminhtml>
98
+ <layout>
99
+ <updates>
100
+ <magemonkey>
101
+ <file>magemonkey.xml</file>
102
+ </magemonkey>
103
+ </updates>
104
+ </layout>
105
+ <translate>
106
+ <modules>
107
+ <Ebizmarts_SweetMonkey>
108
+ <files>
109
+ <default>Ebizmarts_SweetMonkey.csv</default>
110
+ </files>
111
+ </Ebizmarts_SweetMonkey>
112
+ </modules>
113
+ </translate>
114
+ </adminhtml>
115
+ <default>
116
+ <sweetmonkey>
117
+ <general>
118
+ <active>0</active>
119
+ <merge_vars><![CDATA[a:4:{i:0;a:2:{s:8:"var_code";s:3:"PTS";s:9:"var_label";s:13:"Point Balance";}i:1;a:2:{s:8:"var_code";s:6:"PTSEXP";s:9:"var_label";s:16:"Point Expiration";}i:2;a:2:{s:8:"var_code";s:7:"PTSEARN";s:9:"var_label";s:24:"Last time earning points";}i:3;a:2:{s:8:"var_code";s:8:"PTSSPENT";s:9:"var_label";s:25:"Last time spending points";}}]]></merge_vars>
120
+ <warning>
121
+ <expiry_email_template>sweetmonkey_warning_email_expiry</expiry_email_template>
122
+ <expiry_email_identity>general</expiry_email_identity>
123
+ <points_email_template>sweetmonkey_warning_email_points</points_email_template>
124
+ <points_email_identity>general</points_email_identity>
125
+ </warning>
126
+ <email_points>10</email_points>
127
+ </general>
128
+ </sweetmonkey>
129
+ </default>
130
+ <crontab>
131
+ <jobs>
132
+ <sweetmonkey>
133
+ <schedule><cron_expr>0 0 * * *</cron_expr></schedule>
134
+ <run><model>sweetmonkey/cron::automatedEmails</model></run>
135
+ </sweetmonkey>
136
+ <sweetmonkey_send_vars>
137
+ <schedule><cron_expr>0 1 * * *</cron_expr></schedule>
138
+ <run><model>sweetmonkey/cron::pushMergeVarsForCustomers</model></run>
139
+ </sweetmonkey_send_vars>
140
+ </jobs>
141
+ </crontab>
142
+ </config>
app/code/community/Ebizmarts/SweetMonkey/etc/system.xml ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0"?>
2
+ <config>
3
+ <sections>
4
+ <sweetmonkey translate="label" module="sweetmonkey">
5
+ <class>sweetmonkey-section</class>
6
+ <label>Sweet Monkey</label>
7
+ <header_css>sweetmonkey-header</header_css>
8
+ <tab>monkey</tab>
9
+ <sort_order>300</sort_order>
10
+ <show_in_default>1</show_in_default>
11
+ <show_in_website>1</show_in_website>
12
+ <show_in_store>1</show_in_store>
13
+ <groups>
14
+ <hint>
15
+ <frontend_model>sweetmonkey/adminhtml_system_config_fieldset_hint</frontend_model>
16
+ <sort_order>0</sort_order>
17
+ <show_in_default>1</show_in_default>
18
+ <show_in_website>1</show_in_website>
19
+ <show_in_store>1</show_in_store>
20
+ </hint>
21
+ <general translate="label comment">
22
+ <label>Sweet Monkey</label>
23
+ <frontend_type>text</frontend_type>
24
+ <show_in_default>1</show_in_default>
25
+ <show_in_website>1</show_in_website>
26
+ <show_in_store>1</show_in_store>
27
+ <sort_order>1</sort_order>
28
+ <fields>
29
+ <active translate="label">
30
+ <label>Enabled</label>
31
+ <frontend_type>select</frontend_type>
32
+ <source_model>adminhtml/system_config_source_yesno</source_model>
33
+ <sort_order>10</sort_order>
34
+ <show_in_default>1</show_in_default>
35
+ <show_in_website>1</show_in_website>
36
+ <show_in_store>1</show_in_store>
37
+ </active>
38
+ <merge_vars translate="label comment">
39
+ <label>Merge Vars</label>
40
+ <frontend_model>sweetmonkey/adminhtml_system_config_form_field_mapfields</frontend_model>
41
+ <backend_model>adminhtml/system_config_backend_serialized_array</backend_model>
42
+ <sort_order>20</sort_order>
43
+ <show_in_default>1</show_in_default>
44
+ <show_in_website>0</show_in_website>
45
+ <show_in_store>1</show_in_store>
46
+ </merge_vars>
47
+ <vars_button translate="button_label">
48
+ <label></label>
49
+ <button_label><![CDATA[Create the above merge vars]]></button_label>
50
+ <snd_button_label><![CDATA[Get current vars]]></snd_button_label>
51
+ <frontend_model>sweetmonkey/adminhtml_system_config_autovars</frontend_model>
52
+ <sort_order>30</sort_order>
53
+ <show_in_default>1</show_in_default>
54
+ <show_in_website>1</show_in_website>
55
+ </vars_button>
56
+ <lists translate="label comment">
57
+ <label>MailChimp Lists</label>
58
+ <frontend_type>select</frontend_type>
59
+ <source_model>monkey/system_config_source_list</source_model>
60
+ <sort_order>30</sort_order>
61
+ <show_in_default>1</show_in_default>
62
+ <show_in_website>0</show_in_website>
63
+ <show_in_store>1</show_in_store>
64
+ <can_be_empty>1</can_be_empty>
65
+ </lists>
66
+ <email_points translate="label comment">
67
+ <label>Minimun points to show on Abandoned Cart email if enabled.</label>
68
+ <frontend_type>text</frontend_type>
69
+ <sort_order>40</sort_order>
70
+ <show_in_default>1</show_in_default>
71
+ <show_in_website>1</show_in_website>
72
+ <show_in_store>1</show_in_store>
73
+ <comment><![CDATA[If you set this to 0 it will always display the point balance.]]></comment>
74
+ </email_points>
75
+ </fields>
76
+ </general>
77
+ </groups>
78
+ </sweetmonkey>
79
+ </sections>
80
+ </config>
app/design/adminhtml/default/default/template/ebizmarts/mandrill/system/config/fieldset/hint.phtml CHANGED
@@ -1,5 +1,5 @@
1
  <div class="mandrill-notice">
2
- <img src="http://ebizmarts.com/extension-logo.php?<?php echo $this->getPxParams(); ?>" />
3
  <h4>
4
  <?php echo $this->__('<strong style="color:#EA7601;">Mandrill v%s by</strong> <a target="_blank" href="http://ebizmarts.com"><strong>ebizmarts</strong></a>', $this->getMandrillVersion())?>
5
  <br>
1
  <div class="mandrill-notice">
2
+ <img src="https://ebizmarts.com/extension-logo.php?<?php echo $this->getPxParams(); ?>" />
3
  <h4>
4
  <?php echo $this->__('<strong style="color:#EA7601;">Mandrill v%s by</strong> <a target="_blank" href="http://ebizmarts.com"><strong>ebizmarts</strong></a>', $this->getMandrillVersion())?>
5
  <br>
app/design/adminhtml/default/default/template/magemonkey/system/config/resetlocal360.phtml CHANGED
@@ -6,10 +6,10 @@
6
  onSuccess: function(transport){
7
 
8
  if (transport.responseText == 1){
9
- alert('All local orders for Ecommerce360 were deleted')
10
  }
11
  else {
12
- alert('En error happens deleting local orders in Ecommerce360')
13
  }
14
  }
15
  });
@@ -22,7 +22,7 @@
22
  onSuccess: function (transport) {
23
  $el = $('monkey_general_cutomergroup');
24
  while($el.firstChild) {
25
- $el.removeChild($el.firstChild)
26
  }
27
  if(transport.responseJSON.length==0) {
28
  opt = document.createElement('option');
@@ -50,13 +50,13 @@
50
  }
51
  });
52
  }
53
- // document.observe("dom:loaded", function() {
54
- // if($('monkey_general_list')) {
55
- // Element.observe('monkey_general_list','change',reloadGroups);
56
- // Element.observe(window,'load',reloadGroups);
57
- // }
58
- // });
59
  //]]>
60
  </script>
61
 
62
- <?php echo $this->getButtonHtml() ?>
6
  onSuccess: function(transport){
7
 
8
  if (transport.responseText == 1){
9
+ alert('All local orders for Ecommerce360 were deleted');
10
  }
11
  else {
12
+ alert('En error happens deleting local orders in Ecommerce360');
13
  }
14
  }
15
  });
22
  onSuccess: function (transport) {
23
  $el = $('monkey_general_cutomergroup');
24
  while($el.firstChild) {
25
+ $el.removeChild($el.firstChild);
26
  }
27
  if(transport.responseJSON.length==0) {
28
  opt = document.createElement('option');
50
  }
51
  });
52
  }
53
+ document.observe("dom:loaded", function() {
54
+ if($('monkey_general_list')) {
55
+ Element.observe('monkey_general_list','change',reloadGroups);
56
+ Element.observe(window,'load',reloadGroups);
57
+ }
58
+ });
59
  //]]>
60
  </script>
61
 
62
+ <?php echo $this->getButtonHtml(); ?>
app/design/adminhtml/default/default/template/sweetmonkey/system/config/autovars.phtml ADDED
@@ -0,0 +1,78 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @see Ebizmarts_SweetMonkey_Block_Adminhtml_System_Config_Autovars
4
+ */
5
+ ?>
6
+ <table>
7
+ <tr>
8
+ <td>
9
+ <button onclick="createVars(); return false;" class="scalable" type="button" id="<?php echo $this->getHtmlId() ?>">
10
+ <span><?php echo $this->escapeHtml($this->getButtonLabel()); ?></span>
11
+ </button>
12
+ </td>
13
+ <td>
14
+ <button onclick="showVars(); return false;" class="scalable" type="button" id="<?php echo $this->getSndHtmlId() ?>">
15
+ <span><?php echo $this->escapeHtml($this->getSndButtonLabel()); ?></span>
16
+ </button>
17
+ </td>
18
+ </tr>
19
+ <tr>
20
+ <td colspan="2" id="varscontainer">&nbsp;</td>
21
+ </tr>
22
+ </table>
23
+
24
+ <script type="text/javascript">
25
+
26
+ showVars = function () {
27
+
28
+ var html = new Element('ul');
29
+ var myTemplate = new Template('<li>#{name} <strong>#{tag}</strong></li>');
30
+
31
+ new Ajax.Request('<?php echo Mage::helper('adminhtml')->getUrl('adminhtml/mageMonkey/varsForList'); ?>', {
32
+ parameters: { "list_id":$('sweetmonkey_general_lists').getValue() },
33
+ onComplete: function(response) {
34
+ if (200 == response.status){
35
+ var data = response.responseText.evalJSON();
36
+ var lis = '';
37
+ data.each(function(merge_var){
38
+ lis += myTemplate.evaluate(merge_var);
39
+ });
40
+
41
+ html.update(lis);
42
+ $('varscontainer').update(html);
43
+ }
44
+ },
45
+ onLoading: function(){
46
+ $('varscontainer').update('...');
47
+ }
48
+ });
49
+ }
50
+
51
+ createVars = function () {
52
+
53
+ if(!confirm("<?php echo $this->__('Are you sure?'); ?>")){
54
+ return;
55
+ }
56
+
57
+ var varsparams = $H({});
58
+
59
+ var varsInput = $$('tr#row_sweetmonkey_general_merge_vars input[type=text]');
60
+ for(i=0;i<varsInput.length;i+=2){
61
+ varsparams.set(varsInput[i].getValue(), varsInput[i+1].getValue());
62
+ }
63
+
64
+ new Ajax.Request('<?php echo Mage::helper('adminhtml')->getUrl('adminhtml/mageMonkey/varsToList'); ?>', {
65
+ method: 'post',
66
+ parameters: { "list_id":$('sweetmonkey_general_lists').getValue(), "merge_vars":varsparams.toQueryString() },
67
+ onComplete: function(response) {
68
+ if (200 == response.status){
69
+ showVars();
70
+ }
71
+ },
72
+ onLoading: function(){
73
+ $('varscontainer').update('...');
74
+ }
75
+ });
76
+ }
77
+
78
+ </script>
app/design/adminhtml/default/default/template/sweetmonkey/system/config/fieldset/hint.phtml ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @see Ebizmarts_SweetMonkey_Block_Adminhtml_System_Config_Fieldset_Hint
4
+ */
5
+ ?>
6
+ <div class="sweetmonkey-notice">
7
+ <img src="http://ebizmarts.com/extension-logo.php?<?php echo $this->getPxParams(); ?>" />
8
+ <h4>
9
+ <?php echo $this->__('<strong style="color:#EA7601;">Sweet Monkey v%s by</strong> <a target="_blank" href="http://ebizmarts.com"><strong>ebizmarts</strong></a>', $this->getSweetMonkeyVersion())?>
10
+ </h4>
11
+ </div>
app/design/frontend/base/default/layout/ebizmarts/autoresponder.xml CHANGED
@@ -48,7 +48,6 @@
48
 
49
  <review_product_list>
50
  <reference name="product.info.product_additional_data">
51
- <remove name="product.review.form"/>
52
  <block type="ebizmarts_autoresponder/review_form" name="product.review.form.autoresponder" as="review_form"/>
53
  <block type="page/html_wrapper" name="product.review.form.fields.before" as="form_fields_before" translate="label"/>
54
  <label>Review Form Fields Before</label>
48
 
49
  <review_product_list>
50
  <reference name="product.info.product_additional_data">
 
51
  <block type="ebizmarts_autoresponder/review_form" name="product.review.form.autoresponder" as="review_form"/>
52
  <block type="page/html_wrapper" name="product.review.form.fields.before" as="form_fields_before" translate="label"/>
53
  <label>Review Form Fields Before</label>
app/design/frontend/base/default/template/ebizmarts_abandonedcart/popup/emailcatcher.phtml CHANGED
@@ -35,7 +35,6 @@
35
  win.okCallback();
36
  }
37
  });
38
-
39
  var cookieStored = emailCookieExists();
40
  if (!cookieStored) {
41
  var win = Dialog.confirm($('email').innerHTML, {
@@ -53,7 +52,8 @@
53
  $counterId = $_COOKIE['counter'];
54
  $counter = Mage::getModel('ebizmarts_abandonedcart/popup')->load($counterId);
55
  //if(counter en config == counter en db){
56
- if($counter->getCounter()+1 >= Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::POPUP_INSIST, Mage::app()->getStore()->getId())): ?>
 
57
  document.cookie = 'counter=; expires=Thu, 01 Jan 1970 00:00:01 GMT';
58
  createCookie('email=none', <?php Print(json_encode(Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::POPUP_COOKIE_TIME, $this->_getStoreId()))); ?>);
59
  <?php else :
@@ -62,10 +62,14 @@
62
  endif; ?>
63
  <?php else:
64
  //create cookie counter in 0
65
- $newCounter = Mage::getModel('ebizmarts_abandonedcart/popup');
66
- $newCounter->setCounter(1)->save();
67
- ?>
68
- createCookie('counter='+<?php Print(json_encode($newCounter->getId())); ?>, <?php Print(json_encode(Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::POPUP_COOKIE_TIME, $this->_getStoreId()))); ?>);
 
 
 
 
69
  <?php endif; ?>
70
  },
71
  <?php endif; ?>
@@ -90,7 +94,6 @@
90
  }
91
  }
92
  });
93
-
94
  <?php if(!$this->_canCancel()): ?>
95
  $$('.cancel_button').each(function (element) {
96
  element.remove();
@@ -103,7 +106,6 @@
103
  });
104
  });
105
  <?php endif; ?>
106
-
107
  }
108
  }
109
  <?php endif; ?>
@@ -111,7 +113,6 @@
111
  var re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
112
  return re.test(email);
113
  }
114
-
115
  function emailCookieExists(){
116
  var cookie = document.cookie;
117
  var cookieArr = cookie.split(';');
@@ -123,7 +124,6 @@
123
  }
124
  return cookieStored;
125
  }
126
-
127
  function createCookie(cookie, expirationInDays){
128
  var now = new Date();
129
  var expire = new Date(now.getTime() + (expirationInDays * 24 * 60) * 60000);//[(1 * 365 * 24 * 60) * 60000] == 1 year -- (Years * Days * Hours * Minutes) * 60000
35
  win.okCallback();
36
  }
37
  });
 
38
  var cookieStored = emailCookieExists();
39
  if (!cookieStored) {
40
  var win = Dialog.confirm($('email').innerHTML, {
52
  $counterId = $_COOKIE['counter'];
53
  $counter = Mage::getModel('ebizmarts_abandonedcart/popup')->load($counterId);
54
  //if(counter en config == counter en db){
55
+ if($counter->getCounter()+1 >= Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::POPUP_INSIST, Mage::app()->getStore()->getId())):
56
+ ?>
57
  document.cookie = 'counter=; expires=Thu, 01 Jan 1970 00:00:01 GMT';
58
  createCookie('email=none', <?php Print(json_encode(Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::POPUP_COOKIE_TIME, $this->_getStoreId()))); ?>);
59
  <?php else :
62
  endif; ?>
63
  <?php else:
64
  //create cookie counter in 0
65
+ if (Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::POPUP_INSIST, Mage::app()->getStore()->getId()) == 1): ?>
66
+ createCookie('email=none', <?php Print(json_encode(Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::POPUP_COOKIE_TIME, $this->_getStoreId()))); ?>);
67
+ <?php else:
68
+ $newCounter = Mage::getModel('ebizmarts_abandonedcart/popup');
69
+ $newCounter->setCounter(1)->save();
70
+ ?>
71
+ createCookie('counter='+<?php Print(json_encode($newCounter->getId())); ?>, <?php Print(json_encode(Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::POPUP_COOKIE_TIME, $this->_getStoreId()))); ?>);
72
+ <?php endif; ?>
73
  <?php endif; ?>
74
  },
75
  <?php endif; ?>
94
  }
95
  }
96
  });
 
97
  <?php if(!$this->_canCancel()): ?>
98
  $$('.cancel_button').each(function (element) {
99
  element.remove();
106
  });
107
  });
108
  <?php endif; ?>
 
109
  }
110
  }
111
  <?php endif; ?>
113
  var re = /^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
114
  return re.test(email);
115
  }
 
116
  function emailCookieExists(){
117
  var cookie = document.cookie;
118
  var cookieArr = cookie.split(';');
124
  }
125
  return cookieStored;
126
  }
 
127
  function createCookie(cookie, expirationInDays){
128
  var now = new Date();
129
  var expire = new Date(now.getTime() + (expirationInDays * 24 * 60) * 60000);//[(1 * 365 * 24 * 60) * 60000] == 1 year -- (Years * Days * Hours * Minutes) * 60000
app/locale/en_US/Ebizmarts_SweetMonkey.csv ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ "Merge Vars","Merge Vars"
2
+ "MailChimp Lists","MailChimp Lists"
3
+ "Enabled","Enabled"
4
+ "Code","Code"
5
+ "Label","Label"
6
+ "Create the above merge vars","Create the above merge vars"
7
+ "Get current vars","Get current vars"
8
+ "Delete","Delete"
9
+ "Add field","Add field"
10
+ "Point Balance","Point Balance"
11
+ "Point Expiration","Point Expiration"
12
+ "Last time earning points","Last time earning points"
13
+ "Last time spending points","Last time spending points"
app/locale/en_US/template/email/ebizmarts/abandonedcart/abandoned_cart_mail_1.html CHANGED
@@ -22,6 +22,9 @@
22
  {{depend discount}}
23
  and obtain a discount of {{var discount}} only until {{var todate}}
24
  {{/depend}}
 
 
 
25
  </p>
26
  </td>
27
  </tr>
@@ -35,7 +38,7 @@
35
  </tr>
36
  <tr>
37
  <td align="center">
38
- <div style="margin-top: 30px; margin-bottom:20px;"><a bgcolor="#EAEAEA" style="background:#EAEAEA; text-align:center; display:cell-block; color:black; border-radius: 10px; text-decoration:none; padding:22px; box-shadow: inset 0px 1px 1px #909193, 0px 1px 0px #fff; font-size:15px" href="{{var url}}" >Resume your oder {{depend couponcode}} and redeem coupon code {{/depend}}{{var couponcode}} {{depend discount}} to get {{var discount}}% off!{{/depend}}</a></div>
39
  </td>
40
  </tr>
41
  <tr>
22
  {{depend discount}}
23
  and obtain a discount of {{var discount}} only until {{var todate}}
24
  {{/depend}}
25
+ {{depend points}}
26
+ <br />You currently have {{var points}} points available.
27
+ {{/depend}}
28
  </p>
29
  </td>
30
  </tr>
38
  </tr>
39
  <tr>
40
  <td align="center">
41
+ <div style="margin-top: 30px; margin-bottom:20px;"><a bgcolor="#EAEAEA" style="background:#EAEAEA; text-align:center; display:cell-block; color:black; border-radius: 10px; text-decoration:none; padding:22px; box-shadow: inset 0px 1px 1px #909193, 0px 1px 0px #fff; font-size:15px" href="{{var url}}" >Resume your order {{depend couponcode}} and redeem coupon code {{/depend}}{{var couponcode}} {{depend discount}} to get {{var discount}}% off!{{/depend}}</a></div>
42
  </td>
43
  </tr>
44
  <tr>
app/locale/en_US/template/email/ebizmarts/abandonedcart/abandoned_cart_mail_2.html CHANGED
@@ -22,6 +22,9 @@
22
  {{depend discount}}
23
  and obtain a discount of {{var discount}} only until {{var todate}}
24
  {{/depend}}
 
 
 
25
  <br>If you have any questions about your order please contact us at <a href="mailto:{{config path='trans_email/ident_support/email'}}" style="color:#1E7EC8;">{{config path='trans_email/ident_support/email'}}</a> or call us at <span class="nobr">{{config path='general/store_information/phone'}}</span> Monday - Friday, 8am - 5pm PST.
26
  </p>
27
  </td>
@@ -36,7 +39,7 @@
36
  </tr>
37
  <tr>
38
  <td align="center">
39
- <div style="margin-top: 30px; margin-bottom:20px;"><a bgcolor="#EAEAEA" style="background:#EAEAEA; text-align:center; display:cell-block; color:black; border-radius: 10px; text-decoration:none; padding:22px; box-shadow: inset 0px 1px 1px #909193, 0px 1px 0px #fff; font-size:15px" href="{{var url}}" >Resume your oder {{depend couponcode}} and redeem coupon code {{/depend}}{{var couponcode}} {{depend discount}} to get {{var discount}}% off!{{/depend}}</a></div>
40
  </td>
41
  </tr>
42
  <tr>
22
  {{depend discount}}
23
  and obtain a discount of {{var discount}} only until {{var todate}}
24
  {{/depend}}
25
+ {{depend points}}
26
+ <br />You currently have {{var points}} points available.
27
+ {{/depend}}
28
  <br>If you have any questions about your order please contact us at <a href="mailto:{{config path='trans_email/ident_support/email'}}" style="color:#1E7EC8;">{{config path='trans_email/ident_support/email'}}</a> or call us at <span class="nobr">{{config path='general/store_information/phone'}}</span> Monday - Friday, 8am - 5pm PST.
29
  </p>
30
  </td>
39
  </tr>
40
  <tr>
41
  <td align="center">
42
+ <div style="margin-top: 30px; margin-bottom:20px;"><a bgcolor="#EAEAEA" style="background:#EAEAEA; text-align:center; display:cell-block; color:black; border-radius: 10px; text-decoration:none; padding:22px; box-shadow: inset 0px 1px 1px #909193, 0px 1px 0px #fff; font-size:15px" href="{{var url}}" >Resume your order {{depend couponcode}} and redeem coupon code {{/depend}}{{var couponcode}} {{depend discount}} to get {{var discount}}% off!{{/depend}}</a></div>
43
  </td>
44
  </tr>
45
  <tr>
app/locale/en_US/template/email/ebizmarts/abandonedcart/abandoned_cart_mail_3.html CHANGED
@@ -20,6 +20,9 @@
20
  {{depend discount}}
21
  and obtain a discount of {{var discount}} only until {{var todate}}
22
  {{/depend}}
 
 
 
23
  <br>You can access your cart <a href="{{var url}}" style="color:#1E7EC8;">here</a>.
24
  <br>If you have any questions about your order please contact us at <a href="mailto:{{config path='trans_email/ident_support/email'}}" style="color:#1E7EC8;">{{config path='trans_email/ident_support/email'}}</a> or call us at <span class="nobr">{{config path='general/store_information/phone'}}</span> Monday - Friday, 8am - 5pm PST.
25
  </p>
@@ -35,7 +38,7 @@
35
  </tr>
36
  <tr>
37
  <td align="center">
38
- <div style="margin-top: 30px; margin-bottom:20px;"><a bgcolor="#EAEAEA" style="background:#EAEAEA; text-align:center; display:cell-block; color:black; border-radius: 10px; text-decoration:none; padding:22px; box-shadow: inset 0px 1px 1px #909193, 0px 1px 0px #fff; font-size:15px" href="{{var url}}" >Resume your oder {{depend couponcode}} and redeem coupon code {{/depend}}{{var couponcode}} {{depend discount}} to get {{var discount}}% off!{{/depend}}</a></div>
39
  </td>
40
  </tr>
41
  <tr>
20
  {{depend discount}}
21
  and obtain a discount of {{var discount}} only until {{var todate}}
22
  {{/depend}}
23
+ {{depend points}}
24
+ <br />You currently have {{var points}} points available.
25
+ {{/depend}}
26
  <br>You can access your cart <a href="{{var url}}" style="color:#1E7EC8;">here</a>.
27
  <br>If you have any questions about your order please contact us at <a href="mailto:{{config path='trans_email/ident_support/email'}}" style="color:#1E7EC8;">{{config path='trans_email/ident_support/email'}}</a> or call us at <span class="nobr">{{config path='general/store_information/phone'}}</span> Monday - Friday, 8am - 5pm PST.
28
  </p>
38
  </tr>
39
  <tr>
40
  <td align="center">
41
+ <div style="margin-top: 30px; margin-bottom:20px;"><a bgcolor="#EAEAEA" style="background:#EAEAEA; text-align:center; display:cell-block; color:black; border-radius: 10px; text-decoration:none; padding:22px; box-shadow: inset 0px 1px 1px #909193, 0px 1px 0px #fff; font-size:15px" href="{{var url}}" >Resume your order {{depend couponcode}} and redeem coupon code {{/depend}}{{var couponcode}} {{depend discount}} to get {{var discount}}% off!{{/depend}}</a></div>
42
  </td>
43
  </tr>
44
  <tr>
app/locale/en_US/template/email/ebizmarts/abandonedcart/popup_coupon_template.html CHANGED
@@ -11,7 +11,7 @@
11
  <!-- [ middle starts here] -->
12
  <tr>
13
  <td valign="top">
14
- <h1 style="font-size:22px; font-weight:normal; line-height:22px; margin:0 0 11px 0;">Congratulations {{var name}}!</h1>
15
  <p style="font-size:12px; line-height:16px; margin:0;">
16
  {{depend couponcode}}
17
  We are glad to inform you won a coupon.
@@ -20,7 +20,6 @@
20
  {{depend discount}}
21
  and you will obtain a discount of {{var discount}} only until {{var todate}}
22
  {{/depend}}
23
- You can now access {{store url=""}} and enjoy it!
24
  </p>
25
  </td>
26
  </tr>
11
  <!-- [ middle starts here] -->
12
  <tr>
13
  <td valign="top">
14
+ <h1 style="font-size:22px; font-weight:normal; line-height:22px; margin:0 0 11px 0;">Congratulations!</h1>
15
  <p style="font-size:12px; line-height:16px; margin:0;">
16
  {{depend couponcode}}
17
  We are glad to inform you won a coupon.
20
  {{depend discount}}
21
  and you will obtain a discount of {{var discount}} only until {{var todate}}
22
  {{/depend}}
 
23
  </p>
24
  </td>
25
  </tr>
app/locale/en_US/template/email/sweetmonkey/expiry_notice.html ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--@subject Your points at {{var store_name}} expire in {{var days_until_expiry}} days@-->
2
+ <style type="text/css">
3
+ body,td { color:#2f2f2f; font:11px/1.35em Verdana, Arial, Helvetica, sans-serif; }
4
+ </style>
5
+
6
+ <div style="font:11px/1.35em Verdana, Arial, Helvetica, sans-serif;">
7
+ <table cellspacing="0" cellpadding="0" border="0" width="98%" style="margin-top:10px; font:11px/1.35em Verdana, Arial, Helvetica, sans-serif; margin-bottom:10px;">
8
+ <tr>
9
+ <td align="center" valign="top">
10
+ <table cellspacing="0" cellpadding="0" border="0" width="650">
11
+ <tr>
12
+ <td valign="top"><a href="{{store url=""}}">
13
+ <img src="{{skin url="images/logo_email.gif" _area='frontend'}}" alt=""
14
+ style="margin-bottom:10px;" border="0"/>
15
+ </a></td>
16
+ </tr>
17
+ </table>
18
+ <table cellspacing="0" cellpadding="0" border="0" width="650">
19
+ <tr>
20
+ <td valign="top">
21
+ <p>Dear {{var customer_name}},</p>
22
+ <p>This is a courtesy notice that your points balance of {{var points_balance}}
23
+ at <a href="{{store url=""}}">{{var store_name}}</a>
24
+ may expire in <b>{{var days_left}} day(s)</b>. </p>
25
+ <p>You can stop the points from expiring by <a href="{{store url="customer/account/login"}}">
26
+ logging in to your account</a> and either:
27
+ <ul>
28
+ <li>Spending your points towards a product or promotion, or</li>
29
+ <li>Earning more points on the site. </li>
30
+ </ul>
31
+ </p>
32
+ </td>
33
+ </tr>
34
+ </table>
35
+
36
+ </td>
37
+ </tr>
38
+ </table>
39
+ </div>
app/locale/en_US/template/email/sweetmonkey/points_notice.html ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--@subject Your total points are more than {{var points_to_notify}} at {{var store_name}}@-->
2
+ <style type="text/css">
3
+ body,td { color:#2f2f2f; font:11px/1.35em Verdana, Arial, Helvetica, sans-serif; }
4
+ </style>
5
+
6
+ <div style="font:11px/1.35em Verdana, Arial, Helvetica, sans-serif;">
7
+ <table cellspacing="0" cellpadding="0" border="0" width="98%" style="margin-top:10px; font:11px/1.35em Verdana, Arial, Helvetica, sans-serif; margin-bottom:10px;">
8
+ <tr>
9
+ <td align="center" valign="top">
10
+ <table cellspacing="0" cellpadding="0" border="0" width="650">
11
+ <tr>
12
+ <td valign="top"><a href="{{store url=""}}">
13
+ <img src="{{skin url="images/logo_email.gif" _area='frontend'}}" alt=""
14
+ style="margin-bottom:10px;" border="0"/>
15
+ </a></td>
16
+ </tr>
17
+ </table>
18
+ <table cellspacing="0" cellpadding="0" border="0" width="650">
19
+ <tr>
20
+ <td valign="top">
21
+ <p>Dear {{var customer_name}},</p>
22
+ <p>This is a courtesy notice that your points balance of {{var points_balance}}
23
+ at <a href="{{store url=""}}">{{var store_name}}</a>
24
+ may expire in <b>{{var days_left}} day(s)</b>. </p>
25
+ <p>You can stop the points from expiring by <a href="{{store url="customer/account/login"}}">
26
+ logging in to your account</a> and either:
27
+ <ul>
28
+ <li>Spending your points towards a product or promotion, or</li>
29
+ <li>Earning more points on the site. </li>
30
+ </ul>
31
+ </p>
32
+ </td>
33
+ </tr>
34
+ </table>
35
+
36
+ </td>
37
+ </tr>
38
+ </table>
39
+ </div>
package.xml CHANGED
@@ -1,36 +1,39 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Ebizmarts_MageMonkey</name>
4
- <version>1.1.28</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>MailChimp integration for Magento by Ebizmarts</summary>
10
  <description>Full MailChimp integration, automatic webhooks, multiple lists, interest groups</description>
11
- <notes>1.1.28&#xD;
12
  --------&#xD;
13
- Checks if group is displayed before adding it to post on Checkout Subscription.&#xD;
14
  &#xD;
15
- Fixed Email Catcher.&#xD;
16
- Email Catcher has the new option to insist a configurable number of times before stopping if canceled.&#xD;
17
- Email catched is now also used on Autoresponder -&gt; Visited Products&#xD;
18
- Customer can receive coupon if added email on Email Catcher if configured.&#xD;
19
  &#xD;
20
- All Autoresponder features have the option to set the hour of the day to be sent.&#xD;
21
  &#xD;
22
- Bulksync export also updates customers&#xD;
23
  &#xD;
24
- Cookies for MailChimp campaign are now generated with javascript to skip Varnish cache or similar.&#xD;
25
  &#xD;
26
- http://ebizmarts.com/forums/topics/view/13862#15185&#xD;
27
- If configurable doesn't have images set it will show the simple product image.&#xD;
28
  &#xD;
29
- Product Attributes for eCommerce360 segmentation</notes>
 
 
 
 
 
 
 
 
30
  <authors><author><name>Ebizmarts Development Team</name><user>auto-converted</user><email>info@ebizmarts.com</email></author></authors>
31
- <date>2015-02-16</date>
32
- <time>19:34:41</time>
33
- <contents><target name="magecommunity"><dir name="Ebizmarts"><dir name="MageMonkey"><dir name="Block"><dir name="Adminhtml"><dir name="Bulksync"><dir name="Export"><file name="Form.php" hash="3128fdbf1d272d661ddcd35589f6fd58"/></dir><dir name="Import"><file name="Form.php" hash="88dfb149d89a293f2e161cc994a6d66d"/></dir><dir name="Queue"><file name="Grid.php" hash="66bad4f57dada919cb46b4422aa353ec"/></dir><dir name="QueueExport"><file name="Grid.php" hash="35e1ec26f0860c35d63132d09b22b9e0"/></dir><dir name="QueueImport"><file name="Grid.php" hash="2291c0025c67441a667ee85c849b938c"/></dir><file name="Export.php" hash="8bad2b20c02e6f46bebcf632ca1a47bb"/><file name="Import.php" hash="25f84fabb2e3ec99281bcdd8fa2f36da"/><file name="Queue.php" hash="59ad9d88015d45a8b6874a1946cbb79b"/><file name="QueueExport.php" hash="47358e2366a683b99d974f3c88fea9b9"/><file name="QueueImport.php" hash="3674342fcbe1aa23499bdf5bcb16da54"/></dir><dir name="Customer"><dir name="Edit"><dir name="Tab"><file name="Memberactivity.php" hash="480c555fdfd348a830af84cc1b2ec749"/></dir></dir></dir><dir name="Ecommerce"><file name="Grid.php" hash="c328363a48a54819727153270664ccf0"/></dir><dir name="Ecommerceapi"><dir name="Renderer"><file name="Items.php" hash="b7da6bfbfb676c8bcd812b34ee84b7bc"/></dir><file name="Grid.php" hash="1d94069e2fe5c5ca96cabbce0ec6b398"/></dir><dir name="Memberactivity"><file name="Grid.php" hash="0dd76b6f10e87bcc8e5516f823a53d77"/></dir><dir name="Renderer"><file name="Date.php" hash="057956ab3107ff1ab1bb63580960db00"/><file name="Importypes.php" hash="db0727a05feebbf5cb6aa4193c7aa5a2"/><file name="Lists.php" hash="d7358169a3fbbaf7422e96eb73642786"/><file name="Progress.php" hash="6476d05d169196791fca792fcc2787c5"/><file name="Yesno.php" hash="9b8689c9c2bc5e51d57d5b8a37345188"/></dir><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Hint.php" hash="c68500d47c69ad31858b0e7e8f80e1af"/></dir><dir name="Form"><dir name="Field"><file name="Mapfields.php" hash="f12afdd267131675bc65c9da4e98a27d"/></dir></dir><file name="Account.php" hash="e667fd667ab5b5f98aaf6aa59482b155"/><file name="Date.php" hash="c7aa6aa77b9ba59119a753a6e217f0ab"/><file name="OauthWizard.php" hash="4426268d1c895cc75282788f9c3c57fe"/><file name="ResetLocalEcommerce.php" hash="e42a097caf3af8a1927748ff0ed36509"/><file name="ResetRemoteEcommerce.php" hash="089df8bdccfdf919f9188393554d1fc8"/></dir></dir><dir name="Transactionalemail"><dir name="Mandrill"><file name="Grid.php" hash="16f4ddfb22908829211549cd67910ed5"/></dir><dir name="Newemail"><file name="Form.php" hash="6b1d604005694896751ea448bf5d4fbb"/></dir><dir name="Sts"><file name="Grid.php" hash="125845125287b0756e1d436c590db7a1"/></dir><file name="Mandrill.php" hash="20c99e8d4451e5e6948f1869fcf09fad"/><file name="Newemail.php" hash="f3f816f536a0ff164e5c9b32de07991f"/><file name="Sts.php" hash="c94b5e2a3d4aa977dd1b505ae9dd0733"/></dir><file name="Ecommerce.php" hash="218f3f43ab85966c56a51b612dc0d19f"/><file name="Ecommerceapi.php" hash="35fab157ffd89365f58d3f6a7d215af8"/></dir><dir name="Checkout"><file name="Subscribe.php" hash="20e898bde5d1256ac346a7e65b666157"/></dir><dir name="Customer"><dir name="Account"><file name="Lists.php" hash="63d14c898f9399f711b6225e83659908"/></dir></dir><file name="Lists.php" hash="dae58712a1f4bd4375fbb026b7f6dc96"/><file name="Signup.php" hash="222115a830f5fe9d35a7d15d811936bd"/></dir><dir name="Helper"><file name="Cache.php" hash="67e65a10f74e15e46e198ff938614d46"/><file name="Data.php" hash="4c70820bbcf36d92ae4344ccf016af4a"/><file name="Export.php" hash="e38bc4a6a62e1d421b56b33d951b50f3"/><file name="Oauth2.php" hash="5dde916a8a3683c792d4253a80305371"/></dir><dir name="Model"><dir name="Custom"><file name="Collection.php" hash="5cf9b979cb7d3863d1db58e4f575e8d0"/></dir><dir name="Email"><file name="Template.php" hash="e1c1a054a2a99ea4341ce6c63370a589"/></dir><dir name="Feed"><file name="Updates.php" hash="f376504e208008cf935f5e84c363982d"/></dir><dir name="Mysql4"><dir name="Apidebug"><file name="Collection.php" hash="9f75f1d9dd0f108657ac23607eff50da"/></dir><dir name="Asyncorders"><file name="Collection.php" hash="c3ef445b7524a374c725e8872347e627"/></dir><dir name="Asyncsubscribers"><file name="Collection.php" hash="766012d25d0b1edd1550a80a046e56c9"/></dir><dir name="Bulksync"><dir name="Export"><file name="Collection.php" hash="44d269eed50f52146033ff89ed7a2891"/></dir><dir name="Import"><file name="Collection.php" hash="7e6be7ba8998b9e173b5be61b2a5f02b"/></dir><file name="Export.php" hash="4ae1ac47449cccb7ce25157f7d9d2f11"/><file name="Import.php" hash="422523ecbf7248e9340ed5e18486b68b"/></dir><dir name="Ecommerce"><file name="Collection.php" hash="24a35bd64c38d18e3abb2ab9dcea8f34"/></dir><file name="Apidebug.php" hash="6fbad3a26c6608e84ef0a4d86314af0b"/><file name="Asyncorders.php" hash="63fe2090cc9421409669d1b1acdc2bee"/><file name="Asyncsubscribers.php" hash="42c900ee0d457187631208a9d1201fd2"/><file name="Ecommerce.php" hash="71a3b94d770649dd40e9eabf4a9191ca"/></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="Account.php" hash="5fdee829d7167aac52f2daf91f8c4b64"/><file name="Attributes.php" hash="f8a7a9476e9b64171fb6ed5a9cc76cb0"/><file name="BulksyncDatasource.php" hash="bb42813d2227fecc62476ff819e6bfa0"/><file name="BulksyncStatus.php" hash="745e4a9a98c4d74e82184403de7606b8"/><file name="Checkoutsubscribe.php" hash="b2db54b9fb5c3cec5d64dc3bacb437cc"/><file name="CronProcessLimit.php" hash="201fb2c0d26a121b5b902fff9ba49f88"/><file name="CustomerGroup.php" hash="1d7bbeff7fe72969c3b95b95385ffced"/><file name="Ecommerce360.php" hash="14a8bc7fd552ec7f35bacaca2c326def"/><file name="List.php" hash="5ebc6ce8f7ab369ba58fe06c8b766769"/><file name="OrderProcessLimit.php" hash="54358f98da63c7c3c6eef0002ee5364b"/><file name="OrderStatus.php" hash="0be73f31140b5b713dcf5fc141052a5c"/><file name="Status.php" hash="4ef26d94a5a1645477c8b1aced56cf01"/><file name="TransactionalEmails.php" hash="406a0998c5d518c0cb177f8c853acb6d"/><file name="WebhookDelete.php" hash="689f8801344fcb9d08f1c77fa79ae6f1"/></dir></dir></dir><dir name="TransactionalEmail"><file name="Adapter.php" hash="22d05169667a6be152a898bb2c9fb129"/><file name="MANDRILL.php" hash="b84f4f27564f68ef5a3a35a1d3bf2902"/><file name="STS.php" hash="e49a76aa693d12778dd69a4fbbd613bb"/></dir><file name="Api.php" hash="84fbce714b98a7a1cba24d9a7f0ed443"/><file name="Asyncorders.php" hash="1b738740a19ea53869e3e19e531ddd03"/><file name="Asyncsubscribers.php" hash="502567bfcb6ab39bd310e670b590eeb3"/><file name="BulksyncExport.php" hash="5963222008697fe79772d7520e91705c"/><file name="BulksyncImport.php" hash="f55ae237b2a1e633a26020d646a78e33"/><file name="Cache.php" hash="64aaa1feca20ee3bbe606076d82034c7"/><file name="Config.php" hash="9fa1df02f4f9229cbbc28bc1eb405bd5"/><file name="Cron.php" hash="4514216e73dc11f3520cf30ea66f416e"/><file name="Ecommerce.php" hash="d74ca44e23d32d22f5f64898028d784f"/><file name="Ecommerce360.php" hash="fc038bc5bd9650ea2ae8cd51bb61c75b"/><file name="MCAPI.php" hash="8c1eafa5e16e3993fa2bbe7804669315"/><file name="MCEXPORTAPI.php" hash="c8f16211692cf33992fbd785019c01f7"/><file name="Monkey.php" hash="1844ef9dc05ad41b49ef55d991f35717"/><file name="Observer.php" hash="cb6d910865d2fec2fb0e0f4907aee52b"/><file name="Subscriber.php" hash="18d42e657528da462df8246bbcc0eb22"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="BulksyncController.php" hash="14e771adfcbe3395d5624e3f3ca6e8a2"/><file name="ConfigController.php" hash="c27726c53849dbfe7ddf89059f71d73c"/><file name="EcommerceController.php" hash="97d7b13c988d2f276560a4a2fb523a5e"/><file name="TransactionalemailController.php" hash="0b1288af0ab97e26d2a07da425378249"/></dir><dir name="Customer"><file name="AccountController.php" hash="149184229b87fa5c2365992784d560ed"/></dir><file name="SignupController.php" hash="e2d90169b430679cf4a0a87b742b7b43"/><file name="WebhookController.php" hash="211e4cf7c030a8b80cadebd49c2b932d"/></dir><dir name="etc"><file name="adminhtml.xml" hash="2cd1bef6c2144cfbdcd68da1647e100c"/><file name="config.xml" hash="1c12d816538634a68fc91c9097fd6cec"/><file name="system.xml" hash="b525df7837d21dc992136cee77cb5680"/></dir><dir name="sql"><dir name="monkey_setup"><file name="mysql4-install-0.0.1.php" hash="4df34769f4d5a8ceca90fd582500e3a9"/><file name="mysql4-upgrade-0.0.1-0.0.2.php" hash="d81147dab407bc55c59cddb5a764c53e"/><file name="mysql4-upgrade-0.0.2-0.0.3.php" hash="ce1925ff2ab03aa9fd6cbe43283ea37d"/><file name="mysql4-upgrade-0.0.3-0.0.4.php" hash="7f1e38bcf030e6346a9fd8321f1a4362"/><file name="mysql4-upgrade-0.0.4-0.0.5.php" hash="bbe6b895320effca77cc2c23431f043f"/><file name="mysql4-upgrade-0.0.5-0.0.6.php" hash="98b72d9ef4ec8078c09a1f641fc35a39"/><file name="mysql4-upgrade-0.0.6-0.0.7.php" hash="ea15755fc072e7c82b78063589360779"/><file name="mysql4-upgrade-1.0.10-1.0.11.php" hash="b2ec497921eb2bd9a97a318554fd980b"/><file name="mysql4-upgrade-1.1.21-1.1.22.php" hash="738e3d3e33c1a3a02bb101b89743cc5c"/><file name="mysql4-upgrade-1.1.23-1.1.24.php" hash="5a1bfdc8014edbc8b8c728954405a9f5"/><file name="mysql4-upgrade-1.1.5-1.1.6.php" hash="14750274ece5816d6c1ab490f7d610ab"/></dir></dir></dir><dir name="Mandrill"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Hint.php" hash="fb729d3c111d1626577017d5bd88b693"/></dir><file name="Userinfo.php" hash="fc19ad47dda8547fe66d4fc13821ef66"/></dir></dir><dir name="Templates"><dir name="Templates"><file name="Grid.php" hash="2bd56817ffdf97181552fb461006956c"/></dir><file name="Templates.php" hash="b11427fda30f8e0f51a35fcfbd4e2cff"/></dir><dir name="Users"><dir name="Senders"><file name="Grid.php" hash="97927a2897f543a6b0603c8f3705c2e0"/></dir><file name="Senders.php" hash="d2f5c303467c2ffc08414394c30e94b0"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="265550db051e8ee3bc81e9a8bcec0731"/></dir><dir name="Model"><dir name="Email"><file name="Template.php" hash="42df539ce010e7c823ac1496a0831e28"/></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="Userinfo.php" hash="9f1ab317f449b1a1ef6c240470c5059f"/></dir></dir><file name="Config.php" hash="070947579c992a16e7a335c521684ffd"/></dir><file name="Customcollection.php" hash="f024ab2663565eeca20a0d071e0cffbc"/></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Mandrill"><file name="UsersController.php" hash="22458a083848a119e36edad0fba44972"/></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="8c0b7fda27820f53b3064f18a524c930"/><file name="config.xml" hash="97bb82b823927c1c1c14b499ffae550a"/><file name="system.xml" hash="d05b90ca129297b6ffda52a4ba1fd26a"/></dir></dir><dir name="AbandonedCart"><dir name="Block"><dir name="Adminhtml"><dir name="Abandonedmails"><file name="Grid.php" hash="1d6aa7470345b86ebc544865b1d5988b"/></dir><dir name="Abandonedorder"><file name="Grid.php" hash="2ea8fd100532c94ad46280befe350e12"/></dir><dir name="Dashboard"><file name="Sales.php" hash="0242b35fd7d779e997c9d583d2067200"/><file name="Totals.php" hash="6fab1bc9886d3a5c0de6609e0f842076"/></dir><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Hint.php" hash="7421b2285cbf14f737f197647c444e13"/></dir><file name="Date.php" hash="c2c968c7e44e4512afcf1d280b596b12"/></dir></dir><file name="Abandonedmails.php" hash="1602122456b4a710638e049e87135a57"/><file name="Abandonedorder.php" hash="eb6b272bf9da062c0d922f733fd5684d"/><file name="Dashboard.php" hash="b308fe4aa4339bb980f911ddaf244bf1"/></dir><dir name="Email"><dir name="Order"><file name="Items.php" hash="fe4564e2561eaa691d0a22520f5e36b1"/></dir></dir><dir name="Popup"><file name="Emailcatcher.php" hash="28194c1520245a895d91f76ecb30c23e"/></dir></dir><dir name="Helper"><file name="Data.php" hash="3e1fa681e66943898a0ee4e5c7330814"/></dir><dir name="Model"><dir name="Resource"><dir name="Mailssent"><file name="Collection.php" hash="32a7f66ed04d2774708608e93673eb60"/></dir><dir name="Order"><file name="Collection.php" hash="23e2093bc0d909c30190ac5ff76b2a4b"/></dir><dir name="Popup"><file name="Collection.php" hash="0a0eb4d9c28d23b430806609d7297d2e"/></dir><file name="Mailssent.php" hash="587b8c706766b178be80dc6539e4172b"/><file name="Popup.php" hash="5f942ac5806480a113fd22631a358535"/></dir><dir name="System"><dir name="Config"><file name="Automatic.php" hash="4796f50ff325b34bb7478ae19da5f455"/><file name="Cmspage.php" hash="97fb52c0878ba73934fc54bd23a00284"/><file name="Customergroup.php" hash="56192685ca9110ae95431fc63c494e25"/><file name="Discounttype.php" hash="680ae0d05305ea8ead09bd176914935d"/><file name="Maxemails.php" hash="d3e4eb78c3496a7e3f1dafb66c765407"/><file name="Unit.php" hash="a20bb2f70dbff61ad99b12e169116a68"/></dir></dir><file name="Config.php" hash="24d5f82f58e9d4e52f6e8d4f59a5e3ef"/><file name="Cron.php" hash="5ccf6dcb3489db4f531d0bd9b44df60d"/><file name="EventObserver.php" hash="fec3b275c3e09d5e47a85e534981ab4b"/><file name="Mailssent.php" hash="c4bb348f7df03d057b6e71793a35099f"/><file name="Popup.php" hash="9b2da7747a27a72c5066c59902c04238"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="AbandonedmailsController.php" hash="53e508bee05b83175bf940e8e569e5c5"/><file name="AbandonedorderController.php" hash="fa050d8ecfe1d665178375c677a83c38"/></dir><file name="AbandonedController.php" hash="6a0d49ca1c8daf745909bb9cadf83094"/></dir><dir name="etc"><file name="adminhtml.xml" hash="f32961dcb3c682b24d6e3b5cc5413450"/><file name="config.xml" hash="f197b201c3c767557931111b6f2a61a6"/><file name="system.xml" hash="e51d3a49e762ccb6090e694d278a4fd7"/></dir><dir name="sql"><dir name="ebizmarts_abandonedcart_setup"><file name="mysql4-install-0.1.0.php" hash="0e1a8c0391654c480773b78a50db5a83"/><file name="mysql4-upgrade-0.1.12-0.1.13.php" hash="4835436b744f8cbff61a66c2e345976f"/><file name="mysql4-upgrade-0.1.18-0.1.19.php" hash="e51b332cb70c81ee472b586fda4e8a7e"/><file name="mysql4-upgrade-0.1.2-0.1.3.php" hash="2e87d09a5008ac2f2432a25e08474c87"/><file name="mysql4-upgrade-0.1.20-0.1.21.php" hash="c461ba10961b4ee4e9385173d4264617"/><file name="mysql4-upgrade-0.1.29-0.1.30.php" hash="e9fdf4551cf19b488ed68ca0dd55ab67"/><file name="mysql4-upgrade-0.1.6-0.1.7.php" hash="60daa0d70a1af929a39d6e20ee52ee9c"/></dir></dir></dir><dir name="Autoresponder"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Backtostock"><dir name="Fieldset"><file name="Hint.php" hash="2ce3d676335024c283c8cb7004f2fd70"/></dir></dir><dir name="Birthday"><dir name="Fieldset"><file name="Hint.php" hash="b90407590390af8a3b7a5f28fe30fc1d"/></dir></dir><dir name="Fieldset"><file name="Hint.php" hash="6512f3966ad7a5805b37ec347fe3f45d"/></dir><dir name="Review"><dir name="Fieldset"><file name="Hint.php" hash="3a30e310d54d553551645b4ba65d3a97"/></dir></dir><dir name="Wishlist"><dir name="Fieldset"><file name="Hint.php" hash="d958534a50e224778b4f21ab91965c93"/></dir></dir></dir></dir></dir><dir name="Backtostock"><file name="Notice.php" hash="a0ed5dc687baa5eff1c5582fe3d1d7b8"/></dir><dir name="Customer"><dir name="Account"><file name="List.php" hash="12114dfff4daa3fb66ec67886ecd65ce"/></dir></dir><dir name="Email"><dir name="Backtostock"><file name="Item.php" hash="52fdf4d6b9e46af278e845af141babaf"/></dir><dir name="Related"><file name="Items.php" hash="a307ecd59fa183dfd631f3e852d5b0b4"/></dir><dir name="Review"><file name="Items.php" hash="58310c2423a7844e4876adf0fee8d1f8"/></dir><dir name="Wishlist"><file name="Items.php" hash="ea252dac50f360125f964a493db00252"/></dir></dir><dir name="Review"><file name="Form.php" hash="36b468ca8507f5880e792cf2ca144084"/></dir><file name="Unsubscribe.php" hash="3320837d5f53290bea5911184f2f8e89"/></dir><dir name="Helper"><file name="Data.php" hash="60a013dae3ba3eb26179ed82269ca688"/></dir><dir name="Model"><dir name="Resource"><dir name="Backtostock"><file name="Collection.php" hash="ed8d4e1356ee483a17c916f3caf5e004"/></dir><dir name="Backtostockalert"><file name="Collection.php" hash="0c8888bcd7f10ee01c40ffb1be379b29"/></dir><dir name="Review"><file name="Collection.php" hash="f6d6fea1af97d22c763ca066f35b60c1"/></dir><dir name="Unsubscribe"><file name="Collection.php" hash="ce69c3e9a94270d56586d98b9848c40e"/></dir><dir name="Visited"><file name="Collection.php" hash="bd6f6853caf49b5cc775853982d080a4"/></dir><file name="Backtostock.php" hash="f843a3a2c8784ebf5844dd24851152b5"/><file name="Backtostockalert.php" hash="667c31247de8122c896f7056f76d69e4"/><file name="Review.php" hash="c452559a7e879c3c1744d0fe2a8d3c44"/><file name="Unsubscribe.php" hash="52d3a3276a4ffc9dac8969a9f71ab7fe"/><file name="Visited.php" hash="2c1255d46620bd32976ec62a74ea8ee5"/></dir><dir name="System"><dir name="Config"><file name="Automatic.php" hash="a13826aaa72aa13d783e9b8032255d11"/><file name="Couponcounter.php" hash="6a5667391ba4ec58490fef07c4b0c20b"/><file name="Customergroup.php" hash="9dacae8f22f927f63fffa065698436b0"/><file name="Discounttype.php" hash="f0434d0bd53e7a18a2a7377b9e08fe5f"/><file name="Generaltype.php" hash="871b01315f4bdcef6fe4317d0ee421fd"/><file name="Hours.php" hash="755b52d65dcab65348c475a92414a486"/><file name="Newordertrigger.php" hash="53a5feced0195db16b01846c8ef0cf3a"/><file name="Time.php" hash="3bb74c6af5f1d2d0920e290f5ff4978a"/></dir></dir><file name="Backtostock.php" hash="bbe12c4e362b4a6b3ff289c4cfad1c1d"/><file name="Backtostockalert.php" hash="7c13e74e80769ce9ec5348dff3146ed7"/><file name="Config.php" hash="f6063e13ba22a886dcef116aeddfbc12"/><file name="Cron.php" hash="6b420c158997aa0e00ea92fef1996b32"/><file name="EventObserver.php" hash="a231fd64e7c31551f9a173c2332073ed"/><file name="Review.php" hash="3972ef6776b94ccecf6e05b2aa1972db"/><file name="Unsubscribe.php" hash="60b3692fd5f2e29c711954fd0ca91141"/><file name="Visited.php" hash="36850b4973097fd7dfe4d05c45b8dbdd"/></dir><dir name="controllers"><file name="AutoresponderController.php" hash="37a1d42c1d041769efc967fb273fe2ad"/><file name="BacktostockController.php" hash="0a7f9280f87c7a663f06529e3811cfc1"/></dir><dir name="etc"><file name="adminhtml.xml" hash="59a240f12b496566f1a2b1de5f053e96"/><file name="config.xml" hash="5673aab6e155b64302a005bbea1ca8f1"/><file name="system.xml" hash="8d9d0e433be10de8c9897caf796c3bbe"/></dir><dir name="sql"><dir name="ebizmarts_autoresponder_setup"><file name="mysql4-install-0.1.0.php" hash="791af0eec35753144d506294bb4c03ad"/><file name="mysql4-upgrade-0.1.3-0.1.4.php" hash="78438ac4a76091f713815249b89a0fb8"/><file name="mysql4-upgrade-0.1.4-0.1.5.php" hash="b2b4f343d16d99c1396987452fba1039"/><file name="mysql4-upgrade-0.1.5-0.1.6.php" hash="378accc07eb80b16029db84f56bed683"/><file name="mysql4-upgrade-0.1.9-0.1.10.php" hash="53cc6beed11e8631c11a008c5fd78ce1"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Ebizmarts_MageMonkey.xml" hash="9a4b1c469b4652442c7a5f945dd12cac"/><file name="Ebizmarts_Mandrill.xml" hash="c80aa6f98ccc3890303bb4c278f8ad95"/><file name="Ebizmarts_AbandonedCart.xml" hash="48c4cfe8246d5a995e2836c43ab38d74"/><file name="Ebizmarts_Autoresponder.xml" hash="97302f94f5893147db18c4034d135256"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="ebizmarts"><file name="abandonedcart.xml" hash="60577a2647659f09d0fb40d2e926debc"/><file name="autoresponder.xml" hash="900e57541bad440904f5078dfcb2a212"/></dir><file name="magemonkey.xml" hash="c886275bfb2ea3bbd16a627ce894e3c8"/></dir><dir name="template"><dir name="magemonkey"><dir name="checkout"><file name="subscribe.phtml" hash="378974e316fb9865fdbb2fb077e3869f"/></dir><file name="lists.phtml" hash="040b3b8c589f8ae4e8ad2c2bfb3b157b"/></dir><dir name="ebizmarts_abandonedcart"><dir name="email"><dir name="order"><dir name="items"><dir name="order"><file name="default.phtml" hash="5ff74635419e7ffb4d3660c306ad6590"/></dir></dir><file name="items.phtml" hash="a255dc6fa730b2883a50bb6fa22c909f"/></dir></dir><dir name="popup"><file name="emailcatcher.phtml" hash="af09effe3660f388d5d3ae3c2de90287"/></dir></dir><dir name="ebizmarts"><dir name="autoresponder"><dir name="backtostock"><dir name="catalog"><dir name="product"><file name="form.phtml" hash="da27e44f5421a35357bdb1ad832b5edd"/><file name="notice.phtml" hash="737a4cfe2018dec33228b5243276165d"/></dir></dir><file name="item.phtml" hash="7dc40cf921dad08404803a8c3a447591"/></dir><dir name="customer"><file name="list.phtml" hash="be9cd36a644a39e3569c9ae0ded2087d"/></dir><dir name="related"><file name="items.phtml" hash="7f20e5bf377029559f923f323698bdb1"/></dir><dir name="review"><file name="items.phtml" hash="26bde27b034c21d7cfdc785d7f5b1228"/></dir><dir name="wishlist"><file name="items.phtml" hash="d9c0df1659400e45af3a8f814e2db075"/></dir><file name="unsubscribe.phtml" hash="553182da5f6bcf4223ee1c641322dc14"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="ebizmarts"><file name="mandrill.xml" hash="a1fa45084bc7b71260f92dbf62f98a93"/><file name="abandonedcart.xml" hash="56b2ca552b73a976207cd33afbcfb299"/></dir><file name="magemonkey.xml" hash="613e5cd38048dedadb96434b9c3cc704"/></dir><dir name="template"><dir name="magemonkey"><dir name="system"><dir name="config"><dir name="fieldset"><file name="hint.phtml" hash="2914c30de176440d60b5ce8f6279429d"/></dir><file name="oauth_wizard.phtml" hash="226d42be1f41838bb80da0e2c3567d71"/><file name="resetlocal360.phtml" hash="89aff00286ca9f4ef43fab5d3e15d5d4"/><file name="resetremote360.phtml" hash="6d5caaf7fa0e823b1ee22e1a9776f7eb"/></dir></dir></dir><dir name="ebizmarts"><dir name="mandrill"><dir name="system"><dir name="config"><dir name="fieldset"><file name="hint.phtml" hash="d4025820e90c8e20bc8c6664984a78a1"/></dir></dir></dir></dir><dir name="abandonedcart"><dir name="dashboard"><file name="index.phtml" hash="180d73784745e0c1d5b37b0d435a2cc0"/><file name="salebar.phtml" hash="50a0c2645e2f651da9ba72fd875986cb"/><file name="totalbar.phtml" hash="ff53860a369cbf2e2c067607147afe83"/></dir><dir name="system"><dir name="config"><dir name="fieldset"><file name="hint.phtml" hash="ffde58e7c920e022c949601fb5533820"/></dir></dir></dir></dir><dir name="autoresponder"><dir name="system"><dir name="config"><dir name="backtostock"><dir name="fieldset"><file name="hint.phtml" hash="f02d4d7e5e45bc45b20cf8d531017c61"/></dir></dir><dir name="birthday"><dir name="fieldset"><file name="hint.phtml" hash="577162540f6f45b822d7784463c31456"/></dir></dir><dir name="fieldset"><file name="hint.phtml" hash="03ca0e64ef7648018ea459fc18ee2b4a"/></dir><dir name="review"><dir name="fieldset"><file name="hint.phtml" hash="a3e506441b757f5372337fa59de1d64f"/></dir></dir><dir name="wishlist"><dir name="fieldset"><file name="hint.phtml" hash="8f4427235da3afa30d271745f040c767"/></dir></dir></dir></dir></dir></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><dir name="template"><dir name="email"><dir name="ebizmarts"><dir name="abandonedcart"><file name="abandoned_cart_mail_1.html" hash="8b2c25b0acf62ce8fd0e25b3d0ec0699"/><file name="abandoned_cart_mail_2.html" hash="4e98ac7a738c3ef5ff4424614842f129"/><file name="abandoned_cart_mail_3.html" hash="df7789b6cf89c264a7a270a39ac0df8c"/><file name="abandoned_cart_mail_generic.html" hash="73f8caed42f738e3bffe5da4d8a882a4"/><file name="popup_coupon_template.html" hash="97cedc22248dd5c48e30495f1bc3c6bf"/></dir><dir name="autoresponder"><file name="backtostock.html" hash="873a69e2975f86203e0459410154c11f"/><file name="birthday.html" hash="6c4b7fc9c04c63a010637430c542398c"/><file name="neworder.html" hash="0bf363484cf971b52b2b2b6ac466e743"/><file name="noactivity.html" hash="050ed39458f9a4b182f3a047c07ea6ba"/><file name="relatedproducts.html" hash="9c4993edce3474c7b063cfbb4a4cb849"/><file name="review.html" hash="c6349dcd4be0b3c73473a45849a261ac"/><file name="reviewcoupon.html" hash="8b8262acb1d67c315a582f6a70330c49"/><file name="visitedproducts.html" hash="1bfe817dcccc9b1eeba23b439b68da5e"/><file name="wishlist.html" hash="f2f55a5740d653cdddecb359f18c5325"/></dir></dir></dir></dir><file name="Ebizmarts_MageMonkey.csv" hash="181e91ed91dfea5fe7dab66af5719af8"/><file name="Ebizmarts_Mandrill.csv" hash="3dac3af57664fd34f5eda8abf4098ee0"/><file name="Ebizmarts_AbandonedCart.csv" hash="214bcd0e8cd6153c48fab236dcfdba1b"/><file name="Ebizmarts_Autoresponder.csv" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="magemonkey"><file name="magemonkey.css" hash="00f0b145e9f9cc99eb46cf97faba3f65"/><file name="magemonkey.js" hash="e40717a83ef300776cc79ad9f8191005"/><file name="mailchimp-connected-ebizmarts-title.png" hash="c6bcb1aa606ecd3b0a9753bb48ddeb58"/><file name="mailchimp-ico.png" hash="14978ec398cede4060bc9b00365bb6c5"/><file name="mailchimp-section-background.png" hash="d4536261c6a3534fbb855428c0cca62c"/><file name="mailchimp-tab.png" hash="61972b4e063364071e81d8c9e10d8feb"/></dir><dir name="abandonedcart"><file name="abandonedcart.css" hash="0d29bc510ac4af6ae38b89c62019f797"/></dir><dir name="ebizmarts"><dir name="mandrill"><file name="mandrill-tab.png" hash="d7eaf9deef355e4b8b55a96070b90ffe"/><file name="mandrill.css" hash="37a538f63b82a486c364b337420ca8ad"/></dir><file name="ebizmarts-tab.png" hash="6dfa08c5cd4329d1df6e7b71fb1f925a"/><file name="ebizmarts.css" hash="10afb44e9b6b09378da6f7adccf1a711"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="magemonkey"><file name="magemonkey.css" hash="d4eac40764271596a3edc30d1014887f"/><file name="monkey.js" hash="d7d2e3f137d97202214fe29551695739"/></dir></dir></dir></dir></target><target name="mage"><dir name="lib"><dir name="Mandrill"><dir name="Mandrill"><file name="Exceptions.php" hash="c1b76471b87d66b9118cfacf42b309a2"/><file name="Exports.php" hash="89ab0610609c675b873d7f17db7e384d"/><file name="Inbound.php" hash="194af722064b87ec08fb08196d0b112e"/><file name="Internal.php" hash="26470edbb8134ff0b03f110f2cdc3bf8"/><file name="Ips.php" hash="37c362fec92e6e1a122cfa1c9363b426"/><file name="Messages.php" hash="0c846d38f80303b0a403258b00bcbe46"/><file name="Metadata.php" hash="f513ee87966aa29738f4f9d95f852da1"/><file name="Rejects.php" hash="562aae94138d2fd6cb44cd48058ed25f"/><file name="Senders.php" hash="30c01ced259070fd170b2447dd0053a1"/><file name="Subaccounts.php" hash="43f762b6cab8b0dc54eceff42402c386"/><file name="Tags.php" hash="92760c835fa7312a1ce9c401c3116f9b"/><file name="Templates.php" hash="b212c80d72590920e169a0850c43355b"/><file name="Urls.php" hash="8438b47d6f283ebb5a9821b7997d972f"/><file name="Users.php" hash="ac0fc5f8b264b8436ad8e98aa7ce214d"/><file name="Webhooks.php" hash="51ec40806b2cf3966557389143143f58"/><file name="Whitelists.php" hash="14e150230d31880b7fa0a56802b2fa7c"/></dir><file name="Mandrill.php" hash="de81f00e82e4bcae611c6b167955b907"/><file name="Message.php" hash="3cf78c00c80a8cf6524d91abe7526049"/></dir></dir><dir name="js"><dir name="ebizmarts"><dir name="abandonedcart"><file name="popup.css" hash="5e09017943db1f47a0b49b580cd0dac2"/></dir><dir name="autoresponders"><file name="visitedproducts.js" hash="61ef8d19642d349a19a43d018888f205"/><file name="visitedproductsstorecodes.js" hash="08aad89b4f1f8239818ebd0a6b72c3b5"/></dir><dir name="magemonkey"><file name="campaignCatcher.js" hash="2f841a5a853c5a49d88d7a3ae15b639e"/></dir></dir></dir></target></contents>
34
  <compatible/>
35
  <dependencies/>
36
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Ebizmarts_MageMonkey</name>
4
+ <version>1.1.29</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
8
  <extends/>
9
  <summary>MailChimp integration for Magento by Ebizmarts</summary>
10
  <description>Full MailChimp integration, automatic webhooks, multiple lists, interest groups</description>
11
+ <notes>1.1.29&#xD;
12
  --------&#xD;
 
13
  &#xD;
14
+ -Integrated module Sweet Monkey to add Sweet Tooth loyalty points into the mailing system.&#xD;
 
 
 
15
  &#xD;
16
+ -A/B Testing for Abandoned Carts.&#xD;
17
  &#xD;
18
+ -Added new option on Mailchimp's configuration to send Magento Newsletter confirmation emails.&#xD;
19
  &#xD;
20
+ -Abandoned Cart cron runs every 5 minutes to send the Email Catcher coupon as soon as possible.&#xD;
21
  &#xD;
22
+ -Email Catcher showing 2 times as minimum fixed to be shown only once if set to 1.&#xD;
 
23
  &#xD;
24
+ -Fixed customer group filter on Abandoned Cart.&#xD;
25
+ &#xD;
26
+ -New Order Autoresponder can be sent a configured amount of days after a change of status.&#xD;
27
+ &#xD;
28
+ -Typo error on Fifth email title.&#xD;
29
+ &#xD;
30
+ -tabs_lonks_over_bg.gif javascript error fixed.&#xD;
31
+ &#xD;
32
+ -Show Ebizmarts logo via https on MailChimp's module.</notes>
33
  <authors><author><name>Ebizmarts Development Team</name><user>auto-converted</user><email>info@ebizmarts.com</email></author></authors>
34
+ <date>2015-04-09</date>
35
+ <time>16:59:26</time>
36
+ <contents><target name="magecommunity"><dir name="Ebizmarts"><dir name="MageMonkey"><dir name="Block"><dir name="Adminhtml"><dir name="Bulksync"><dir name="Export"><file name="Form.php" hash="3128fdbf1d272d661ddcd35589f6fd58"/></dir><dir name="Import"><file name="Form.php" hash="88dfb149d89a293f2e161cc994a6d66d"/></dir><dir name="Queue"><file name="Grid.php" hash="66bad4f57dada919cb46b4422aa353ec"/></dir><dir name="QueueExport"><file name="Grid.php" hash="35e1ec26f0860c35d63132d09b22b9e0"/></dir><dir name="QueueImport"><file name="Grid.php" hash="2291c0025c67441a667ee85c849b938c"/></dir><file name="Export.php" hash="8bad2b20c02e6f46bebcf632ca1a47bb"/><file name="Import.php" hash="25f84fabb2e3ec99281bcdd8fa2f36da"/><file name="Queue.php" hash="59ad9d88015d45a8b6874a1946cbb79b"/><file name="QueueExport.php" hash="47358e2366a683b99d974f3c88fea9b9"/><file name="QueueImport.php" hash="3674342fcbe1aa23499bdf5bcb16da54"/></dir><dir name="Customer"><dir name="Edit"><dir name="Tab"><file name="Memberactivity.php" hash="480c555fdfd348a830af84cc1b2ec749"/></dir></dir></dir><dir name="Ecommerce"><file name="Grid.php" hash="c328363a48a54819727153270664ccf0"/></dir><dir name="Ecommerceapi"><dir name="Renderer"><file name="Items.php" hash="b7da6bfbfb676c8bcd812b34ee84b7bc"/></dir><file name="Grid.php" hash="1d94069e2fe5c5ca96cabbce0ec6b398"/></dir><dir name="Memberactivity"><file name="Grid.php" hash="0dd76b6f10e87bcc8e5516f823a53d77"/></dir><dir name="Renderer"><file name="Date.php" hash="057956ab3107ff1ab1bb63580960db00"/><file name="Importypes.php" hash="db0727a05feebbf5cb6aa4193c7aa5a2"/><file name="Lists.php" hash="d7358169a3fbbaf7422e96eb73642786"/><file name="Progress.php" hash="6476d05d169196791fca792fcc2787c5"/><file name="Yesno.php" hash="9b8689c9c2bc5e51d57d5b8a37345188"/></dir><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Hint.php" hash="c68500d47c69ad31858b0e7e8f80e1af"/></dir><dir name="Form"><dir name="Field"><file name="Mapfields.php" hash="f12afdd267131675bc65c9da4e98a27d"/></dir></dir><file name="Account.php" hash="e667fd667ab5b5f98aaf6aa59482b155"/><file name="Date.php" hash="c7aa6aa77b9ba59119a753a6e217f0ab"/><file name="OauthWizard.php" hash="4426268d1c895cc75282788f9c3c57fe"/><file name="ResetLocalEcommerce.php" hash="e42a097caf3af8a1927748ff0ed36509"/><file name="ResetRemoteEcommerce.php" hash="089df8bdccfdf919f9188393554d1fc8"/></dir></dir><dir name="Transactionalemail"><dir name="Mandrill"><file name="Grid.php" hash="16f4ddfb22908829211549cd67910ed5"/></dir><dir name="Newemail"><file name="Form.php" hash="6b1d604005694896751ea448bf5d4fbb"/></dir><dir name="Sts"><file name="Grid.php" hash="125845125287b0756e1d436c590db7a1"/></dir><file name="Mandrill.php" hash="20c99e8d4451e5e6948f1869fcf09fad"/><file name="Newemail.php" hash="f3f816f536a0ff164e5c9b32de07991f"/><file name="Sts.php" hash="c94b5e2a3d4aa977dd1b505ae9dd0733"/></dir><file name="Ecommerce.php" hash="218f3f43ab85966c56a51b612dc0d19f"/><file name="Ecommerceapi.php" hash="35fab157ffd89365f58d3f6a7d215af8"/></dir><dir name="Checkout"><file name="Subscribe.php" hash="20e898bde5d1256ac346a7e65b666157"/></dir><dir name="Customer"><dir name="Account"><file name="Lists.php" hash="63d14c898f9399f711b6225e83659908"/></dir></dir><file name="Lists.php" hash="dae58712a1f4bd4375fbb026b7f6dc96"/><file name="Signup.php" hash="222115a830f5fe9d35a7d15d811936bd"/></dir><dir name="Helper"><file name="Cache.php" hash="67e65a10f74e15e46e198ff938614d46"/><file name="Data.php" hash="86acaeccfafa8493d63f1fb6ec252073"/><file name="Export.php" hash="e38bc4a6a62e1d421b56b33d951b50f3"/><file name="Oauth2.php" hash="5dde916a8a3683c792d4253a80305371"/></dir><dir name="Model"><dir name="Custom"><file name="Collection.php" hash="5cf9b979cb7d3863d1db58e4f575e8d0"/></dir><dir name="Email"><file name="Template.php" hash="e1c1a054a2a99ea4341ce6c63370a589"/></dir><dir name="Feed"><file name="Updates.php" hash="f376504e208008cf935f5e84c363982d"/></dir><dir name="Mysql4"><dir name="Apidebug"><file name="Collection.php" hash="9f75f1d9dd0f108657ac23607eff50da"/></dir><dir name="Asyncorders"><file name="Collection.php" hash="c3ef445b7524a374c725e8872347e627"/></dir><dir name="Asyncsubscribers"><file name="Collection.php" hash="766012d25d0b1edd1550a80a046e56c9"/></dir><dir name="Bulksync"><dir name="Export"><file name="Collection.php" hash="44d269eed50f52146033ff89ed7a2891"/></dir><dir name="Import"><file name="Collection.php" hash="7e6be7ba8998b9e173b5be61b2a5f02b"/></dir><file name="Export.php" hash="4ae1ac47449cccb7ce25157f7d9d2f11"/><file name="Import.php" hash="422523ecbf7248e9340ed5e18486b68b"/></dir><dir name="Ecommerce"><file name="Collection.php" hash="24a35bd64c38d18e3abb2ab9dcea8f34"/></dir><file name="Apidebug.php" hash="6fbad3a26c6608e84ef0a4d86314af0b"/><file name="Asyncorders.php" hash="63fe2090cc9421409669d1b1acdc2bee"/><file name="Asyncsubscribers.php" hash="42c900ee0d457187631208a9d1201fd2"/><file name="Ecommerce.php" hash="71a3b94d770649dd40e9eabf4a9191ca"/></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="Account.php" hash="5fdee829d7167aac52f2daf91f8c4b64"/><file name="Attributes.php" hash="f8a7a9476e9b64171fb6ed5a9cc76cb0"/><file name="BulksyncDatasource.php" hash="bb42813d2227fecc62476ff819e6bfa0"/><file name="BulksyncStatus.php" hash="745e4a9a98c4d74e82184403de7606b8"/><file name="Checkoutsubscribe.php" hash="b2db54b9fb5c3cec5d64dc3bacb437cc"/><file name="CronProcessLimit.php" hash="201fb2c0d26a121b5b902fff9ba49f88"/><file name="CustomerGroup.php" hash="6d2e08d69f170bc69a900aea72da22a8"/><file name="Ecommerce360.php" hash="14a8bc7fd552ec7f35bacaca2c326def"/><file name="List.php" hash="5ebc6ce8f7ab369ba58fe06c8b766769"/><file name="OrderProcessLimit.php" hash="54358f98da63c7c3c6eef0002ee5364b"/><file name="OrderStatus.php" hash="0be73f31140b5b713dcf5fc141052a5c"/><file name="Status.php" hash="4ef26d94a5a1645477c8b1aced56cf01"/><file name="TransactionalEmails.php" hash="406a0998c5d518c0cb177f8c853acb6d"/><file name="WebhookDelete.php" hash="689f8801344fcb9d08f1c77fa79ae6f1"/></dir></dir></dir><dir name="TransactionalEmail"><file name="Adapter.php" hash="22d05169667a6be152a898bb2c9fb129"/><file name="MANDRILL.php" hash="b84f4f27564f68ef5a3a35a1d3bf2902"/><file name="STS.php" hash="e49a76aa693d12778dd69a4fbbd613bb"/></dir><file name="Api.php" hash="84fbce714b98a7a1cba24d9a7f0ed443"/><file name="Asyncorders.php" hash="1b738740a19ea53869e3e19e531ddd03"/><file name="Asyncsubscribers.php" hash="502567bfcb6ab39bd310e670b590eeb3"/><file name="BulksyncExport.php" hash="5963222008697fe79772d7520e91705c"/><file name="BulksyncImport.php" hash="f55ae237b2a1e633a26020d646a78e33"/><file name="Cache.php" hash="64aaa1feca20ee3bbe606076d82034c7"/><file name="Config.php" hash="82f54ef3ad06143ff5270db3d04b872c"/><file name="Cron.php" hash="3776008488eca00265a24d9cf0188e56"/><file name="Ecommerce.php" hash="d74ca44e23d32d22f5f64898028d784f"/><file name="Ecommerce360.php" hash="70ae81d65a00c153f19292f0483c82cf"/><file name="MCAPI.php" hash="8c1eafa5e16e3993fa2bbe7804669315"/><file name="MCEXPORTAPI.php" hash="c8f16211692cf33992fbd785019c01f7"/><file name="Monkey.php" hash="da403ab570a8b38b33f31c45e5950852"/><file name="Observer.php" hash="22a05c29e50ddc2d3791b634bebc0211"/><file name="Subscriber.php" hash="e6b0a7a055d95db5b1394dfb7dd44914"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="BulksyncController.php" hash="14e771adfcbe3395d5624e3f3ca6e8a2"/><file name="ConfigController.php" hash="c27726c53849dbfe7ddf89059f71d73c"/><file name="EcommerceController.php" hash="97d7b13c988d2f276560a4a2fb523a5e"/><file name="TransactionalemailController.php" hash="0b1288af0ab97e26d2a07da425378249"/></dir><dir name="Customer"><file name="AccountController.php" hash="149184229b87fa5c2365992784d560ed"/></dir><file name="SignupController.php" hash="e2d90169b430679cf4a0a87b742b7b43"/><file name="WebhookController.php" hash="211e4cf7c030a8b80cadebd49c2b932d"/></dir><dir name="etc"><file name="adminhtml.xml" hash="2cd1bef6c2144cfbdcd68da1647e100c"/><file name="config.xml" hash="8e5fafbca24af0ae5be25660d7742eb9"/><file name="system.xml" hash="9bed9a41f714155175deb8c0508507e3"/></dir><dir name="sql"><dir name="monkey_setup"><file name="mysql4-install-0.0.1.php" hash="4df34769f4d5a8ceca90fd582500e3a9"/><file name="mysql4-upgrade-0.0.1-0.0.2.php" hash="d81147dab407bc55c59cddb5a764c53e"/><file name="mysql4-upgrade-0.0.2-0.0.3.php" hash="ce1925ff2ab03aa9fd6cbe43283ea37d"/><file name="mysql4-upgrade-0.0.3-0.0.4.php" hash="7f1e38bcf030e6346a9fd8321f1a4362"/><file name="mysql4-upgrade-0.0.4-0.0.5.php" hash="bbe6b895320effca77cc2c23431f043f"/><file name="mysql4-upgrade-0.0.5-0.0.6.php" hash="98b72d9ef4ec8078c09a1f641fc35a39"/><file name="mysql4-upgrade-0.0.6-0.0.7.php" hash="ea15755fc072e7c82b78063589360779"/><file name="mysql4-upgrade-1.0.10-1.0.11.php" hash="b2ec497921eb2bd9a97a318554fd980b"/><file name="mysql4-upgrade-1.1.21-1.1.22.php" hash="738e3d3e33c1a3a02bb101b89743cc5c"/><file name="mysql4-upgrade-1.1.23-1.1.24.php" hash="5a1bfdc8014edbc8b8c728954405a9f5"/><file name="mysql4-upgrade-1.1.5-1.1.6.php" hash="14750274ece5816d6c1ab490f7d610ab"/></dir></dir></dir><dir name="Mandrill"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Hint.php" hash="fb729d3c111d1626577017d5bd88b693"/></dir><file name="Userinfo.php" hash="fc19ad47dda8547fe66d4fc13821ef66"/></dir></dir><dir name="Templates"><dir name="Templates"><file name="Grid.php" hash="2bd56817ffdf97181552fb461006956c"/></dir><file name="Templates.php" hash="b11427fda30f8e0f51a35fcfbd4e2cff"/></dir><dir name="Users"><dir name="Senders"><file name="Grid.php" hash="97927a2897f543a6b0603c8f3705c2e0"/></dir><file name="Senders.php" hash="d2f5c303467c2ffc08414394c30e94b0"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="265550db051e8ee3bc81e9a8bcec0731"/></dir><dir name="Model"><dir name="Email"><file name="Template.php" hash="42df539ce010e7c823ac1496a0831e28"/></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="Userinfo.php" hash="9f1ab317f449b1a1ef6c240470c5059f"/></dir></dir><file name="Config.php" hash="070947579c992a16e7a335c521684ffd"/></dir><file name="Customcollection.php" hash="f024ab2663565eeca20a0d071e0cffbc"/></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Mandrill"><file name="UsersController.php" hash="22458a083848a119e36edad0fba44972"/></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="8c0b7fda27820f53b3064f18a524c930"/><file name="config.xml" hash="97bb82b823927c1c1c14b499ffae550a"/><file name="system.xml" hash="d05b90ca129297b6ffda52a4ba1fd26a"/></dir></dir><dir name="AbandonedCart"><dir name="Block"><dir name="Adminhtml"><dir name="Abandonedmails"><file name="Grid.php" hash="1d6aa7470345b86ebc544865b1d5988b"/></dir><dir name="Abandonedorder"><file name="Grid.php" hash="2ea8fd100532c94ad46280befe350e12"/></dir><dir name="Dashboard"><file name="Sales.php" hash="0242b35fd7d779e997c9d583d2067200"/><file name="Totals.php" hash="6fab1bc9886d3a5c0de6609e0f842076"/></dir><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Hint.php" hash="7421b2285cbf14f737f197647c444e13"/></dir><file name="Date.php" hash="c2c968c7e44e4512afcf1d280b596b12"/></dir></dir><file name="Abandonedmails.php" hash="1602122456b4a710638e049e87135a57"/><file name="Abandonedorder.php" hash="eb6b272bf9da062c0d922f733fd5684d"/><file name="Dashboard.php" hash="b308fe4aa4339bb980f911ddaf244bf1"/></dir><dir name="Email"><dir name="Order"><file name="Items.php" hash="fe4564e2561eaa691d0a22520f5e36b1"/></dir></dir><dir name="Popup"><file name="Emailcatcher.php" hash="28194c1520245a895d91f76ecb30c23e"/></dir></dir><dir name="Helper"><file name="Data.php" hash="ffbe77030c3e058ec412b246a1bc557b"/></dir><dir name="Model"><dir name="Resource"><dir name="Abtesting"><file name="Collection.php" hash="7d56be9522f6c9787a2e58cb668c6585"/></dir><dir name="Mailssent"><file name="Collection.php" hash="32a7f66ed04d2774708608e93673eb60"/></dir><dir name="Order"><file name="Collection.php" hash="23e2093bc0d909c30190ac5ff76b2a4b"/></dir><dir name="Popup"><file name="Collection.php" hash="0a0eb4d9c28d23b430806609d7297d2e"/></dir><file name="Abtesting.php" hash="49bc18400a056a0783cdb278083f66c0"/><file name="Mailssent.php" hash="587b8c706766b178be80dc6539e4172b"/><file name="Popup.php" hash="5f942ac5806480a113fd22631a358535"/></dir><dir name="System"><dir name="Config"><file name="Automatic.php" hash="4796f50ff325b34bb7478ae19da5f455"/><file name="Cmspage.php" hash="97fb52c0878ba73934fc54bd23a00284"/><file name="Customergroup.php" hash="56192685ca9110ae95431fc63c494e25"/><file name="Discounttype.php" hash="680ae0d05305ea8ead09bd176914935d"/><file name="Maxemails.php" hash="d3e4eb78c3496a7e3f1dafb66c765407"/><file name="Unit.php" hash="a20bb2f70dbff61ad99b12e169116a68"/><file name="Yesnovariation.php" hash="f1ab0fdb2c12ffb97adc6c9185b85f79"/></dir></dir><file name="Abtesting.php" hash="5b43dc1272d58b5adcd84ac9bafdad92"/><file name="Config.php" hash="de13a5b4a8b3236508b05040947bf0a0"/><file name="Cron.php" hash="320b1c500094139565ed05efc114af1d"/><file name="EventObserver.php" hash="b16e1a140aeeda90dbe068120ce8548b"/><file name="Mailssent.php" hash="c4bb348f7df03d057b6e71793a35099f"/><file name="Popup.php" hash="9b2da7747a27a72c5066c59902c04238"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="AbandonedmailsController.php" hash="53e508bee05b83175bf940e8e569e5c5"/><file name="AbandonedorderController.php" hash="fa050d8ecfe1d665178375c677a83c38"/></dir><file name="AbandonedController.php" hash="6a0d49ca1c8daf745909bb9cadf83094"/></dir><dir name="etc"><file name="adminhtml.xml" hash="f32961dcb3c682b24d6e3b5cc5413450"/><file name="config.xml" hash="c482f71505c557660a57522465f72593"/><file name="system.xml" hash="caa7eea176d295c86079d6abf4306a56"/></dir><dir name="sql"><dir name="ebizmarts_abandonedcart_setup"><file name="mysql4-install-0.1.0.php" hash="0e1a8c0391654c480773b78a50db5a83"/><file name="mysql4-upgrade-0.1.12-0.1.13.php" hash="4835436b744f8cbff61a66c2e345976f"/><file name="mysql4-upgrade-0.1.18-0.1.19.php" hash="e51b332cb70c81ee472b586fda4e8a7e"/><file name="mysql4-upgrade-0.1.2-0.1.3.php" hash="2e87d09a5008ac2f2432a25e08474c87"/><file name="mysql4-upgrade-0.1.20-0.1.21.php" hash="c461ba10961b4ee4e9385173d4264617"/><file name="mysql4-upgrade-0.1.29-0.1.30.php" hash="e9fdf4551cf19b488ed68ca0dd55ab67"/><file name="mysql4-upgrade-0.1.30-0.1.31.php" hash="2889ca071f7b974f2cd85a6b9405e541"/><file name="mysql4-upgrade-0.1.6-0.1.7.php" hash="60daa0d70a1af929a39d6e20ee52ee9c"/></dir></dir></dir><dir name="Autoresponder"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Backtostock"><dir name="Fieldset"><file name="Hint.php" hash="2ce3d676335024c283c8cb7004f2fd70"/></dir></dir><dir name="Birthday"><dir name="Fieldset"><file name="Hint.php" hash="b90407590390af8a3b7a5f28fe30fc1d"/></dir></dir><dir name="Fieldset"><file name="Hint.php" hash="6512f3966ad7a5805b37ec347fe3f45d"/></dir><dir name="Review"><dir name="Fieldset"><file name="Hint.php" hash="3a30e310d54d553551645b4ba65d3a97"/></dir></dir><dir name="Wishlist"><dir name="Fieldset"><file name="Hint.php" hash="d958534a50e224778b4f21ab91965c93"/></dir></dir></dir></dir></dir><dir name="Backtostock"><file name="Notice.php" hash="a0ed5dc687baa5eff1c5582fe3d1d7b8"/></dir><dir name="Customer"><dir name="Account"><file name="List.php" hash="12114dfff4daa3fb66ec67886ecd65ce"/></dir></dir><dir name="Email"><dir name="Backtostock"><file name="Item.php" hash="52fdf4d6b9e46af278e845af141babaf"/></dir><dir name="Related"><file name="Items.php" hash="a307ecd59fa183dfd631f3e852d5b0b4"/></dir><dir name="Review"><file name="Items.php" hash="58310c2423a7844e4876adf0fee8d1f8"/></dir><dir name="Wishlist"><file name="Items.php" hash="ea252dac50f360125f964a493db00252"/></dir></dir><dir name="Review"><file name="Form.php" hash="36b468ca8507f5880e792cf2ca144084"/></dir><file name="Unsubscribe.php" hash="3320837d5f53290bea5911184f2f8e89"/></dir><dir name="Helper"><file name="Data.php" hash="3678d2a787f4e025914d1dcd7cff2635"/></dir><dir name="Model"><dir name="Resource"><dir name="Backtostock"><file name="Collection.php" hash="ed8d4e1356ee483a17c916f3caf5e004"/></dir><dir name="Backtostockalert"><file name="Collection.php" hash="0c8888bcd7f10ee01c40ffb1be379b29"/></dir><dir name="Review"><file name="Collection.php" hash="f6d6fea1af97d22c763ca066f35b60c1"/></dir><dir name="Unsubscribe"><file name="Collection.php" hash="ce69c3e9a94270d56586d98b9848c40e"/></dir><dir name="Visited"><file name="Collection.php" hash="bd6f6853caf49b5cc775853982d080a4"/></dir><file name="Backtostock.php" hash="f843a3a2c8784ebf5844dd24851152b5"/><file name="Backtostockalert.php" hash="667c31247de8122c896f7056f76d69e4"/><file name="Review.php" hash="c452559a7e879c3c1744d0fe2a8d3c44"/><file name="Unsubscribe.php" hash="52d3a3276a4ffc9dac8969a9f71ab7fe"/><file name="Visited.php" hash="2c1255d46620bd32976ec62a74ea8ee5"/></dir><dir name="System"><dir name="Config"><file name="Automatic.php" hash="a13826aaa72aa13d783e9b8032255d11"/><file name="Couponcounter.php" hash="6a5667391ba4ec58490fef07c4b0c20b"/><file name="Customergroup.php" hash="9dacae8f22f927f63fffa065698436b0"/><file name="Discounttype.php" hash="f0434d0bd53e7a18a2a7377b9e08fe5f"/><file name="Generaltype.php" hash="871b01315f4bdcef6fe4317d0ee421fd"/><file name="Hours.php" hash="755b52d65dcab65348c475a92414a486"/><file name="Newordertrigger.php" hash="c33117c5009e88a021ad09f3e4a75449"/><file name="Time.php" hash="3bb74c6af5f1d2d0920e290f5ff4978a"/></dir></dir><file name="Backtostock.php" hash="bbe12c4e362b4a6b3ff289c4cfad1c1d"/><file name="Backtostockalert.php" hash="7c13e74e80769ce9ec5348dff3146ed7"/><file name="Config.php" hash="f6063e13ba22a886dcef116aeddfbc12"/><file name="Cron.php" hash="74ad09afd13209b6b8d5877f41d58a5f"/><file name="EventObserver.php" hash="c1a88779a1726d358b4e418dff88dd6c"/><file name="Review.php" hash="3972ef6776b94ccecf6e05b2aa1972db"/><file name="Unsubscribe.php" hash="60b3692fd5f2e29c711954fd0ca91141"/><file name="Visited.php" hash="36850b4973097fd7dfe4d05c45b8dbdd"/></dir><dir name="controllers"><file name="AutoresponderController.php" hash="37a1d42c1d041769efc967fb273fe2ad"/><file name="BacktostockController.php" hash="0a7f9280f87c7a663f06529e3811cfc1"/></dir><dir name="etc"><file name="adminhtml.xml" hash="59a240f12b496566f1a2b1de5f053e96"/><file name="config.xml" hash="5673aab6e155b64302a005bbea1ca8f1"/><file name="system.xml" hash="0693c58f1f1eaa3847f12dafd1c930aa"/></dir><dir name="sql"><dir name="ebizmarts_autoresponder_setup"><file name="mysql4-install-0.1.0.php" hash="791af0eec35753144d506294bb4c03ad"/><file name="mysql4-upgrade-0.1.3-0.1.4.php" hash="78438ac4a76091f713815249b89a0fb8"/><file name="mysql4-upgrade-0.1.4-0.1.5.php" hash="b2b4f343d16d99c1396987452fba1039"/><file name="mysql4-upgrade-0.1.5-0.1.6.php" hash="378accc07eb80b16029db84f56bed683"/><file name="mysql4-upgrade-0.1.9-0.1.10.php" hash="53cc6beed11e8631c11a008c5fd78ce1"/></dir></dir></dir><dir name="SweetMonkey"><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Hint.php" hash="b7296d40dc88f3bde33450fb23b15ee2"/></dir><dir name="Form"><dir name="Field"><file name="Mapfields.php" hash="b3bb316c7a383828e6c94a90fadfb2e9"/></dir></dir><file name="Autovars.php" hash="28d3a352056156294b0271248d970b9d"/></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="10c9cd81ea6b8539c5bc0a57fd971b2a"/></dir><dir name="Model"><file name="Cron.php" hash="b9b7e5fc7175a55d78d1b44d4f2a5f89"/><file name="Observer.php" hash="009acece0015f81827cf8ec912286327"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="MageMonkeyController.php" hash="ad730022b503ee854523b48fe139f1f0"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="b5a5cc7ad438d3f360ca3112883d2506"/><file name="config.xml" hash="ce6bce6aa26f5181f1da549d1d1aea2a"/><file name="system.xml" hash="93e8f26427a0df9183f6680441ce23f6"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Ebizmarts_MageMonkey.xml" hash="9a4b1c469b4652442c7a5f945dd12cac"/><file name="Ebizmarts_Mandrill.xml" hash="c80aa6f98ccc3890303bb4c278f8ad95"/><file name="Ebizmarts_AbandonedCart.xml" hash="48c4cfe8246d5a995e2836c43ab38d74"/><file name="Ebizmarts_Autoresponder.xml" hash="97302f94f5893147db18c4034d135256"/></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="ebizmarts"><file name="abandonedcart.xml" hash="60577a2647659f09d0fb40d2e926debc"/><file name="autoresponder.xml" hash="2b19320aa4f75852f02d091a322a84bc"/></dir><file name="magemonkey.xml" hash="c886275bfb2ea3bbd16a627ce894e3c8"/></dir><dir name="template"><dir name="magemonkey"><dir name="checkout"><file name="subscribe.phtml" hash="378974e316fb9865fdbb2fb077e3869f"/></dir><file name="lists.phtml" hash="040b3b8c589f8ae4e8ad2c2bfb3b157b"/></dir><dir name="ebizmarts_abandonedcart"><dir name="email"><dir name="order"><dir name="items"><dir name="order"><file name="default.phtml" hash="5ff74635419e7ffb4d3660c306ad6590"/></dir></dir><file name="items.phtml" hash="a255dc6fa730b2883a50bb6fa22c909f"/></dir></dir><dir name="popup"><file name="emailcatcher.phtml" hash="cf99fa6782e9c64fd38f2d3cab1761b2"/></dir></dir><dir name="ebizmarts"><dir name="autoresponder"><dir name="backtostock"><dir name="catalog"><dir name="product"><file name="form.phtml" hash="da27e44f5421a35357bdb1ad832b5edd"/><file name="notice.phtml" hash="737a4cfe2018dec33228b5243276165d"/></dir></dir><file name="item.phtml" hash="7dc40cf921dad08404803a8c3a447591"/></dir><dir name="customer"><file name="list.phtml" hash="be9cd36a644a39e3569c9ae0ded2087d"/></dir><dir name="related"><file name="items.phtml" hash="7f20e5bf377029559f923f323698bdb1"/></dir><dir name="review"><file name="items.phtml" hash="26bde27b034c21d7cfdc785d7f5b1228"/></dir><dir name="wishlist"><file name="items.phtml" hash="d9c0df1659400e45af3a8f814e2db075"/></dir><file name="unsubscribe.phtml" hash="553182da5f6bcf4223ee1c641322dc14"/></dir></dir></dir></dir></dir></dir><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><dir name="ebizmarts"><file name="mandrill.xml" hash="a1fa45084bc7b71260f92dbf62f98a93"/><file name="abandonedcart.xml" hash="56b2ca552b73a976207cd33afbcfb299"/></dir><file name="magemonkey.xml" hash="613e5cd38048dedadb96434b9c3cc704"/></dir><dir name="template"><dir name="magemonkey"><dir name="system"><dir name="config"><dir name="fieldset"><file name="hint.phtml" hash="2914c30de176440d60b5ce8f6279429d"/></dir><file name="oauth_wizard.phtml" hash="226d42be1f41838bb80da0e2c3567d71"/><file name="resetlocal360.phtml" hash="d4fe07e15e8ffaecd3491b6ed900d918"/><file name="resetremote360.phtml" hash="6d5caaf7fa0e823b1ee22e1a9776f7eb"/></dir></dir></dir><dir name="ebizmarts"><dir name="mandrill"><dir name="system"><dir name="config"><dir name="fieldset"><file name="hint.phtml" hash="9e7ed7d3fc574d087f96ef9de9eeaedb"/></dir></dir></dir></dir><dir name="abandonedcart"><dir name="dashboard"><file name="index.phtml" hash="180d73784745e0c1d5b37b0d435a2cc0"/><file name="salebar.phtml" hash="50a0c2645e2f651da9ba72fd875986cb"/><file name="totalbar.phtml" hash="ff53860a369cbf2e2c067607147afe83"/></dir><dir name="system"><dir name="config"><dir name="fieldset"><file name="hint.phtml" hash="ffde58e7c920e022c949601fb5533820"/></dir></dir></dir></dir><dir name="autoresponder"><dir name="system"><dir name="config"><dir name="backtostock"><dir name="fieldset"><file name="hint.phtml" hash="f02d4d7e5e45bc45b20cf8d531017c61"/></dir></dir><dir name="birthday"><dir name="fieldset"><file name="hint.phtml" hash="577162540f6f45b822d7784463c31456"/></dir></dir><dir name="fieldset"><file name="hint.phtml" hash="03ca0e64ef7648018ea459fc18ee2b4a"/></dir><dir name="review"><dir name="fieldset"><file name="hint.phtml" hash="a3e506441b757f5372337fa59de1d64f"/></dir></dir><dir name="wishlist"><dir name="fieldset"><file name="hint.phtml" hash="8f4427235da3afa30d271745f040c767"/></dir></dir></dir></dir></dir></dir><dir name="sweetmonkey"><dir name="system"><dir name="config"><dir name="fieldset"><file name="hint.phtml" hash="f60a8dbc8dbb914758e18361cfdc97d4"/></dir><file name="autovars.phtml" hash="51d1d0af1992aaf71cb46df470ec7959"/></dir></dir></dir></dir></dir></dir></dir><dir name="modules"><file name="Ebizmarts_SweetMonkey.xml" hash=""/></dir></target><target name="magelocale"><dir name="en_US"><dir name="template"><dir name="email"><dir name="ebizmarts"><dir name="abandonedcart"><file name="abandoned_cart_mail_1.html" hash="a179c12f8032e121002fc33a46f18d16"/><file name="abandoned_cart_mail_2.html" hash="4279c482f4a8c13ed34197420fc1a94b"/><file name="abandoned_cart_mail_3.html" hash="46bc064931ffb87208a743b7f222d8e3"/><file name="abandoned_cart_mail_generic.html" hash="73f8caed42f738e3bffe5da4d8a882a4"/><file name="popup_coupon_template.html" hash="84692de3f22d7d8f0b4cb1f988f3f703"/></dir><dir name="autoresponder"><file name="backtostock.html" hash="873a69e2975f86203e0459410154c11f"/><file name="birthday.html" hash="6c4b7fc9c04c63a010637430c542398c"/><file name="neworder.html" hash="0bf363484cf971b52b2b2b6ac466e743"/><file name="noactivity.html" hash="050ed39458f9a4b182f3a047c07ea6ba"/><file name="relatedproducts.html" hash="9c4993edce3474c7b063cfbb4a4cb849"/><file name="review.html" hash="c6349dcd4be0b3c73473a45849a261ac"/><file name="reviewcoupon.html" hash="8b8262acb1d67c315a582f6a70330c49"/><file name="visitedproducts.html" hash="1bfe817dcccc9b1eeba23b439b68da5e"/><file name="wishlist.html" hash="f2f55a5740d653cdddecb359f18c5325"/></dir></dir><dir name="sweetmonkey"><file name="expiry_notice.html" hash="8e5b03681870d4b1c6fc448d72d6e163"/><file name="points_notice.html" hash="5e41ab875dc8dbb22cca98fbefa70212"/></dir></dir></dir><file name="Ebizmarts_MageMonkey.csv" hash="181e91ed91dfea5fe7dab66af5719af8"/><file name="Ebizmarts_Mandrill.csv" hash="3dac3af57664fd34f5eda8abf4098ee0"/><file name="Ebizmarts_AbandonedCart.csv" hash="214bcd0e8cd6153c48fab236dcfdba1b"/><file name="Ebizmarts_Autoresponder.csv" hash="d41d8cd98f00b204e9800998ecf8427e"/><file name="Ebizmarts_SweetMonkey.csv" hash="f0cdb51ba2052ce7f7ec1c9885ee5d3c"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="magemonkey"><file name="magemonkey.css" hash="00f0b145e9f9cc99eb46cf97faba3f65"/><file name="magemonkey.js" hash="e40717a83ef300776cc79ad9f8191005"/><file name="mailchimp-connected-ebizmarts-title.png" hash="c6bcb1aa606ecd3b0a9753bb48ddeb58"/><file name="mailchimp-ico.png" hash="14978ec398cede4060bc9b00365bb6c5"/><file name="mailchimp-section-background.png" hash="d4536261c6a3534fbb855428c0cca62c"/><file name="mailchimp-tab.png" hash="61972b4e063364071e81d8c9e10d8feb"/></dir><dir name="abandonedcart"><file name="abandonedcart.css" hash="0d29bc510ac4af6ae38b89c62019f797"/></dir><dir name="ebizmarts"><dir name="mandrill"><file name="mandrill-tab.png" hash="d7eaf9deef355e4b8b55a96070b90ffe"/><file name="mandrill.css" hash="8b37685fb4190a7bf7fd39389704f802"/></dir><file name="ebizmarts-tab.png" hash="6dfa08c5cd4329d1df6e7b71fb1f925a"/><file name="ebizmarts.css" hash="35df3175edab20de6b7ad8a0adb592c0"/></dir></dir></dir></dir><dir name="frontend"><dir name="base"><dir name="default"><dir name="magemonkey"><file name="magemonkey.css" hash="d4eac40764271596a3edc30d1014887f"/><file name="monkey.js" hash="d7d2e3f137d97202214fe29551695739"/></dir></dir></dir></dir></target><target name="mage"><dir name="lib"><dir name="Mandrill"><dir name="Mandrill"><file name="Exceptions.php" hash="c1b76471b87d66b9118cfacf42b309a2"/><file name="Exports.php" hash="89ab0610609c675b873d7f17db7e384d"/><file name="Inbound.php" hash="194af722064b87ec08fb08196d0b112e"/><file name="Internal.php" hash="26470edbb8134ff0b03f110f2cdc3bf8"/><file name="Ips.php" hash="37c362fec92e6e1a122cfa1c9363b426"/><file name="Messages.php" hash="0c846d38f80303b0a403258b00bcbe46"/><file name="Metadata.php" hash="f513ee87966aa29738f4f9d95f852da1"/><file name="Rejects.php" hash="562aae94138d2fd6cb44cd48058ed25f"/><file name="Senders.php" hash="30c01ced259070fd170b2447dd0053a1"/><file name="Subaccounts.php" hash="43f762b6cab8b0dc54eceff42402c386"/><file name="Tags.php" hash="92760c835fa7312a1ce9c401c3116f9b"/><file name="Templates.php" hash="b212c80d72590920e169a0850c43355b"/><file name="Urls.php" hash="8438b47d6f283ebb5a9821b7997d972f"/><file name="Users.php" hash="ac0fc5f8b264b8436ad8e98aa7ce214d"/><file name="Webhooks.php" hash="51ec40806b2cf3966557389143143f58"/><file name="Whitelists.php" hash="14e150230d31880b7fa0a56802b2fa7c"/></dir><file name="Mandrill.php" hash="de81f00e82e4bcae611c6b167955b907"/><file name="Message.php" hash="3cf78c00c80a8cf6524d91abe7526049"/></dir></dir><dir name="js"><dir name="ebizmarts"><dir name="abandonedcart"><file name="popup.css" hash="5e09017943db1f47a0b49b580cd0dac2"/></dir><dir name="autoresponders"><file name="visitedproducts.js" hash="61ef8d19642d349a19a43d018888f205"/><file name="visitedproductsstorecodes.js" hash="08aad89b4f1f8239818ebd0a6b72c3b5"/></dir><dir name="magemonkey"><file name="campaignCatcher.js" hash="2f841a5a853c5a49d88d7a3ae15b639e"/></dir></dir></dir></target></contents>
37
  <compatible/>
38
  <dependencies/>
39
  </package>
skin/adminhtml/default/default/ebizmarts/ebizmarts.css CHANGED
@@ -1,4 +1,4 @@
1
- ul.tabs a.ebizmarts-section:hover { background-color:#D8E6E6; background-image:url(images/tabs_link_over_bg.gif); }
2
  ul.tabs a.ebizmarts-section {border-bottom: 1px; border-bottom-style: dotted;}
3
  ul.tabs a.ebizmarts-section:hover {border-bottom:1px; border-bottom-style: dotted;}
4
  ul.tabs a.ebizmarts-section span,
1
+ ul.tabs a.ebizmarts-section:hover { background-color:#D8E6E6; background-image:url(../images/tabs_link_over_bg.gif); }
2
  ul.tabs a.ebizmarts-section {border-bottom: 1px; border-bottom-style: dotted;}
3
  ul.tabs a.ebizmarts-section:hover {border-bottom:1px; border-bottom-style: dotted;}
4
  ul.tabs a.ebizmarts-section span,
skin/adminhtml/default/default/ebizmarts/mandrill/mandrill.css CHANGED
@@ -1,4 +1,4 @@
1
- ul.tabs a.mandrill-section:hover { background-color:#D8E6E6; background-image:url(images/tabs_link_over_bg.gif); }
2
  ul.tabs a.mandrill-section {border-bottom: 1px; border-bottom-style: dotted;}
3
  ul.tabs a.mandrill-section:hover {border-bottom: 1px; border-bottom-style: dotted;}
4
  ul.tabs a.mandrill-section span,
1
+ ul.tabs a.mandrill-section:hover { background-color:#D8E6E6; background-image:url(../../images/tabs_link_over_bg.gif); }
2
  ul.tabs a.mandrill-section {border-bottom: 1px; border-bottom-style: dotted;}
3
  ul.tabs a.mandrill-section:hover {border-bottom: 1px; border-bottom-style: dotted;}
4
  ul.tabs a.mandrill-section span,