Ebizmarts_MageMonkey - Version 1.1.28

Version Notes

1.1.28
--------
Checks if group is displayed before adding it to post on Checkout Subscription.

Fixed Email Catcher.
Email Catcher has the new option to insist a configurable number of times before stopping if canceled.
Email catched is now also used on Autoresponder -> Visited Products
Customer can receive coupon if added email on Email Catcher if configured.

All Autoresponder features have the option to set the hour of the day to be sent.

Bulksync export also updates customers

Cookies for MailChimp campaign are now generated with javascript to skip Varnish cache or similar.

http://ebizmarts.com/forums/topics/view/13862#15185
If configurable doesn't have images set it will show the simple product image.

Product Attributes for eCommerce360 segmentation

Download this release

Release Info

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


Code changes from version 1.1.26 to 1.1.28

Files changed (52) hide show
  1. app/code/community/Ebizmarts/AbandonedCart/Block/Email/Order/Items.php +12 -1
  2. app/code/community/Ebizmarts/AbandonedCart/Block/Popup/Emailcatcher.php +13 -1
  3. app/code/community/Ebizmarts/AbandonedCart/Model/Config.php +34 -17
  4. app/code/community/Ebizmarts/AbandonedCart/Model/Cron.php +86 -39
  5. app/code/community/Ebizmarts/AbandonedCart/Model/EventObserver.php +3 -3
  6. app/code/community/Ebizmarts/AbandonedCart/Model/Popup.php +17 -0
  7. app/code/community/Ebizmarts/AbandonedCart/Model/Resource/Popup.php +18 -0
  8. app/code/community/Ebizmarts/AbandonedCart/Model/Resource/Popup/Collection.php +18 -0
  9. app/code/community/Ebizmarts/AbandonedCart/controllers/AbandonedController.php +7 -2
  10. app/code/community/Ebizmarts/AbandonedCart/etc/config.xml +25 -23
  11. app/code/community/Ebizmarts/AbandonedCart/etc/system.xml +239 -87
  12. app/code/community/Ebizmarts/AbandonedCart/sql/ebizmarts_abandonedcart_setup/mysql4-upgrade-0.1.29-0.1.30.php +27 -0
  13. app/code/community/Ebizmarts/Autoresponder/Helper/Data.php +18 -0
  14. app/code/community/Ebizmarts/Autoresponder/Model/Config.php +36 -26
  15. app/code/community/Ebizmarts/Autoresponder/Model/Cron.php +75 -44
  16. app/code/community/Ebizmarts/Autoresponder/Model/EventObserver.php +32 -0
  17. app/code/community/Ebizmarts/Autoresponder/Model/System/Config/Hours.php +13 -0
  18. app/code/community/Ebizmarts/Autoresponder/Model/System/Config/Newordertrigger.php +23 -0
  19. app/code/community/Ebizmarts/Autoresponder/controllers/AutoresponderController.php +17 -4
  20. app/code/community/Ebizmarts/Autoresponder/etc/config.xml +10 -2
  21. app/code/community/Ebizmarts/Autoresponder/etc/system.xml +124 -0
  22. app/code/community/Ebizmarts/Autoresponder/sql/ebizmarts_autoresponder_setup/mysql4-upgrade-0.1.9-0.1.10.php +19 -0
  23. app/code/community/Ebizmarts/MageMonkey/Helper/Data.php +34 -53
  24. app/code/community/Ebizmarts/MageMonkey/Model/Config.php +43 -0
  25. app/code/community/Ebizmarts/MageMonkey/Model/Cron.php +29 -14
  26. app/code/community/Ebizmarts/MageMonkey/Model/Ecommerce360.php +42 -22
  27. app/code/community/Ebizmarts/MageMonkey/Model/Observer.php +33 -21
  28. app/code/community/Ebizmarts/MageMonkey/Model/System/Config/Source/Attributes.php +58 -0
  29. app/code/community/Ebizmarts/MageMonkey/Model/System/Config/Source/CustomerGroup.php +14 -15
  30. app/code/community/Ebizmarts/MageMonkey/etc/config.xml +5 -3
  31. app/code/community/Ebizmarts/MageMonkey/etc/system.xml +63 -38
  32. app/design/adminhtml/default/default/template/magemonkey/system/config/fieldset/hint.phtml +1 -1
  33. app/design/adminhtml/default/default/template/magemonkey/system/config/resetlocal360.phtml +6 -6
  34. app/design/frontend/base/default/layout/ebizmarts/abandonedcart.xml +4 -4
  35. app/design/frontend/base/default/layout/ebizmarts/autoresponder.xml +1 -3
  36. app/design/frontend/base/default/layout/magemonkey.xml +6 -0
  37. app/design/frontend/base/default/template/ebizmarts/autoresponder/backtostock/catalog/product/notice.phtml +1 -1
  38. app/design/frontend/base/default/template/ebizmarts/autoresponder/backtostock/item.phtml +16 -1
  39. app/design/frontend/base/default/template/ebizmarts/autoresponder/related/items.phtml +16 -1
  40. app/design/frontend/base/default/template/ebizmarts/autoresponder/review/items.phtml +16 -1
  41. app/design/frontend/base/default/template/ebizmarts/autoresponder/unsubscribe.phtml +1 -1
  42. app/design/frontend/base/default/template/ebizmarts/autoresponder/wishlist/items.phtml +16 -1
  43. app/design/frontend/base/default/template/ebizmarts_abandonedcart/email/order/items.phtml +4 -2
  44. app/design/frontend/base/default/template/ebizmarts_abandonedcart/popup/emailcatcher.phtml +28 -10
  45. app/design/frontend/base/default/template/magemonkey/checkout/subscribe.phtml +9 -2
  46. app/locale/en_US/Ebizmarts_AbandonedCart.csv +5 -0
  47. app/locale/en_US/template/email/ebizmarts/abandonedcart/abandoned_cart_mail_1.html +8 -2
  48. app/locale/en_US/template/email/ebizmarts/abandonedcart/abandoned_cart_mail_2.html +8 -2
  49. app/locale/en_US/template/email/ebizmarts/abandonedcart/abandoned_cart_mail_3.html +8 -2
  50. app/locale/en_US/template/email/ebizmarts/abandonedcart/popup_coupon_template.html +35 -0
  51. js/ebizmarts/magemonkey/campaignCatcher.js +32 -0
  52. package.xml +16 -30
app/code/community/Ebizmarts/AbandonedCart/Block/Email/Order/Items.php CHANGED
@@ -31,7 +31,18 @@ class Ebizmarts_AbandonedCart_Block_Email_Order_Items extends Mage_Sales_Block_I
31
  {
32
  $product = Mage::getModel('catalog/product')
33
  ->load($_item->getProductId());
34
- return Mage::helper('catalog/image')->init($product, 'image')->resize(115);
 
 
 
 
 
 
 
 
 
 
 
35
  }
36
 
37
  }
31
  {
32
  $product = Mage::getModel('catalog/product')
33
  ->load($_item->getProductId());
34
+ if($product->getImage()=="no_selection"&&$product->getTypeId() == "configurable") {
35
+ $conf = Mage::getModel('catalog/product_type_configurable')->setProduct($product);
36
+ $simple_collection = $conf->getUsedProductCollection()->addAttributeToSelect('*')->addFilterByRequiredOptions();
37
+ foreach ($simple_collection as $simple_product) {
38
+ if ($simple_product->getImage() != "no_selection") {
39
+ $imageUrl = $simple_product->getThumbnailUrl();
40
+ }
41
+ }
42
+ } else {
43
+ $imageUrl = $product->getThumbnailUrl();
44
+ }
45
+ return $imageUrl;
46
  }
47
 
48
  }
app/code/community/Ebizmarts/AbandonedCart/Block/Popup/Emailcatcher.php CHANGED
@@ -5,7 +5,7 @@
5
  * Date: 23/10/14
6
  * Time: 02:28 PM
7
  */
8
- class Ebizmarts_AbandonedCart_Block_Popup_Emailcatcher extends Mage_Adminhtml_Block_Widget_Form {
9
 
10
  protected function _canCancel(){
11
  $storeId = Mage::app()->getStore()->getId();
@@ -27,6 +27,18 @@ class Ebizmarts_AbandonedCart_Block_Popup_Emailcatcher extends Mage_Adminhtml_Bl
27
  return Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::POPUP_SUBSCRIPTION, $storeId);
28
  }
29
 
 
 
 
 
 
 
 
 
 
 
 
 
30
  protected function _getStoreId(){
31
  return Mage::app()->getStore()->getId();
32
  }
5
  * Date: 23/10/14
6
  * Time: 02:28 PM
7
  */
8
+ class Ebizmarts_AbandonedCart_Block_Popup_Emailcatcher extends Mage_Core_Block_Template {
9
 
10
  protected function _canCancel(){
11
  $storeId = Mage::app()->getStore()->getId();
27
  return Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::POPUP_SUBSCRIPTION, $storeId);
28
  }
29
 
30
+ protected function _createCoupon($email){
31
+ $storeId = Mage::app()->getStore()->getId();
32
+ if(Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::POPUP_CREATE_COUPON, $storeId)){
33
+ $collection = Mage::getModel('ebizmarts_abandonedcart/popup')->getCollection()
34
+ ->addFieldToFilter('email', array('eq'=>$email));
35
+ if(!count($collection)) {
36
+ $addEmail = Mage::getModel('ebizmarts_abandonedcart/popup');
37
+ $addEmail->setEmail($email)->save();
38
+ }
39
+ }
40
+ }
41
+
42
  protected function _getStoreId(){
43
  return Mage::app()->getStore()->getId();
44
  }
app/code/community/Ebizmarts/AbandonedCart/Model/Config.php CHANGED
@@ -27,16 +27,6 @@ class Ebizmarts_AbandonedCart_Model_Config
27
  const SENDER = "ebizmarts_abandonedcart/general/identity";
28
  const MAXTIMES = "ebizmarts_abandonedcart/general/max";
29
  const MAXTIMES_NUM = 5;
30
- const COUPON_DAYS = "ebizmarts_abandonedcart/coupon/sendon";
31
- const SEND_COUPON = "ebizmarts_abandonedcart/coupon/create";
32
- const FIRST_DATE = "ebizmarts_abandonedcart/general/firstdate";
33
- const COUPON_AMOUNT = "ebizmarts_abandonedcart/coupon/discount";
34
- const COUPON_AUTOMATIC = "ebizmarts_abandonedcart/coupon/automatic";
35
- const COUPON_CODE = "ebizmarts_abandonedcart/coupon/couponcode";
36
- const COUPON_EXPIRE = "ebizmarts_abandonedcart/coupon/expire";
37
- const COUPON_TYPE = "ebizmarts_abandonedcart/coupon/discounttype";
38
- const COUPON_LENGTH = "ebizmarts_abandonedcart/coupon/length";
39
- const COUPON_LABEL = "ebizmarts_abandonedcart/coupon/couponlabel";
40
  const CUSTOMER_GROUPS = "ebizmarts_abandonedcart/general/customer";
41
  const FIRST_SUBJECT = "ebizmarts_abandonedcart/general/subject1";
42
  const SECOND_SUBJECT = "ebizmarts_abandonedcart/general/subject2";
@@ -49,11 +39,38 @@ class Ebizmarts_AbandonedCart_Model_Config
49
  const IN_DAYS = 0;
50
  const IN_HOURS = 1;
51
  const PAGE = 'ebizmarts_abandonedcart/general/page';
52
- const ENABLE_POPUP = 'ebizmarts_abandonedcart/catchpopup/popup_general';
53
- const POPUP_CAN_CANCEL = 'ebizmarts_abandonedcart/catchpopup/popup_cancel';
54
- const POPUP_TEXT = 'ebizmarts_abandonedcart/catchpopup/popup_text';
55
- const POPUP_HEADING = 'ebizmarts_abandonedcart/catchpopup/popup_heading';
56
- const POPUP_SUBSCRIPTION = 'ebizmarts_abandonedcart/catchpopup/popup_subscription';
57
- const POPUP_WIDTH = 'ebizmarts_abandonedcart/catchpopup/popup_width';
58
- const POPUP_COOKIE_TIME = 'ebizmarts_abandonedcart/catchpopup/popup_cookie_time';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
  }
27
  const SENDER = "ebizmarts_abandonedcart/general/identity";
28
  const MAXTIMES = "ebizmarts_abandonedcart/general/max";
29
  const MAXTIMES_NUM = 5;
 
 
 
 
 
 
 
 
 
 
30
  const CUSTOMER_GROUPS = "ebizmarts_abandonedcart/general/customer";
31
  const FIRST_SUBJECT = "ebizmarts_abandonedcart/general/subject1";
32
  const SECOND_SUBJECT = "ebizmarts_abandonedcart/general/subject2";
39
  const IN_DAYS = 0;
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";
46
+ const FIRST_DATE = "ebizmarts_abandonedcart/general/firstdate";
47
+ const COUPON_AMOUNT = "ebizmarts_abandonedcart/coupon/discount";
48
+ const COUPON_AUTOMATIC = "ebizmarts_abandonedcart/coupon/automatic";
49
+ const COUPON_CODE = "ebizmarts_abandonedcart/coupon/couponcode";
50
+ const COUPON_EXPIRE = "ebizmarts_abandonedcart/coupon/expire";
51
+ const COUPON_TYPE = "ebizmarts_abandonedcart/coupon/discounttype";
52
+ const COUPON_LENGTH = "ebizmarts_abandonedcart/coupon/length";
53
+ const COUPON_LABEL = "ebizmarts_abandonedcart/coupon/couponlabel";
54
+
55
+
56
+ const ENABLE_POPUP = 'ebizmarts_abandonedcart/emailcatcher/popup_general';
57
+ const POPUP_HEADING = 'ebizmarts_abandonedcart/emailcatcher/popup_heading';
58
+ const POPUP_TEXT = 'ebizmarts_abandonedcart/emailcatcher/popup_text';
59
+ const POPUP_WIDTH = 'ebizmarts_abandonedcart/emailcatcher/popup_width';
60
+ const POPUP_SUBSCRIPTION = 'ebizmarts_abandonedcart/emailcatcher/popup_subscription';
61
+ const POPUP_CAN_CANCEL = 'ebizmarts_abandonedcart/emailcatcher/popup_cancel';
62
+ const POPUP_COOKIE_TIME = 'ebizmarts_abandonedcart/emailcatcher/popup_cookie_time';
63
+ const POPUP_INSIST = 'ebizmarts_abandonedcart/emailcatcher/popup_insist';
64
+ const POPUP_CREATE_COUPON = 'ebizmarts_abandonedcart/emailcatcher/popup_coupon';
65
+ const POPUP_COUPON_MANDRILL_TAG = 'ebizmarts_abandonedcart/emailcatcher/popup_coupon_mandrill_tag';
66
+ const POPUP_COUPON_MAIL_SUBJECT = 'ebizmarts_abandonedcart/emailcatcher/popup_coupon_mail_subject';
67
+ const POPUP_COUPON_TEMPLATE_XML_PATH = 'ebizmarts_abandonedcart/emailcatcher/popup_coupon_template';
68
+ const POPUP_COUPON_AUTOMATIC = 'ebizmarts_abandonedcart/emailcatcher/popup_automatic';
69
+ const POPUP_COUPON_CODE = 'ebizmarts_abandonedcart/emailcatcher/popup_coupon_code';
70
+ const POPUP_COUPON_EXPIRE = 'ebizmarts_abandonedcart/emailcatcher/popup_expire';
71
+ const POPUP_COUPON_LENGTH = 'ebizmarts_abandonedcart/emailcatcher/popup_length';
72
+ const POPUP_COUPON_DISCOUNTTYPE = 'ebizmarts_abandonedcart/emailcatcher/popup_discounttype';
73
+ const POPUP_COUPON_DISCOUNT = 'ebizmarts_abandonedcart/emailcatcher/popup_discount';
74
+ const POPUP_COUPON_LABEL = 'ebizmarts_abandonedcart/emailcatcher/popup_couponlabel';
75
+
76
  }
app/code/community/Ebizmarts/AbandonedCart/Model/Cron.php CHANGED
@@ -24,6 +24,9 @@ class Ebizmarts_AbandonedCart_Model_Cron
24
  if(Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::ACTIVE,$storeid)) {
25
  $this->_proccess($storeid);
26
  }
 
 
 
27
  }
28
  }
29
 
@@ -37,30 +40,37 @@ class Ebizmarts_AbandonedCart_Model_Cron
37
  }
38
 
39
  /**
40
- * @param $store
41
  */
42
- protected function _proccess($store)
43
  {
44
- //Mage::app()->setCurrentStore($store);
45
  Mage::unregister('_singleton/core/design_package' );
46
  Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);
47
- Mage::getSingleton('core/design_package' )->setStore($store);
48
 
49
  $adapter = Mage::getSingleton('core/resource')->getConnection('sales_read');
50
  $days = array(
51
- 0 => Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::DAYS_1, $store),
52
- 1 => Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::DAYS_2, $store),
53
- 2 => Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::DAYS_3, $store),
54
- 3 => Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::DAYS_4, $store),
55
- 4 => Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::DAYS_5, $store)
56
  );
57
- $maxtimes = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::MAXTIMES, $store)+1;
58
- $sendcoupondays = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::COUPON_DAYS, $store);
59
- $sendcoupon = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::SEND_COUPON, $store);
60
- $firstdate = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::FIRST_DATE, $store);
61
- $unit = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::UNIT, $store);
62
- $customergroups = explode(",",Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::CUSTOMER_GROUPS, $store));
63
- $mandrillTag = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::MANDRILL_TAG, $store)."_$store";
 
 
 
 
 
 
 
64
 
65
  // iterates one time for each mail number
66
  for($run=0;$run<$maxtimes;$run++){
@@ -87,8 +97,8 @@ class Ebizmarts_AbandonedCart_Model_Cron
87
  $collection = Mage::getResourceModel('reports/quote_collection');
88
  $collection->addFieldToFilter('items_count', array('neq' => '0'))
89
  ->addFieldToFilter('main_table.is_active', '1')
90
- ->addFieldToFilter('main_table.store_id',array('eq'=>$store))
91
- ->addSubtotal($store)
92
  ->setOrder('updated_at');
93
 
94
  $collection->addFieldToFilter('main_table.converted_at', array(array('null'=>true),$this->_getSuggestedZeroDate()))
@@ -104,7 +114,7 @@ class Ebizmarts_AbandonedCart_Model_Cron
104
  foreach($collection as $quote) {
105
  foreach ($quote->getAllVisibleItems() as $item) {
106
  $removeFromQuote = false;
107
- $product = Mage::getModel('catalog/product')->load($item->getProductId());
108
  if (!$product || $product->getStatus() == Mage_Catalog_Model_Product_Status::STATUS_DISABLED)
109
  {
110
  Mage::log('AbandonedCart; ' . $product->getSku() .' is no longer present or enabled; remove from quote ' . $quote->getId() . ' for email',null,'Ebizmarts_AbandonedCart.log');
@@ -143,8 +153,8 @@ class Ebizmarts_AbandonedCart_Model_Cron
143
 
144
  if (
145
  (
146
- $stock->getManageStock() ||
147
- ($stock->getUseConfigManageStock() && Mage::getStoreConfig('cataloginventory/item_options/manage_stock', $quote->getStoreId()))
148
  )
149
  && $stockQty < $item->getQty())
150
  {
@@ -176,20 +186,20 @@ class Ebizmarts_AbandonedCart_Model_Cron
176
  //$url = Mage::getBaseUrl('web').'ebizmarts_abandonedcart/abandoned/loadquote?id='.$quote->getEntityId();
177
  //srand((double)microtime()*1000000);
178
  $token = md5(rand(0,9999999));
179
- $url = Mage::getModel('core/url')->setStore($store)->getUrl('',array('_nosid'=>true)).'ebizmarts_abandonedcart/abandoned/loadquote?id='.$quote->getEntityId().'&token='.$token;
180
 
181
  $data = array('AbandonedURL'=>$url, 'AbandonedDate' => $quote->getUpdatedAt());
182
 
183
  // send email
184
- $senderid = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::SENDER, $store);
185
- $sender = array('name'=>Mage::getStoreConfig("trans_email/ident_$senderid/name",$store), 'email'=> Mage::getStoreConfig("trans_email/ident_$senderid/email",$store));
186
 
187
  $email = $quote->getCustomerEmail();
188
 
189
- if($this->_isSubscribed($email,'abandonedcart',$store)) {
190
  $name = $quote->getCustomerFirstname() . ' ' . $quote->getCustomerLastname();
191
  $quote2 = Mage::getModel('sales/quote')->loadByIdWithoutStore($quote->getId());
192
- $unsubscribeUrl = Mage::getModel('core/url')->setStore($store)->getUrl() . 'ebizautoresponder/autoresponder/unsubscribe?list=abandonedcart&email=' . $email . '&store=' . $store;
193
  $couponcode = '';
194
 
195
  //if hour is set for first run calculates hours since cart was created else calculates days
@@ -203,17 +213,19 @@ class Ebizmarts_AbandonedCart_Model_Cron
203
  // if days have passed proceed to send mail
204
  if ($updatedAtDiff >= $diff) {
205
 
206
- $mailsubject = $this->_getMailSubject($run, $store);
207
- $templateId = $this->_getTemplateId($run, $store);
208
  if ($sendcoupon && $run + 1 == $sendcoupondays) {
209
  //$templateId = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::EMAIL_TEMPLATE_XML_PATH);
210
  // create a new coupon
211
  if (Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::COUPON_AUTOMATIC) == 2) {
212
- list($couponcode, $discount, $toDate) = $this->_createNewCoupon($store, $email);
 
213
  $vars = array('quote' => $quote, 'url' => $url, 'couponcode' => $couponcode, 'discount' => $discount,
214
  'todate' => $toDate, 'name' => $name, 'tags' => array($mandrillTag), 'unsubscribeurl' => $unsubscribeUrl);
215
  } else {
216
  $couponcode = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::COUPON_CODE);
 
217
  $vars = array('quote' => $quote, 'url' => $url, 'couponcode' => $couponcode, 'name' => $name, 'tags' => array($mandrillTag), 'unsubscribeurl' => $unsubscribeUrl);
218
  }
219
  } else {
@@ -223,33 +235,68 @@ class Ebizmarts_AbandonedCart_Model_Cron
223
  }
224
  Mage::app()->getTranslator()->init('frontend', true);
225
  $translate = Mage::getSingleton('core/translate');
226
- $mail = Mage::getModel('core/email_template')->setTemplateSubject($mailsubject)->sendTransactional($templateId, $sender, $email, $name, $vars, $store);
227
  $translate->setTranslateInLine(true);
228
  $quote2->setEbizmartsAbandonedcartCounter($quote2->getEbizmartsAbandonedcartCounter() + 1);
229
  $quote2->setEbizmartsAbandonedcartToken($token);
230
  $quote2->save();
231
- Mage::helper('ebizmarts_abandonedcart')->saveMail('abandoned cart', $email, $name, $couponcode, $store);
232
  }
233
  }
234
  }
235
  }
236
  }
237
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
238
  /**
239
  * @param $store
240
  * @param $email
241
  * @return array
242
  */
243
- protected function _createNewCoupon($store,$email)
244
  {
245
  $collection = Mage::getModel('salesrule/rule')->getCollection()
246
  ->addFieldToFilter('name', array('like'=>'Abandoned coupon ' . $email));
247
  if (!count($collection)) {
248
- $couponamount = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::COUPON_AMOUNT, $store);
249
- $couponexpiredays = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::COUPON_EXPIRE, $store);
250
- $coupontype = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::COUPON_TYPE, $store);
251
- $couponlength = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::COUPON_LENGTH, $store);
252
- $couponlabel = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::COUPON_LABEL, $store);
253
  $websiteid = Mage::getModel('core/store')->load($store)->getWebsiteId();
254
 
255
  $fromDate = date("Y-m-d");
@@ -298,9 +345,9 @@ class Ebizmarts_AbandonedCart_Model_Cron
298
  }else{
299
  $coupon = $collection->getFirstItem();
300
  if ($coupon->getSimpleAction() == 'cart_fixed') {
301
- $discount = Mage::app()->getStore($store)->getCurrentCurrencyCode() . $coupon->getDiscountAmount();
302
  } else{
303
- $discount = $coupon->getDiscountAmount();
304
  }
305
  return array($coupon->getCode(), $discount, $coupon->getToDate());
306
  }
24
  if(Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::ACTIVE,$storeid)) {
25
  $this->_proccess($storeid);
26
  }
27
+ if(Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::ENABLE_POPUP, $storeid) && Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::POPUP_CREATE_COUPON, $storeid)){
28
+ $this->_sendPopupCoupon($storeid);
29
+ }
30
  }
31
  }
32
 
40
  }
41
 
42
  /**
43
+ * @param $storeId
44
  */
45
+ protected function _proccess($storeId)
46
  {
47
+ //Mage::app()->setCurrentStore($storeId);
48
  Mage::unregister('_singleton/core/design_package' );
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),
55
+ 1 => Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::DAYS_2, $storeId),
56
+ 2 => Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::DAYS_3, $storeId),
57
+ 3 => Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::DAYS_4, $storeId),
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);
70
+ $couponexpiredays = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::COUPON_EXPIRE, $storeId);
71
+ $coupontype = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::COUPON_TYPE, $storeId);
72
+ $couponlength = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::COUPON_LENGTH, $storeId);
73
+ $couponlabel = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::COUPON_LABEL, $storeId);
74
 
75
  // iterates one time for each mail number
76
  for($run=0;$run<$maxtimes;$run++){
97
  $collection = Mage::getResourceModel('reports/quote_collection');
98
  $collection->addFieldToFilter('items_count', array('neq' => '0'))
99
  ->addFieldToFilter('main_table.is_active', '1')
100
+ ->addFieldToFilter('main_table.store_id',array('eq'=>$storeId))
101
+ ->addSubtotal($storeId)
102
  ->setOrder('updated_at');
103
 
104
  $collection->addFieldToFilter('main_table.converted_at', array(array('null'=>true),$this->_getSuggestedZeroDate()))
114
  foreach($collection as $quote) {
115
  foreach ($quote->getAllVisibleItems() as $item) {
116
  $removeFromQuote = false;
117
+ $product = Mage::getModel('catalog/product')->setStoreId($storeId)->load($item->getProductId());
118
  if (!$product || $product->getStatus() == Mage_Catalog_Model_Product_Status::STATUS_DISABLED)
119
  {
120
  Mage::log('AbandonedCart; ' . $product->getSku() .' is no longer present or enabled; remove from quote ' . $quote->getId() . ' for email',null,'Ebizmarts_AbandonedCart.log');
153
 
154
  if (
155
  (
156
+ is_object($stock) && ($stock->getManageStock() ||
157
+ ($stock->getUseConfigManageStock() && Mage::getStoreConfig('cataloginventory/item_options/manage_stock', $quote->getStoreId())))
158
  )
159
  && $stockQty < $item->getQty())
160
  {
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
 
193
  // send email
194
+ $senderid = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::SENDER, $storeId);
195
+ $sender = array('name'=>Mage::getStoreConfig("trans_email/ident_$senderid/name",$storeId), 'email'=> Mage::getStoreConfig("trans_email/ident_$senderid/email",$storeId));
196
 
197
  $email = $quote->getCustomerEmail();
198
 
199
+ if(Mage::helper('ebizmarts_autoresponder')->isSubscribed($email,'abandonedcart',$storeId)) {
200
  $name = $quote->getCustomerFirstname() . ' ' . $quote->getCustomerLastname();
201
  $quote2 = Mage::getModel('sales/quote')->loadByIdWithoutStore($quote->getId());
202
+ $unsubscribeUrl = Mage::getModel('core/url')->setStore($storeId)->getUrl() . 'ebizautoresponder/autoresponder/unsubscribe?list=abandonedcart&email=' . $email . '&store=' . $storeId;
203
  $couponcode = '';
204
 
205
  //if hour is set for first run calculates hours since cart was created else calculates days
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
221
  if (Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::COUPON_AUTOMATIC) == 2) {
222
+ list($couponcode, $discount, $toDate) = $this->_createNewCoupon($storeId, $email, $couponamount, $couponexpiredays, $coupontype, $couponlength, $couponlabel);
223
+ $url .= '&coupon='.$couponcode;
224
  $vars = array('quote' => $quote, 'url' => $url, 'couponcode' => $couponcode, 'discount' => $discount,
225
  'todate' => $toDate, 'name' => $name, 'tags' => array($mandrillTag), 'unsubscribeurl' => $unsubscribeUrl);
226
  } else {
227
  $couponcode = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::COUPON_CODE);
228
+ $url .= '&coupon='.$couponcode;
229
  $vars = array('quote' => $quote, 'url' => $url, 'couponcode' => $couponcode, 'name' => $name, 'tags' => array($mandrillTag), 'unsubscribeurl' => $unsubscribeUrl);
230
  }
231
  } else {
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);
239
  $translate->setTranslateInLine(true);
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
  }
246
  }
247
  }
248
  }
249
 
250
+ protected function _sendPopupCoupon($storeId)
251
+ {
252
+ $templateId = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::POPUP_COUPON_TEMPLATE_XML_PATH, $storeId);
253
+ $mailSubject = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::POPUP_COUPON_MAIL_SUBJECT, $storeId);
254
+ $tags = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::POPUP_COUPON_MANDRILL_TAG, $storeId) . "_$storeId";
255
+ $senderId = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::SENDER, $storeId);
256
+ $sender = array('name' => Mage::getStoreConfig("trans_email/ident_$senderId/name", $storeId), 'email' => Mage::getStoreConfig("trans_email/ident_$senderId/email", $storeId));
257
+
258
+
259
+ //coupon vars
260
+ $couponamount = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::POPUP_COUPON_DISCOUNT, $storeId);
261
+ $couponexpiredays = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::POPUP_COUPON_EXPIRE, $storeId);
262
+ $coupontype = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::POPUP_COUPON_DISCOUNTTYPE, $storeId);
263
+ $couponlength = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::POPUP_COUPON_LENGTH, $storeId);
264
+ $couponlabel = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::POPUP_COUPON_LABEL, $storeId);
265
+
266
+ $collection = Mage::getModel('ebizmarts_abandonedcart/popup')->getCollection()
267
+ ->addFieldToFilter('email', array('neq'=>''))
268
+ ->addFieldToFilter('processed', array('eq'=>0));
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) {
275
+ list($couponcode, $discount, $toDate) = $this->_createNewCoupon($storeId, $email, $couponamount, $couponexpiredays, $coupontype, $couponlength, $couponlabel);
276
+ $vars = array('couponcode' => $couponcode, 'discount' => $discount, 'todate' => $toDate, 'name' => $pseudoName, 'tags' => array($tags));
277
+ } else {
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();
284
+ $translate->setTranslateInLine(true);
285
+ Mage::helper('ebizmarts_abandonedcart')->saveMail('review coupon', $email, $pseudoName, $couponcode, $storeId);
286
+ }
287
+ }
288
+
289
  /**
290
  * @param $store
291
  * @param $email
292
  * @return array
293
  */
294
+ protected function _createNewCoupon($store, $email, $couponamount, $couponexpiredays, $coupontype, $couponlength, $couponlabel)
295
  {
296
  $collection = Mage::getModel('salesrule/rule')->getCollection()
297
  ->addFieldToFilter('name', array('like'=>'Abandoned coupon ' . $email));
298
  if (!count($collection)) {
299
+
 
 
 
 
300
  $websiteid = Mage::getModel('core/store')->load($store)->getWebsiteId();
301
 
302
  $fromDate = date("Y-m-d");
345
  }else{
346
  $coupon = $collection->getFirstItem();
347
  if ($coupon->getSimpleAction() == 'cart_fixed') {
348
+ $discount = Mage::app()->getStore($store)->getCurrentCurrencyCode() . ($coupon->getDiscountAmount()+0);
349
  } else{
350
+ $discount = $coupon->getDiscountAmount()+0;
351
  }
352
  return array($coupon->getCode(), $discount, $coupon->getToDate());
353
  }
app/code/community/Ebizmarts/AbandonedCart/Model/EventObserver.php CHANGED
@@ -33,15 +33,15 @@ class Ebizmarts_AbandonedCart_Model_EventObserver
33
  }
34
 
35
  public function loadCustomer(Varien_Event_Observer $observer){
 
36
  if(!Mage::getSingleton('customer/session')->isLoggedIn()) {
37
- $quote = $observer->getEvent()->getQuote();
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){
43
- $quote->setCustomerEmail($email);
44
- $quote->save();
45
  }
46
  }
47
  }
33
  }
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){
43
+ $quote->setCustomerEmail($email)
44
+ ->save();
45
  }
46
  }
47
  }
app/code/community/Ebizmarts/AbandonedCart/Model/Popup.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_Popup extends Mage_Core_Model_Abstract
12
+ {
13
+ public function _construct() {
14
+ $this->_init('ebizmarts_abandonedcart/popup');
15
+ }
16
+
17
+ }
app/code/community/Ebizmarts/AbandonedCart/Model/Resource/Popup.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_Popup extends Mage_Core_Model_Mysql4_Abstract
12
+ {
13
+ public function _construct()
14
+ {
15
+ $this->_init('ebizmarts_abandonedcart/popup','id');
16
+ }
17
+
18
+ }
app/code/community/Ebizmarts/AbandonedCart/Model/Resource/Popup/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_Popup_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
12
+ {
13
+ protected function _construct()
14
+ {
15
+ $this->_init('ebizmarts_abandonedcart/popup');
16
+ }
17
+ }
18
+
app/code/community/Ebizmarts/AbandonedCart/controllers/AbandonedController.php CHANGED
@@ -24,9 +24,14 @@ class Ebizmarts_AbandonedCart_AbandonedController extends Mage_Checkout_CartCont
24
  // Mage::log($params['id']);
25
 
26
  $quote = Mage::getModel('sales/quote')->load($params['id']);
27
- if(!isset($params['token']) || (isset($params['token'])&&$params['token']!=$quote->getEbizmartsAbandonedcartToken())) {
 
 
 
 
 
28
  Mage::getSingleton('customer/session')->addNotice("Your token cart is incorrect");
29
- $this->_redirect('/');
30
  }
31
  else {
32
  $url = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::PAGE,$quote->getStoreId());
24
  // Mage::log($params['id']);
25
 
26
  $quote = Mage::getModel('sales/quote')->load($params['id']);
27
+ $url = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::PAGE,$quote->getStoreId());
28
+ if(isset($params['coupon'])){
29
+ $quote->setCouponCode($params['coupon']);
30
+ $quote->save();
31
+ }
32
+ if((!isset($params['token']) || (isset($params['token'])&&$params['token']!=$quote->getEbizmartsAbandonedcartToken())) && Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::AUTOLOGIN, $quote->getStoreId())) {
33
  Mage::getSingleton('customer/session')->addNotice("Your token cart is incorrect");
34
+ $this->_redirect($url);
35
  }
36
  else {
37
  $url = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::PAGE,$quote->getStoreId());
app/code/community/Ebizmarts/AbandonedCart/etc/config.xml CHANGED
@@ -10,7 +10,7 @@
10
  <config>
11
  <modules>
12
  <Ebizmarts_AbandonedCart>
13
- <version>0.1.29</version>
14
  </Ebizmarts_AbandonedCart>
15
  </modules>
16
  <global>
@@ -21,42 +21,31 @@
21
  <file>ebizmarts/abandonedcart/abandoned_cart_mail_1.html</file>
22
  <type>html</type>
23
  </ebizmarts_abandonedcart_general_template1>
24
- </email>
25
- </template>
26
- <template>
27
- <email>
28
  <ebizmarts_abandonedcart_general_template2 translate="label" module="ebizmarts_abandonedcart">
29
  <label>Second Abandoned Cart Mail</label>
30
  <file>ebizmarts/abandonedcart/abandoned_cart_mail_2.html</file>
31
  <type>html</type>
32
  </ebizmarts_abandonedcart_general_template2>
33
- </email>
34
- </template>
35
- <template>
36
- <email>
37
  <ebizmarts_abandonedcart_general_template3 translate="label" module="ebizmarts_abandonedcart">
38
  <label>Third Abandoned Cart Mail</label>
39
  <file>ebizmarts/abandonedcart/abandoned_cart_mail_3.html</file>
40
  <type>html</type>
41
  </ebizmarts_abandonedcart_general_template3>
42
- </email>
43
- </template>
44
- <template>
45
- <email>
46
  <ebizmarts_abandonedcart_general_template4 translate="label" module="ebizmarts_abandonedcart">
47
  <label>Fourth Abandoned Cart Mail</label>
48
  <file>ebizmarts/abandonedcart/abandoned_cart_mail_generic.html</file>
49
  <type>html</type>
50
  </ebizmarts_abandonedcart_general_template4>
51
- </email>
52
- </template>
53
- <template>
54
- <email>
55
  <ebizmarts_abandonedcart_general_template5 translate="label" module="ebizmarts_abandonedcart">
56
  <label>Fifth Abandoned Cart Mail</label>
57
  <file>ebizmarts/abandonedcart/abandoned_cart_mail_generic.html</file>
58
  <type>html</type>
59
  </ebizmarts_abandonedcart_general_template5>
 
 
 
 
 
60
  </email>
61
  </template>
62
  <ebizmarts_abandonedcart>
@@ -74,6 +63,9 @@
74
  <mailssent>
75
  <table>magemonkey_mails_sent</table>
76
  </mailssent>
 
 
 
77
  </entities>
78
  </ebizmarts_abandonedcart_resource>
79
  </models>
@@ -156,7 +148,6 @@
156
  </admin_system_config_changed_section_ebizmarts_abandonedcart>
157
  </events>
158
  </adminhtml>
159
-
160
  <frontend>
161
  <routers>
162
  <ebizmarts_abandonedcart>
@@ -174,6 +165,15 @@
174
  </ebizmarts_abandonedcart>
175
  </updates>
176
  </layout>
 
 
 
 
 
 
 
 
 
177
  </frontend>
178
  <crontab>
179
  <jobs>
@@ -207,15 +207,17 @@
207
  <autologin>0</autologin>
208
  <page>checkout/cart</page>
209
  </general>
210
- <catchpopup>
211
- <popup_general>1</popup_general>
212
  <popup_cancel>1</popup_cancel>
213
  <popup_subscription>1</popup_subscription>
214
- <popup_heading>Send us your email!</popup_heading>
215
- <popup_text>Put your email here for us to get to know you and personalize your service.</popup_text>
216
  <popup_width>410</popup_width>
217
  <popup_cookie_time>1</popup_cookie_time>
218
- </catchpopup>
 
 
 
219
  </ebizmarts_abandonedcart>
220
  </default>
221
  </config>
10
  <config>
11
  <modules>
12
  <Ebizmarts_AbandonedCart>
13
+ <version>0.1.30</version>
14
  </Ebizmarts_AbandonedCart>
15
  </modules>
16
  <global>
21
  <file>ebizmarts/abandonedcart/abandoned_cart_mail_1.html</file>
22
  <type>html</type>
23
  </ebizmarts_abandonedcart_general_template1>
 
 
 
 
24
  <ebizmarts_abandonedcart_general_template2 translate="label" module="ebizmarts_abandonedcart">
25
  <label>Second Abandoned Cart Mail</label>
26
  <file>ebizmarts/abandonedcart/abandoned_cart_mail_2.html</file>
27
  <type>html</type>
28
  </ebizmarts_abandonedcart_general_template2>
 
 
 
 
29
  <ebizmarts_abandonedcart_general_template3 translate="label" module="ebizmarts_abandonedcart">
30
  <label>Third Abandoned Cart Mail</label>
31
  <file>ebizmarts/abandonedcart/abandoned_cart_mail_3.html</file>
32
  <type>html</type>
33
  </ebizmarts_abandonedcart_general_template3>
 
 
 
 
34
  <ebizmarts_abandonedcart_general_template4 translate="label" module="ebizmarts_abandonedcart">
35
  <label>Fourth Abandoned Cart Mail</label>
36
  <file>ebizmarts/abandonedcart/abandoned_cart_mail_generic.html</file>
37
  <type>html</type>
38
  </ebizmarts_abandonedcart_general_template4>
 
 
 
 
39
  <ebizmarts_abandonedcart_general_template5 translate="label" module="ebizmarts_abandonedcart">
40
  <label>Fifth Abandoned Cart Mail</label>
41
  <file>ebizmarts/abandonedcart/abandoned_cart_mail_generic.html</file>
42
  <type>html</type>
43
  </ebizmarts_abandonedcart_general_template5>
44
+ <ebizmarts_abandonedcart_emailcatcher_popup_coupon_template>
45
+ <label>Pop up Coupon Email</label>
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>
63
  <mailssent>
64
  <table>magemonkey_mails_sent</table>
65
  </mailssent>
66
+ <popup>
67
+ <table>ebizmarts_abandonedcart_popup</table>
68
+ </popup>
69
  </entities>
70
  </ebizmarts_abandonedcart_resource>
71
  </models>
148
  </admin_system_config_changed_section_ebizmarts_abandonedcart>
149
  </events>
150
  </adminhtml>
 
151
  <frontend>
152
  <routers>
153
  <ebizmarts_abandonedcart>
165
  </ebizmarts_abandonedcart>
166
  </updates>
167
  </layout>
168
+ <translate>
169
+ <modules>
170
+ <Ebizmarts_AbandonedCart>
171
+ <files>
172
+ <default>Ebizmarts_AbandonedCart.csv</default>
173
+ </files>
174
+ </Ebizmarts_AbandonedCart>
175
+ </modules>
176
+ </translate>
177
  </frontend>
178
  <crontab>
179
  <jobs>
207
  <autologin>0</autologin>
208
  <page>checkout/cart</page>
209
  </general>
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>
218
+ <popup_coupon_mandrill_tag>popup_coupon</popup_coupon_mandrill_tag>
219
+ <popup_coupon_mail_subject>You won a coupon!</popup_coupon_mail_subject>
220
+ </emailcatcher>
221
  </ebizmarts_abandonedcart>
222
  </default>
223
  </config>
app/code/community/Ebizmarts/AbandonedCart/etc/system.xml CHANGED
@@ -66,7 +66,6 @@
66
  <active>1</active>
67
  </depends>
68
  </firstdate>
69
-
70
  <identity translate="label">
71
  <label>Sender</label>
72
  <frontend_type>select</frontend_type>
@@ -373,233 +372,386 @@
373
 
374
  </fields>
375
  </general>
376
- <catchpopup>
377
- <label>Catch email</label>
378
- <sort_order>50</sort_order>
379
  <frontend_type>text</frontend_type>
380
  <show_in_default>1</show_in_default>
381
  <show_in_website>1</show_in_website>
382
  <show_in_store>1</show_in_store>
383
  <fields>
384
- <popup_general translate="label comment">
385
- <label>Catch Email On Home Page Popup</label>
386
  <frontend_type>select</frontend_type>
387
  <source_model>adminhtml/system_config_source_yesno</source_model>
388
- <sort_order>55</sort_order>
389
  <show_in_default>1</show_in_default>
390
  <show_in_website>1</show_in_website>
391
  <show_in_store>1</show_in_store>
392
- <comment><![CDATA[Create popup on hompage asking for customer email to use later on Abandoned Cart mailing.]]></comment>
393
- </popup_general>
394
- <popup_cancel translate="label comment">
395
- <label>Customer can close Popup</label>
 
 
 
 
 
 
 
 
 
 
 
 
396
  <frontend_type>select</frontend_type>
397
- <source_model>adminhtml/system_config_source_yesno</source_model>
398
- <sort_order>60</sort_order>
399
  <show_in_default>1</show_in_default>
400
  <show_in_website>1</show_in_website>
401
  <show_in_store>1</show_in_store>
402
- <comment><![CDATA[Popup can be closed without giving an email.]]></comment>
403
  <depends>
404
- <popup_general separator=",">1</popup_general>
405
  </depends>
406
- </popup_cancel>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
407
  <popup_heading translate="label comment">
408
  <label>Popup Heading</label>
409
  <frontend_type>text</frontend_type>
410
- <sort_order>65</sort_order>
411
  <show_in_default>1</show_in_default>
412
  <show_in_website>1</show_in_website>
413
  <show_in_store>1</show_in_store>
414
  <can_be_empty>1</can_be_empty>
415
  <comment><![CDATA[This field can be empty.]]></comment>
416
  <depends>
417
- <popup_general separator=",">1</popup_general>
418
  </depends>
419
  </popup_heading>
420
  <popup_text translate="label comment">
421
  <label>Popup Message</label>
422
  <frontend_type>textarea</frontend_type>
423
- <sort_order>66</sort_order>
424
  <show_in_default>1</show_in_default>
425
  <show_in_website>1</show_in_website>
426
  <show_in_store>1</show_in_store>
427
  <can_be_empty>1</can_be_empty>
428
  <comment><![CDATA[This field can be empty.]]></comment>
429
  <depends>
430
- <popup_general separator=",">1</popup_general>
431
  </depends>
432
  </popup_text>
433
  <popup_width translate="label comment">
434
  <label>Popup Width</label>
435
  <frontend_type>text</frontend_type>
436
- <sort_order>67</sort_order>
437
  <show_in_default>1</show_in_default>
438
  <show_in_website>1</show_in_website>
439
  <show_in_store>1</show_in_store>
440
  <can_be_empty>1</can_be_empty>
441
  <comment><![CDATA[The width is in pixels.]]></comment>
442
  <depends>
443
- <popup_general separator=",">1</popup_general>
444
  </depends>
445
  </popup_width>
446
  <popup_subscription translate="label comment">
447
  <label>Subscribe customer</label>
448
  <frontend_type>select</frontend_type>
449
  <source_model>adminhtml/system_config_source_yesno</source_model>
450
- <sort_order>68</sort_order>
451
  <show_in_default>1</show_in_default>
452
  <show_in_website>1</show_in_website>
453
  <show_in_store>1</show_in_store>
454
  <comment><![CDATA[When email confirmed on popup subscribe customer to newsletter.]]></comment>
455
  <depends>
456
- <popup_general separator=",">1</popup_general>
457
  </depends>
458
  </popup_subscription>
 
 
 
 
 
 
 
 
 
 
 
 
 
459
  <popup_cookie_time translate="label comment">
460
  <label>When popup cancelled show again after</label>
461
  <frontend_type>text</frontend_type>
462
- <sort_order>69</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>
466
  <comment><![CDATA[This field is in days.]]></comment>
467
  <depends>
468
- <popup_general separator=",">1</popup_general>
469
- <popup_cancel separator=",">1</popup_cancel>
470
  </depends>
471
  </popup_cookie_time>
472
- </fields>
473
- </catchpopup>
474
- <coupon>
475
- <label>Coupon</label>
476
- <sort_order>99</sort_order>
477
- <frontend_type>text</frontend_type>
478
- <show_in_default>1</show_in_default>
479
- <show_in_website>1</show_in_website>
480
- <show_in_store>1</show_in_store>
481
- <fields>
482
- <create translate="label">
 
 
 
483
  <label>Create Coupon?</label>
484
  <frontend_type>select</frontend_type>
485
  <source_model>adminhtml/system_config_source_yesno</source_model>
486
- <sort_order>100</sort_order>
487
  <show_in_default>1</show_in_default>
488
  <show_in_website>1</show_in_website>
489
  <show_in_store>1</show_in_store>
490
- </create>
491
- <sendon translate="label">
492
- <label>On email number?</label>
493
  <frontend_type>text</frontend_type>
494
- <sort_order>110</sort_order>
495
  <show_in_default>1</show_in_default>
496
  <show_in_website>1</show_in_website>
497
  <show_in_store>1</show_in_store>
498
- <can_be_empty>0</can_be_empty>
499
- <comment><![CDATA[The coupon will be created on the email number]]></comment>
500
  <depends>
501
- <create>1</create>
502
  </depends>
503
- </sendon>
504
- <automatic translate="label">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
505
  <label>Option</label>
506
  <frontend_type>select</frontend_type>
507
  <source_model>ebizmarts_abandonedcart/system_config_automatic</source_model>
508
- <sort_order>115</sort_order>
509
  <show_in_default>1</show_in_default>
510
  <show_in_website>1</show_in_website>
511
  <show_in_store>1</show_in_store>
512
  <depends>
513
- <create>1</create>
514
  </depends>
515
- </automatic>
516
- <couponcode>
517
  <label>Coupon Code</label>
518
  <frontend_type>text</frontend_type>
519
- <sort_order>120</sort_order>
520
  <show_in_default>1</show_in_default>
521
  <show_in_website>1</show_in_website>
522
  <show_in_store>1</show_in_store>
523
  <can_be_empty>0</can_be_empty>
524
- <comment><![CDATA[The code of an existing coupon]]></comment>
525
  <depends>
526
- <create>1</create>
527
- <automatic>1</automatic>
528
  </depends>
529
- </couponcode>
530
- <expire>
531
- <label>Expire on</label>
532
  <frontend_type>text</frontend_type>
533
- <sort_order>120</sort_order>
534
  <show_in_default>1</show_in_default>
535
  <show_in_website>1</show_in_website>
536
  <show_in_store>1</show_in_store>
537
  <can_be_empty>0</can_be_empty>
538
- <comment><![CDATA[The coupon expiration in days]]></comment>
539
  <depends>
540
- <create>1</create>
541
- <automatic>2</automatic>
542
  </depends>
543
- </expire>
544
- <length>
545
  <label>Coupon length</label>
546
  <frontend_type>text</frontend_type>
547
- <sort_order>130</sort_order>
548
  <show_in_default>1</show_in_default>
549
  <show_in_website>1</show_in_website>
550
  <show_in_store>1</show_in_store>
551
  <can_be_empty>0</can_be_empty>
552
- <!--comment><![CDATA[The coupon expiration in days]]></comment-->
553
  <depends>
554
- <create>1</create>
555
- <automatic>2</automatic>
556
  </depends>
557
- </length>
558
- <discounttype>
559
  <label>Discount type</label>
560
  <frontend_type>select</frontend_type>
561
  <source_model>ebizmarts_abandonedcart/system_config_discounttype</source_model>
562
- <sort_order>140</sort_order>
563
  <show_in_default>1</show_in_default>
564
  <show_in_website>1</show_in_website>
565
  <show_in_store>1</show_in_store>
566
  <can_be_empty>0</can_be_empty>
567
- <comment><![CDATA[Select percentage or fixed discount]]></comment>
568
  <depends>
569
- <create>1</create>
570
- <automatic>2</automatic>
571
  </depends>
572
- </discounttype>
573
- <discount>
574
  <label>Discount amount</label>
575
  <frontend_type>text</frontend_type>
576
- <sort_order>150</sort_order>
577
  <show_in_default>1</show_in_default>
578
  <show_in_website>1</show_in_website>
579
  <show_in_store>1</show_in_store>
580
  <can_be_empty>0</can_be_empty>
581
  <comment><![CDATA[Amount]]></comment>
582
  <depends>
583
- <create>1</create>
584
- <automatic>2</automatic>
585
  </depends>
586
- </discount>
587
- <couponlabel>
588
  <label>Label for coupon</label>
589
  <frontend_type>text</frontend_type>
590
- <sort_order>160</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>
594
  <can_be_empty>0</can_be_empty>
595
  <comment><![CDATA[]]></comment>
596
  <depends>
597
- <create>1</create>
598
- <automatic>2</automatic>
599
  </depends>
600
- </couponlabel>
601
  </fields>
602
- </coupon>
603
  </groups>
604
  </ebizmarts_abandonedcart>
605
  </sections>
66
  <active>1</active>
67
  </depends>
68
  </firstdate>
 
69
  <identity translate="label">
70
  <label>Sender</label>
71
  <frontend_type>select</frontend_type>
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>
381
  <show_in_store>1</show_in_store>
382
  <fields>
383
+ <create translate="label">
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>
391
+ </create>
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>
399
+ <can_be_empty>0</can_be_empty>
400
+ <comment><![CDATA[The coupon will be created on the email number]]></comment>
401
+ <depends>
402
+ <create>1</create>
403
+ </depends>
404
+ </sendon>
405
+ <automatic translate="label">
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>
 
413
  <depends>
414
+ <create>1</create>
415
  </depends>
416
+ </automatic>
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>
424
+ <can_be_empty>0</can_be_empty>
425
+ <comment><![CDATA[The code of an existing coupon]]></comment>
426
+ <depends>
427
+ <create>1</create>
428
+ <automatic>1</automatic>
429
+ </depends>
430
+ </couponcode>
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>
438
+ <can_be_empty>0</can_be_empty>
439
+ <comment><![CDATA[The coupon expiration in days]]></comment>
440
+ <depends>
441
+ <create>1</create>
442
+ <automatic>2</automatic>
443
+ </depends>
444
+ </expire>
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>
452
+ <can_be_empty>0</can_be_empty>
453
+ <!--comment><![CDATA[The coupon expiration in days]]></comment-->
454
+ <depends>
455
+ <create>1</create>
456
+ <automatic>2</automatic>
457
+ </depends>
458
+ </length>
459
+ <discounttype>
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>
467
+ <can_be_empty>0</can_be_empty>
468
+ <comment><![CDATA[Select percentage or fixed discount]]></comment>
469
+ <depends>
470
+ <create>1</create>
471
+ <automatic>2</automatic>
472
+ </depends>
473
+ </discounttype>
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>
481
+ <can_be_empty>0</can_be_empty>
482
+ <comment><![CDATA[Amount]]></comment>
483
+ <depends>
484
+ <create>1</create>
485
+ <automatic>2</automatic>
486
+ </depends>
487
+ </discount>
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>
495
+ <can_be_empty>0</can_be_empty>
496
+ <comment><![CDATA[]]></comment>
497
+ <depends>
498
+ <create>1</create>
499
+ <automatic>2</automatic>
500
+ </depends>
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>
510
+ <show_in_store>1</show_in_store>
511
+ <fields>
512
+ <popup_general translate="label comment">
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>
520
+ <comment><![CDATA[Create popup when customer access the site for the first time to catch email to use later on Abandoned Cart mailing.]]></comment>
521
+ </popup_general>
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>
529
  <can_be_empty>1</can_be_empty>
530
  <comment><![CDATA[This field can be empty.]]></comment>
531
  <depends>
532
+ <popup_general>1</popup_general>
533
  </depends>
534
  </popup_heading>
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>
542
  <can_be_empty>1</can_be_empty>
543
  <comment><![CDATA[This field can be empty.]]></comment>
544
  <depends>
545
+ <popup_general>1</popup_general>
546
  </depends>
547
  </popup_text>
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>
555
  <can_be_empty>1</can_be_empty>
556
  <comment><![CDATA[The width is in pixels.]]></comment>
557
  <depends>
558
+ <popup_general>1</popup_general>
559
  </depends>
560
  </popup_width>
561
  <popup_subscription translate="label comment">
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>
569
  <comment><![CDATA[When email confirmed on popup subscribe customer to newsletter.]]></comment>
570
  <depends>
571
+ <popup_general>1</popup_general>
572
  </depends>
573
  </popup_subscription>
574
+ <popup_cancel translate="label comment">
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>
582
+ <comment><![CDATA[Popup can be closed without giving an email.]]></comment>
583
+ <depends>
584
+ <popup_general>1</popup_general>
585
+ </depends>
586
+ </popup_cancel>
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>
594
  <comment><![CDATA[This field is in days.]]></comment>
595
  <depends>
596
+ <popup_general>1</popup_general>
597
+ <popup_cancel>1</popup_cancel>
598
  </depends>
599
  </popup_cookie_time>
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>
607
+ <comment><![CDATA[If customer doesn't confirm popup, it will be shown this many times each time the customer reload the page.]]></comment>
608
+ <depends>
609
+ <popup_general>1</popup_general>
610
+ <popup_cancel>1</popup_cancel>
611
+ </depends>
612
+ </popup_insist>
613
+ <popup_coupon translate="label">
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>
621
+ </popup_coupon>
622
+ <popup_coupon_mandrill_tag translate="label comment">
623
+ <label>Coupon mail Mandrill tag</label>
624
  <frontend_type>text</frontend_type>
625
+ <sort_order>270</sort_order>
626
  <show_in_default>1</show_in_default>
627
  <show_in_website>1</show_in_website>
628
  <show_in_store>1</show_in_store>
 
 
629
  <depends>
630
+ <popup_coupon>1</popup_coupon>
631
  </depends>
632
+ </popup_coupon_mandrill_tag>
633
+ <popup_coupon_mail_subject translate="label comment">
634
+ <label>Coupon mail Subject</label>
635
+ <frontend_type>text</frontend_type>
636
+ <sort_order>280</sort_order>
637
+ <show_in_default>1</show_in_default>
638
+ <show_in_website>1</show_in_website>
639
+ <show_in_store>1</show_in_store>
640
+ <depends>
641
+ <popup_coupon>1</popup_coupon>
642
+ </depends>
643
+ </popup_coupon_mail_subject>
644
+ <popup_coupon_template translate="label">
645
+ <label>Coupon Email Template</label>
646
+ <frontend_type>select</frontend_type>
647
+ <config_path>ebizmarts_abandonedcart/emailcatcher/popup_coupon_template</config_path>
648
+ <source_model>adminhtml/system_config_source_email_template</source_model>
649
+ <sort_order>290</sort_order>
650
+ <show_in_default>1</show_in_default>
651
+ <show_in_website>1</show_in_website>
652
+ <show_in_store>1</show_in_store>
653
+ <depends>
654
+ <popup_coupon>1</popup_coupon>
655
+ </depends>
656
+ </popup_coupon_template>
657
+ <popup_automatic translate="label">
658
  <label>Option</label>
659
  <frontend_type>select</frontend_type>
660
  <source_model>ebizmarts_abandonedcart/system_config_automatic</source_model>
661
+ <sort_order>310</sort_order>
662
  <show_in_default>1</show_in_default>
663
  <show_in_website>1</show_in_website>
664
  <show_in_store>1</show_in_store>
665
  <depends>
666
+ <popup_coupon>1</popup_coupon>
667
  </depends>
668
+ </popup_automatic>
669
+ <popup_coupon_code>
670
  <label>Coupon Code</label>
671
  <frontend_type>text</frontend_type>
672
+ <sort_order>320</sort_order>
673
  <show_in_default>1</show_in_default>
674
  <show_in_website>1</show_in_website>
675
  <show_in_store>1</show_in_store>
676
  <can_be_empty>0</can_be_empty>
677
+ <comment><![CDATA[Existing coupon code.]]></comment>
678
  <depends>
679
+ <popup_coupon>1</popup_coupon>
680
+ <popup_automatic>1</popup_automatic>
681
  </depends>
682
+ </popup_coupon_code>
683
+ <popup_expire>
684
+ <label>Expires on</label>
685
  <frontend_type>text</frontend_type>
686
+ <sort_order>330</sort_order>
687
  <show_in_default>1</show_in_default>
688
  <show_in_website>1</show_in_website>
689
  <show_in_store>1</show_in_store>
690
  <can_be_empty>0</can_be_empty>
691
+ <comment><![CDATA[Coupon expiration in days.]]></comment>
692
  <depends>
693
+ <popup_coupon>1</popup_coupon>
694
+ <popup_automatic>2</popup_automatic>
695
  </depends>
696
+ </popup_expire>
697
+ <popup_length>
698
  <label>Coupon length</label>
699
  <frontend_type>text</frontend_type>
700
+ <sort_order>340</sort_order>
701
  <show_in_default>1</show_in_default>
702
  <show_in_website>1</show_in_website>
703
  <show_in_store>1</show_in_store>
704
  <can_be_empty>0</can_be_empty>
 
705
  <depends>
706
+ <popup_coupon>1</popup_coupon>
707
+ <popup_automatic>2</popup_automatic>
708
  </depends>
709
+ </popup_length>
710
+ <popup_discounttype>
711
  <label>Discount type</label>
712
  <frontend_type>select</frontend_type>
713
  <source_model>ebizmarts_abandonedcart/system_config_discounttype</source_model>
714
+ <sort_order>350</sort_order>
715
  <show_in_default>1</show_in_default>
716
  <show_in_website>1</show_in_website>
717
  <show_in_store>1</show_in_store>
718
  <can_be_empty>0</can_be_empty>
719
+ <comment><![CDATA[Select percentage or fixed discount.]]></comment>
720
  <depends>
721
+ <popup_coupon>1</popup_coupon>
722
+ <popup_automatic>2</popup_automatic>
723
  </depends>
724
+ </popup_discounttype>
725
+ <popup_discount>
726
  <label>Discount amount</label>
727
  <frontend_type>text</frontend_type>
728
+ <sort_order>360</sort_order>
729
  <show_in_default>1</show_in_default>
730
  <show_in_website>1</show_in_website>
731
  <show_in_store>1</show_in_store>
732
  <can_be_empty>0</can_be_empty>
733
  <comment><![CDATA[Amount]]></comment>
734
  <depends>
735
+ <popup_coupon>1</popup_coupon>
736
+ <popup_automatic>2</popup_automatic>
737
  </depends>
738
+ </popup_discount>
739
+ <popup_couponlabel>
740
  <label>Label for coupon</label>
741
  <frontend_type>text</frontend_type>
742
+ <sort_order>370</sort_order>
743
  <show_in_default>1</show_in_default>
744
  <show_in_website>1</show_in_website>
745
  <show_in_store>1</show_in_store>
746
  <can_be_empty>0</can_be_empty>
747
  <comment><![CDATA[]]></comment>
748
  <depends>
749
+ <popup_coupon>1</popup_coupon>
750
+ <popup_automatic>2</popup_automatic>
751
  </depends>
752
+ </popup_couponlabel>
753
  </fields>
754
+ </emailcatcher>
755
  </groups>
756
  </ebizmarts_abandonedcart>
757
  </sections>
app/code/community/Ebizmarts/AbandonedCart/sql/ebizmarts_abandonedcart_setup/mysql4-upgrade-0.1.29-0.1.30.php ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_popup')}` (
17
+ `id` INT(10) unsigned NOT NULL auto_increment,
18
+ `email` varchar(128),
19
+ `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
20
+ `counter` INT(10),
21
+ `processed` smallint(1) default 0,
22
+ PRIMARY KEY (`id`)
23
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
24
+
25
+ ");
26
+
27
+ $installer->endSetup();
app/code/community/Ebizmarts/Autoresponder/Helper/Data.php CHANGED
@@ -95,4 +95,22 @@ class Ebizmarts_Autoresponder_Helper_Data extends Mage_Core_Helper_Abstract {
95
 
96
  }
97
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
98
  }
95
 
96
  }
97
 
98
+ public function isSetTime($setTime){
99
+ $now = date('H');
100
+ if($now == $setTime){
101
+ return true;
102
+ }
103
+ $this->log('Time set on Autoresponder configuration is different than the current time.');
104
+ return false;
105
+ }
106
+
107
+ public function isSubscribed($email,$list,$storeId)
108
+ {
109
+ $collection = Mage::getModel('ebizmarts_autoresponder/unsubscribe')->getCollection();
110
+ $collection->addFieldtoFilter('main_table.email',array('eq'=>$email))
111
+ ->addFieldtoFilter('main_table.list',array('eq'=>$list))
112
+ ->addFieldtoFilter('main_table.store_id',array('eq'=>$storeId));
113
+ return $collection->getSize() == 0;
114
+ }
115
+
116
  }
app/code/community/Ebizmarts/Autoresponder/Model/Config.php CHANGED
@@ -16,9 +16,12 @@ class Ebizmarts_Autoresponder_Model_Config
16
  const NEWORDER_ACTIVE = 'ebizmarts_autoresponder/neworder/active';
17
  const NEWORDER_DAYS = 'ebizmarts_autoresponder/neworder/days';
18
  const NEWORDER_CUSTOMER_GROUPS = 'ebizmarts_autoresponder/neworder/customer';
 
 
19
  const NEWORDER_TEMPLATE = 'ebizmarts_autoresponder/neworder/template';
20
  const NEWORDER_MANDRILL_TAG = 'ebizmarts_autoresponder/neworder/mandrill-tag';
21
  const NEWORDER_SUBJECT = 'ebizmarts_autoresponder/neworder/subject';
 
22
 
23
  const RELATED_ACTIVE = 'ebizmarts_autoresponder/related/active';
24
  const RELATED_DAYS = 'ebizmarts_autoresponder/related/days';
@@ -28,33 +31,35 @@ class Ebizmarts_Autoresponder_Model_Config
28
  const RELATED_SUBJECT = 'ebizmarts_autoresponder/related/subject';
29
  const RELATED_MAX = 'ebizmarts_autoresponder/related/max-related';
30
  const RELATED_STATUS = 'ebizmarts_autoresponder/related/status';
 
31
 
32
- const REVIEW_ACTIVE = 'ebizmarts_autoresponder/review/active';
33
- const REVIEW_DAYS = 'ebizmarts_autoresponder/review/days';
34
- const REVIEW_CUSTOMER_GROUPS = 'ebizmarts_autoresponder/review/customer';
35
- const REVIEW_TEMPLATE = 'ebizmarts_autoresponder/review/template';
36
- const REVIEW_MANDRILL_TAG = 'ebizmarts_autoresponder/review/mandrill-tag';
37
- const REVIEW_SUBJECT = 'ebizmarts_autoresponder/review/subject';
38
- const REVIEW_STATUS = 'ebizmarts_autoresponder/review/status';
39
- const REVIEW_HAS_COUPON = 'ebizmarts_autoresponder/review/coupon';
40
- const REVIEW_COUPON_CUSTOMER_GROUP = 'ebizmarts_autoresponder/review/customer_coupon';
41
- const REVIEW_COUPON_AUTOMATIC = 'ebizmarts_autoresponder/review/automatic';
42
- const REVIEW_COUPON_CODE = 'ebizmarts_autoresponder/review/coupon_code';
43
- const REVIEW_COUPON_EXPIRE = 'ebizmarts_autoresponder/review/expire';
44
- const REVIEW_COUPON_LENGTH = 'ebizmarts_autoresponder/review/length';
45
- const REVIEW_COUPON_DISCOUNT_TYPE = 'ebizmarts_autoresponder/review/discounttype';
46
- const REVIEW_COUPON_DISCOUNT = 'ebizmarts_autoresponder/review/discount';
47
- const REVIEW_COUPON_LABEL = 'ebizmarts_autoresponder/review/couponlabel';
48
- const REVIEW_COUPON_COUNTER = 'ebizmarts_autoresponder/review/coupon_counter';
49
- const REVIEW_COUPON_GENERAL_QUANTITY = 'ebizmarts_autoresponder/review/coupon_general_quantity';
50
- const REVIEW_COUPON_GENERAL_TYPE = 'ebizmarts_autoresponder/review/coupon_general_type';
51
- const REVIEW_COUPON_SPECIFIC_QUANTITY = 'ebizmarts_autoresponder/review/coupon_specific_quantity';
52
- const REVIEW_COUPON_ORDER_COUNTER = 'ebizmarts_autoresponder/review/coupon_order_counter';
53
- const REVIEW_COUPON_ORDER_ALMOST = 'ebizmarts_autoresponder/review/coupon_order_almost';
54
- const REVIEW_COUPON_ORDER_MAX = 'ebizmarts_autoresponder/review/coupon_order_max';
55
- const REVIEW_COUPON_MANDRILL_TAG = 'ebizmarts_autoresponder/review/coupon_mandrill_tag';
56
- const REVIEW_COUPON_SUBJECT = 'ebizmarts_autoresponder/review/coupon_mail_subject';
57
- const REVIEW_COUPON_EMAIL = 'ebizmarts_autoresponder/review/coupon_template';
 
58
 
59
  const BIRTHDAY_ACTIVE = 'ebizmarts_autoresponder/birthday/active';
60
  const BIRTHDAY_DAYS = 'ebizmarts_autoresponder/birthday/days';
@@ -71,6 +76,7 @@ class Ebizmarts_Autoresponder_Model_Config
71
  const BIRTHDAY_DISCOUNT_TYPE = 'ebizmarts_autoresponder/birthday/discounttype';
72
  const BIRTHDAY_DISCOUNT = 'ebizmarts_autoresponder/birthday/discount';
73
  const BIRTHDAY_COUPON_LABEL = 'ebizmarts_autoresponder/birthday/couponlabel';
 
74
 
75
 
76
  const NOACTIVITY_ACTIVE = 'ebizmarts_autoresponder/noactivity/active';
@@ -79,6 +85,7 @@ class Ebizmarts_Autoresponder_Model_Config
79
  const NOACTIVITY_TEMPLATE = 'ebizmarts_autoresponder/noactivity/template';
80
  const NOACTIVITY_MANDRILL_TAG = 'ebizmarts_autoresponder/noactivity/mandrill-tag';
81
  const NOACTIVITY_SUBJECT = 'ebizmarts_autoresponder/noactivity/subject';
 
82
 
83
  const WISHLIST_ACTIVE = 'ebizmarts_autoresponder/wishlist/active';
84
  const WISHLIST_DAYS = 'ebizmarts_autoresponder/wishlist/days';
@@ -86,6 +93,7 @@ class Ebizmarts_Autoresponder_Model_Config
86
  const WISHLIST_TEMPLATE = 'ebizmarts_autoresponder/wishlist/template';
87
  const WISHLIST_MANDRILL_TAG = 'ebizmarts_autoresponder/wishlist/mandrill-tag';
88
  const WISHLIST_SUBJECT = 'ebizmarts_autoresponder/wishlist/subject';
 
89
 
90
  const VISITED_ACTIVE = 'ebizmarts_autoresponder/visitedproducts/active';
91
  const VISITED_DAYS = 'ebizmarts_autoresponder/visitedproducts/days';
@@ -95,6 +103,7 @@ class Ebizmarts_Autoresponder_Model_Config
95
  const VISITED_CUSTOMER_GROUPS = 'ebizmarts_autoresponder/visitedproducts/customer';
96
  const VISITED_TIME = 'ebizmarts_autoresponder/visitedproducts/time';
97
  const VISITED_MAX = 'ebizmarts_autoresponder/visitedproducts/max_visited';
 
98
 
99
  const BACKTOSTOCK_ACTIVE = 'ebizmarts_autoresponder/backtostock/active';
100
  const BACKTOSTOCK_TEMPLATE = 'ebizmarts_autoresponder/backtostock/template';
@@ -102,6 +111,7 @@ class Ebizmarts_Autoresponder_Model_Config
102
  const BACKTOSTOCK_MANDRILL_TAG = 'ebizmarts_autoresponder/backtostock/mandrill_tag';
103
  const BACKTOSTOCK_ALLOW_GUESTS = 'ebizmarts_autoresponder/backtostock/allow_guests';
104
  const BACKTOSTOCK_MAIL_TYPE_NAME = 'back to stock';
 
105
 
106
  const COUPON_AUTOMATIC = 2;
107
  const COUPON_MANUAL = 1;
16
  const NEWORDER_ACTIVE = 'ebizmarts_autoresponder/neworder/active';
17
  const NEWORDER_DAYS = 'ebizmarts_autoresponder/neworder/days';
18
  const NEWORDER_CUSTOMER_GROUPS = 'ebizmarts_autoresponder/neworder/customer';
19
+ const NEWORDER_TRIGGER = 'ebizmarts_autoresponder/neworder/trigger';
20
+ const NEWORDER_ORDER_STATUS = 'ebizmarts_autoresponder/neworder/order_status';
21
  const NEWORDER_TEMPLATE = 'ebizmarts_autoresponder/neworder/template';
22
  const NEWORDER_MANDRILL_TAG = 'ebizmarts_autoresponder/neworder/mandrill-tag';
23
  const NEWORDER_SUBJECT = 'ebizmarts_autoresponder/neworder/subject';
24
+ const NEWORDER_CRON_TIME = 'ebizmarts_autoresponder/neworder/cron-time';
25
 
26
  const RELATED_ACTIVE = 'ebizmarts_autoresponder/related/active';
27
  const RELATED_DAYS = 'ebizmarts_autoresponder/related/days';
31
  const RELATED_SUBJECT = 'ebizmarts_autoresponder/related/subject';
32
  const RELATED_MAX = 'ebizmarts_autoresponder/related/max-related';
33
  const RELATED_STATUS = 'ebizmarts_autoresponder/related/status';
34
+ const RELATED_CRON_TIME = 'ebizmarts_autoresponder/related/cron-time';
35
 
36
+ const REVIEW_ACTIVE = 'ebizmarts_autoresponder/review/active';
37
+ const REVIEW_DAYS = 'ebizmarts_autoresponder/review/days';
38
+ const REVIEW_CUSTOMER_GROUPS = 'ebizmarts_autoresponder/review/customer';
39
+ const REVIEW_TEMPLATE = 'ebizmarts_autoresponder/review/template';
40
+ const REVIEW_MANDRILL_TAG = 'ebizmarts_autoresponder/review/mandrill-tag';
41
+ const REVIEW_SUBJECT = 'ebizmarts_autoresponder/review/subject';
42
+ const REVIEW_STATUS = 'ebizmarts_autoresponder/review/status';
43
+ const REVIEW_HAS_COUPON = 'ebizmarts_autoresponder/review/coupon';
44
+ const REVIEW_COUPON_CUSTOMER_GROUP = 'ebizmarts_autoresponder/review/customer_coupon';
45
+ const REVIEW_COUPON_AUTOMATIC = 'ebizmarts_autoresponder/review/automatic';
46
+ const REVIEW_COUPON_CODE = 'ebizmarts_autoresponder/review/coupon_code';
47
+ const REVIEW_COUPON_EXPIRE = 'ebizmarts_autoresponder/review/expire';
48
+ const REVIEW_COUPON_LENGTH = 'ebizmarts_autoresponder/review/length';
49
+ const REVIEW_COUPON_DISCOUNT_TYPE = 'ebizmarts_autoresponder/review/discounttype';
50
+ const REVIEW_COUPON_DISCOUNT = 'ebizmarts_autoresponder/review/discount';
51
+ const REVIEW_COUPON_LABEL = 'ebizmarts_autoresponder/review/couponlabel';
52
+ const REVIEW_COUPON_COUNTER = 'ebizmarts_autoresponder/review/coupon_counter';
53
+ const REVIEW_COUPON_GENERAL_QUANTITY = 'ebizmarts_autoresponder/review/coupon_general_quantity';
54
+ const REVIEW_COUPON_GENERAL_TYPE = 'ebizmarts_autoresponder/review/coupon_general_type';
55
+ const REVIEW_COUPON_SPECIFIC_QUANTITY = 'ebizmarts_autoresponder/review/coupon_specific_quantity';
56
+ const REVIEW_COUPON_ORDER_COUNTER = 'ebizmarts_autoresponder/review/coupon_order_counter';
57
+ const REVIEW_COUPON_ORDER_ALMOST = 'ebizmarts_autoresponder/review/coupon_order_almost';
58
+ const REVIEW_COUPON_ORDER_MAX = 'ebizmarts_autoresponder/review/coupon_order_max';
59
+ const REVIEW_COUPON_MANDRILL_TAG = 'ebizmarts_autoresponder/review/coupon_mandrill_tag';
60
+ const REVIEW_COUPON_SUBJECT = 'ebizmarts_autoresponder/review/coupon_mail_subject';
61
+ const REVIEW_COUPON_EMAIL = 'ebizmarts_autoresponder/review/coupon_template';
62
+ const REVIEW_CRON_TIME = 'ebizmarts_autoresponder/review/cron-time';
63
 
64
  const BIRTHDAY_ACTIVE = 'ebizmarts_autoresponder/birthday/active';
65
  const BIRTHDAY_DAYS = 'ebizmarts_autoresponder/birthday/days';
76
  const BIRTHDAY_DISCOUNT_TYPE = 'ebizmarts_autoresponder/birthday/discounttype';
77
  const BIRTHDAY_DISCOUNT = 'ebizmarts_autoresponder/birthday/discount';
78
  const BIRTHDAY_COUPON_LABEL = 'ebizmarts_autoresponder/birthday/couponlabel';
79
+ const BIRTHDAY_CRON_TIME = 'ebizmarts_autoresponder/birthday/cron-time';
80
 
81
 
82
  const NOACTIVITY_ACTIVE = 'ebizmarts_autoresponder/noactivity/active';
85
  const NOACTIVITY_TEMPLATE = 'ebizmarts_autoresponder/noactivity/template';
86
  const NOACTIVITY_MANDRILL_TAG = 'ebizmarts_autoresponder/noactivity/mandrill-tag';
87
  const NOACTIVITY_SUBJECT = 'ebizmarts_autoresponder/noactivity/subject';
88
+ const NOACTIVITY_CRON_TIME = 'ebizmarts_autoresponder/noactivity/cron-time';
89
 
90
  const WISHLIST_ACTIVE = 'ebizmarts_autoresponder/wishlist/active';
91
  const WISHLIST_DAYS = 'ebizmarts_autoresponder/wishlist/days';
93
  const WISHLIST_TEMPLATE = 'ebizmarts_autoresponder/wishlist/template';
94
  const WISHLIST_MANDRILL_TAG = 'ebizmarts_autoresponder/wishlist/mandrill-tag';
95
  const WISHLIST_SUBJECT = 'ebizmarts_autoresponder/wishlist/subject';
96
+ const WISHLIST_CRON_TIME = 'ebizmarts_autoresponder/wishlist/cron-time';
97
 
98
  const VISITED_ACTIVE = 'ebizmarts_autoresponder/visitedproducts/active';
99
  const VISITED_DAYS = 'ebizmarts_autoresponder/visitedproducts/days';
103
  const VISITED_CUSTOMER_GROUPS = 'ebizmarts_autoresponder/visitedproducts/customer';
104
  const VISITED_TIME = 'ebizmarts_autoresponder/visitedproducts/time';
105
  const VISITED_MAX = 'ebizmarts_autoresponder/visitedproducts/max_visited';
106
+ const VISITED_CRON_TIME = 'ebizmarts_autoresponder/visitedproducts/cron-time';
107
 
108
  const BACKTOSTOCK_ACTIVE = 'ebizmarts_autoresponder/backtostock/active';
109
  const BACKTOSTOCK_TEMPLATE = 'ebizmarts_autoresponder/backtostock/template';
111
  const BACKTOSTOCK_MANDRILL_TAG = 'ebizmarts_autoresponder/backtostock/mandrill_tag';
112
  const BACKTOSTOCK_ALLOW_GUESTS = 'ebizmarts_autoresponder/backtostock/allow_guests';
113
  const BACKTOSTOCK_MAIL_TYPE_NAME = 'back to stock';
114
+ const BACKTOSTOCK_CRON_TIME = 'ebizmarts_autoresponder/backtostock/cron-time';
115
 
116
  const COUPON_AUTOMATIC = 2;
117
  const COUPON_MANUAL = 1;
app/code/community/Ebizmarts/Autoresponder/Model/Cron.php CHANGED
@@ -34,28 +34,28 @@ class Ebizmarts_Autoresponder_Model_Cron
34
  Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);
35
  Mage::getSingleton('core/design_package' )->setStore($storeId);
36
 
37
- if(Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::NEWORDER_ACTIVE,$storeId)) { // done
38
  $this->_processNewOrders($storeId);
39
  }
40
- if(Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::RELATED_ACTIVE,$storeId)) { // done
41
  $this->_processRelated($storeId);
42
  }
43
- if(Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::REVIEW_ACTIVE,$storeId)) { // done
44
  $this->_processReview($storeId);
45
  }
46
- if(Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::BIRTHDAY_ACTIVE,$storeId)) { // done
47
  $this->_processBirthday($storeId);
48
  }
49
- if(Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::NOACTIVITY_ACTIVE,$storeId)) { // done
50
  $this->_processNoActivity($storeId);
51
  }
52
- if(Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::WISHLIST_ACTIVE,$storeId)) { // done
53
  $this->_processWishlist($storeId);
54
  }
55
- if(Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::VISITED_ACTIVE,$storeId)) { // done
56
  $this->_processVisited($storeId);
57
  }
58
- if(Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::BACKTOSTOCK_ACTIVE,$storeId)){
59
  $this->_processBackToStock($storeId);
60
  }
61
  $this->_cleanAutoresponderExpiredCoupons();
@@ -84,7 +84,7 @@ class Ebizmarts_Autoresponder_Model_Cron
84
  foreach($collection as $order) {
85
  $translate = Mage::getSingleton('core/translate');
86
  $email = $order->getCustomerEmail();
87
- if($this->_isSubscribed($email,'neworder',$storeId)) {
88
  $name = $order->getCustomerFirstname().' '.$order->getCustomerLastname();
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);
@@ -126,7 +126,7 @@ class Ebizmarts_Autoresponder_Model_Cron
126
  $cust = Mage::getModel('customer/customer')->load($customer->getEntityId());
127
  $email = $cust->getEmail();
128
  $name = $cust->getFirstname().' '.$cust->getLastname();
129
- if($this->_isSubscribed($email,'birthday',$storeId)) {
130
  $vars = array();
131
  $url = Mage::getModel('core/url')->setStore($storeId)->getUrl().'ebizautoresponder/autoresponder/unsubscribe?list=birthday&email='.$email.'&store='.$storeId;
132
  $couponcode = '';
@@ -183,7 +183,7 @@ class Ebizmarts_Autoresponder_Model_Cron
183
  $cust = Mage::getModel('customer/customer')->load($customerId);
184
  $email = $cust->getEmail();
185
  $name = $cust->getFirstname().' '.$cust->getLastname();
186
- if($this->_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);
@@ -239,7 +239,7 @@ class Ebizmarts_Autoresponder_Model_Cron
239
  if($counter > 0) {
240
  $translate = Mage::getSingleton('core/translate');
241
  $email = $order->getCustomerEmail();
242
- if($this->_isSubscribed($email,'related',$storeId)) {
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);
@@ -279,7 +279,7 @@ class Ebizmarts_Autoresponder_Model_Cron
279
  foreach($collection as $order) {
280
  $translate = Mage::getSingleton('core/translate');
281
  $email = $order->getCustomerEmail();
282
- if($this->_isSubscribed($email,'review',$storeId)) {
283
  if(Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::REVIEW_HAS_COUPON,$storeId)) {
284
  srand((double)microtime()*1000000);
285
  $token = md5(rand(0,9999999));
@@ -344,7 +344,7 @@ class Ebizmarts_Autoresponder_Model_Cron
344
  if($wishlist_ant != -1 && count($products) > 0) {
345
  $translate = Mage::getSingleton('core/translate');
346
  $email = $customer->getEmail();
347
- if($this->_isSubscribed($email,'wishlist',$storeId)) {
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);
@@ -367,7 +367,7 @@ class Ebizmarts_Autoresponder_Model_Cron
367
  if(count($products)) {
368
  $translate = Mage::getSingleton('core/translate');
369
  $email = $customer->getEmail();
370
- if($this->_isSubscribed($email,'wishlist',$storeId)) {
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);
@@ -407,7 +407,7 @@ class Ebizmarts_Autoresponder_Model_Cron
407
  if($customerIdPrev!=$item->getCustomerId()) {
408
  if($customerIdPrev != 0 && count($products) > 0) {
409
  $email = $customer->getEmail();
410
- if($this->_isSubscribed($email,'visitedproducts',$storeId)) {
411
  $translate = Mage::getSingleton('core/translate');
412
  $name = $customer->getFirstname().' '.$customer->getLastname();
413
  $url = Mage::getModel('core/url')->setStore($storeId)->getUrl().'ebizautoresponder/autoresponder/unsubscribe?list=visitedproducts&email='.$email.'&store='.$storeId;
@@ -418,32 +418,72 @@ class Ebizmarts_Autoresponder_Model_Cron
418
  }
419
  }
420
  $products = array();
421
- $customer = Mage::getModel('customer/customer')->load($item->getCustomerId());
422
- $customerIdPrev = $item->getCustomerId();
 
 
 
423
  }
424
- if(count($products) > $max && $max != 0 || !in_array($customer->getGroupId(),$customerGroups)) {
425
  continue;
426
  }
427
- $itemscollection = Mage::getModel('sales/order_item')->getCollection();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
428
  $itemscollection->addFieldToFilter('main_table.created_at',array('from'=>$from))
429
- ->addFieldToFilter('main_table.product_id',array('eq'=>$item->getProductId()));
430
- if($itemscollection->getSize() == 0) { // if not orders from date which include this product
431
- if(Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::ACTIVE,$storeId)) { // if the abandoned cart module is active
432
- $itemscollection2 = Mage::getModel('sales/quote_item')->getCollection();
433
- $itemscollection2->addFieldToFilter('main_table.created_at',array('from'=>$from))
434
- ->addFieldToFilter('main_table.product_id',array('eq'=>$item->getProductId()));
435
- if($itemscollection2->getSize() > 0) { // if there are an abandoned cart which include this product
436
- continue;
437
- }
438
- }
439
  $products[]= Mage::getModel('catalog/product')->load($item->getProductId());
 
 
 
 
 
 
 
 
 
 
 
 
 
 
440
  }
441
  }
442
  if(count($products)) {
443
- $email = $customer->getEmail();
444
- if($this->_isSubscribed($email,'visitedproducts',$storeId)) {
 
 
 
 
 
 
 
 
 
 
 
445
  $translate = Mage::getSingleton('core/translate');
446
- $name = $customer->getFirstname().' '.$customer->getLastname();
 
447
  $url = Mage::getModel('core/url')->setStore($storeId)->getUrl().'ebizautoresponder/autoresponder/unsubscribe?list=visitedproducts&email='.$email.'&store='.$storeId;
448
  $vars = array('name' => $name,'tags'=>array($tags),'products'=>$products,'url'=>$url);
449
  $mail = Mage::getModel('core/email_template')->setTemplateSubject($mailSubject)->sendTransactional($templateId,$sender,$email,$name,$vars,$storeId);
@@ -730,9 +770,9 @@ class Ebizmarts_Autoresponder_Model_Cron
730
  }else{
731
  $coupon = $collection->getFirstItem();
732
  if ($coupon->getSimpleAction() == 'cart_fixed') {
733
- $discount = Mage::app()->getStore($store)->getCurrentCurrencyCode() . $coupon->getDiscountAmount();
734
  } else{
735
- $discount = $coupon->getDiscountAmount();
736
  }
737
  return array($coupon->getCode(), $discount, $coupon->getToDate());
738
  }
@@ -742,15 +782,6 @@ class Ebizmarts_Autoresponder_Model_Cron
742
  {
743
  return sprintf('INTERVAL %d %s', $interval, $unit);
744
  }
745
- protected function _isSubscribed($email,$list,$storeId)
746
- {
747
- $collection = Mage::getModel('ebizmarts_autoresponder/unsubscribe')->getCollection();
748
- $collection->addFieldtoFilter('main_table.email',array('eq'=>$email))
749
- ->addFieldtoFilter('main_table.list',array('eq'=>$list))
750
- ->addFieldtoFilter('main_table.store_id',array('eq'=>$storeId));
751
- return $collection->getSize() == 0;
752
-
753
- }
754
 
755
  protected function _cleanAutoresponderExpiredCoupons(){
756
  $today = date('Y-m-d');
34
  Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);
35
  Mage::getSingleton('core/design_package' )->setStore($storeId);
36
 
37
+ if(Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::NEWORDER_ACTIVE,$storeId) && Mage::helper('ebizmarts_autoresponder')->isSetTime(Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::NEWORDER_CRON_TIME, $storeId))) {
38
  $this->_processNewOrders($storeId);
39
  }
40
+ if(Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::RELATED_ACTIVE,$storeId) && Mage::helper('ebizmarts_autoresponder')->isSetTime(Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::RELATED_CRON_TIME, $storeId))) {
41
  $this->_processRelated($storeId);
42
  }
43
+ if(Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::REVIEW_ACTIVE,$storeId) && Mage::helper('ebizmarts_autoresponder')->isSetTime(Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::REVIEW_CRON_TIME, $storeId))) {
44
  $this->_processReview($storeId);
45
  }
46
+ if(Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::BIRTHDAY_ACTIVE,$storeId) && Mage::helper('ebizmarts_autoresponder')->isSetTime(Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::BIRTHDAY_CRON_TIME, $storeId))) {
47
  $this->_processBirthday($storeId);
48
  }
49
+ if(Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::NOACTIVITY_ACTIVE,$storeId) && Mage::helper('ebizmarts_autoresponder')->isSetTime(Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::NOACTIVITY_CRON_TIME, $storeId))) {
50
  $this->_processNoActivity($storeId);
51
  }
52
+ if(Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::WISHLIST_ACTIVE,$storeId) && Mage::helper('ebizmarts_autoresponder')->isSetTime(Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::WISHLIST_CRON_TIME, $storeId))) {
53
  $this->_processWishlist($storeId);
54
  }
55
+ if(Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::VISITED_ACTIVE,$storeId) && Mage::helper('ebizmarts_autoresponder')->isSetTime(Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::VISITED_CRON_TIME, $storeId))) {
56
  $this->_processVisited($storeId);
57
  }
58
+ if(Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::BACKTOSTOCK_ACTIVE,$storeId) && Mage::helper('ebizmarts_autoresponder')->isSetTime(Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::BACKTOSTOCK_CRON_TIME, $storeId))){
59
  $this->_processBackToStock($storeId);
60
  }
61
  $this->_cleanAutoresponderExpiredCoupons();
84
  foreach($collection as $order) {
85
  $translate = Mage::getSingleton('core/translate');
86
  $email = $order->getCustomerEmail();
87
+ if(Mage::helper('ebizmarts_autoresponder')->isSubscribed($email,'neworder',$storeId)) {
88
  $name = $order->getCustomerFirstname().' '.$order->getCustomerLastname();
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);
126
  $cust = Mage::getModel('customer/customer')->load($customer->getEntityId());
127
  $email = $cust->getEmail();
128
  $name = $cust->getFirstname().' '.$cust->getLastname();
129
+ if(Mage::helper('ebizmarts_autoresponder')->isSubscribed($email,'birthday',$storeId)) {
130
  $vars = array();
131
  $url = Mage::getModel('core/url')->setStore($storeId)->getUrl().'ebizautoresponder/autoresponder/unsubscribe?list=birthday&email='.$email.'&store='.$storeId;
132
  $couponcode = '';
183
  $cust = Mage::getModel('customer/customer')->load($customerId);
184
  $email = $cust->getEmail();
185
  $name = $cust->getFirstname().' '.$cust->getLastname();
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);
239
  if($counter > 0) {
240
  $translate = Mage::getSingleton('core/translate');
241
  $email = $order->getCustomerEmail();
242
+ if(Mage::helper('ebizmarts_autoresponder')->isSubscribed($email,'related',$storeId)) {
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);
279
  foreach($collection as $order) {
280
  $translate = Mage::getSingleton('core/translate');
281
  $email = $order->getCustomerEmail();
282
+ if(Mage::helper('ebizmarts_autoresponder')->isSubscribed($email,'review',$storeId)) {
283
  if(Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::REVIEW_HAS_COUPON,$storeId)) {
284
  srand((double)microtime()*1000000);
285
  $token = md5(rand(0,9999999));
344
  if($wishlist_ant != -1 && count($products) > 0) {
345
  $translate = Mage::getSingleton('core/translate');
346
  $email = $customer->getEmail();
347
+ if(Mage::helper('ebizmarts_autoresponder')->isSubscribed($email,'wishlist',$storeId)) {
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);
367
  if(count($products)) {
368
  $translate = Mage::getSingleton('core/translate');
369
  $email = $customer->getEmail();
370
+ if(Mage::helper('ebizmarts_autoresponder')->isSubscribed($email,'wishlist',$storeId)) {
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);
407
  if($customerIdPrev!=$item->getCustomerId()) {
408
  if($customerIdPrev != 0 && count($products) > 0) {
409
  $email = $customer->getEmail();
410
+ if(Mage::helper('ebizmarts_autoresponder')->isSubscribed($email,'visitedproducts',$storeId)) {
411
  $translate = Mage::getSingleton('core/translate');
412
  $name = $customer->getFirstname().' '.$customer->getLastname();
413
  $url = Mage::getModel('core/url')->setStore($storeId)->getUrl().'ebizautoresponder/autoresponder/unsubscribe?list=visitedproducts&email='.$email.'&store='.$storeId;
418
  }
419
  }
420
  $products = array();
421
+ if($item->getCustomerId()){
422
+ $customer = Mage::getModel('customer/customer')->load($item->getCustomerId());
423
+ $customerIdPrev = $item->getCustomerId();
424
+ }
425
+
426
  }
427
+ if(count($products) > $max && $max != 0 || ($customer && !in_array($customer->getGroupId(),$customerGroups))) {
428
  continue;
429
  }
430
+ // $itemscollection = Mage::getModel('sales/order_item')->getCollection();
431
+ // $itemscollection->addFieldToFilter('main_table.created_at',array('from'=>$from))
432
+ // ->addFieldToFilter('main_table.product_id',array('eq'=>$item->getProductId()));
433
+ // if($itemscollection->getSize() == 0) { // if not orders from date which include this product
434
+ // if(Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::ACTIVE,$storeId)) { // if the abandoned cart module is active
435
+ // $itemscollection2 = Mage::getModel('sales/quote_item')->getCollection();
436
+ // $itemscollection2->addFieldToFilter('main_table.created_at',array('from'=>$from))
437
+ // ->addFieldToFilter('main_table.product_id',array('eq'=>$item->getProductId()));
438
+ // if($itemscollection2->getSize() > 0) { // if there are an abandoned cart which include this product
439
+ // continue;
440
+ // }
441
+ // }
442
+ // $products[]= Mage::getModel('catalog/product')->load($item->getProductId());
443
+ // }
444
+ $itemscollection = Mage::getModel('sales/quote')->getCollection();
445
+ if($item->getCustomerId()) {
446
+ $itemscollection->addFieldToFilter('main_table.customer_id', array('eq' => $item->getCustomerId()));
447
+ }else{
448
+ $itemscollection->addFieldToFilter('main_table.customer_email', array('eq' => $item->getCustomerEmail()));
449
+ }
450
  $itemscollection->addFieldToFilter('main_table.created_at',array('from'=>$from))
451
+ ->addFieldToFilter('main_table.is_active', array('eq'=>0));
452
+ if(count($itemscollection) == 0){
 
 
 
 
 
 
 
 
453
  $products[]= Mage::getModel('catalog/product')->load($item->getProductId());
454
+ }else{
455
+ continue;
456
+ }
457
+
458
+ if(!$item->getCustomerId()){
459
+ //add customer by email placed on Abandoned Cart Popup
460
+ $translate = Mage::getSingleton('core/translate');
461
+ $email = $item->getCustomerEmail();
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);
468
  }
469
  }
470
  if(count($products)) {
471
+ if ($item->getCustomerId()) {
472
+ $email = $customer->getEmail();
473
+ if (Mage::helper('ebizmarts_autoresponder')->isSubscribed($email, 'visitedproducts', $storeId)) {
474
+ $translate = Mage::getSingleton('core/translate');
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);
481
+ }
482
+ } else {
483
+ //add customer by email placed on Abandoned Cart Popup
484
  $translate = Mage::getSingleton('core/translate');
485
+ $email = $item->getCustomerEmail();
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);
770
  }else{
771
  $coupon = $collection->getFirstItem();
772
  if ($coupon->getSimpleAction() == 'cart_fixed') {
773
+ $discount = Mage::app()->getStore($store)->getCurrentCurrencyCode() . ($coupon->getDiscountAmount()+0);
774
  } else{
775
+ $discount = $coupon->getDiscountAmount()+0;
776
  }
777
  return array($coupon->getCode(), $discount, $coupon->getToDate());
778
  }
782
  {
783
  return sprintf('INTERVAL %d %s', $interval, $unit);
784
  }
 
 
 
 
 
 
 
 
 
785
 
786
  protected function _cleanAutoresponderExpiredCoupons(){
787
  $today = date('Y-m-d');
app/code/community/Ebizmarts/Autoresponder/Model/EventObserver.php CHANGED
@@ -230,4 +230,36 @@ class Ebizmarts_Autoresponder_Model_EventObserver
230
  return array($uniqueId,$discount,$toDate);
231
  }
232
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
233
  }
230
  return array($uniqueId,$discount,$toDate);
231
  }
232
 
233
+ public function orderSaved(Varien_Event_Observer $observer){
234
+ $storeId = $observer->getEvent()->getOrder()->getStoreId();
235
+
236
+ $original_data = $observer->getEvent()->getData('data_object')->getOrigData();
237
+ $new_data = $observer->getEvent()->getData('data_object')->getData();
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);
245
+ $senderId = Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::GENERAL_SENDER,$storeId);
246
+ $sender = array('name'=>Mage::getStoreConfig("trans_email/ident_$senderId/name",$storeId), 'email'=> Mage::getStoreConfig("trans_email/ident_$senderId/email",$storeId));
247
+ $templateId = Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::NEWORDER_TEMPLATE,$storeId);
248
+
249
+ //Send email
250
+ $translate = Mage::getSingleton('core/translate');
251
+ $email = $order->getCustomerEmail();
252
+ if(Mage::helper('ebizmarts_autoresponder')->isSubscribed($email,'neworder',$storeId)) {
253
+ $name = $order->getCustomerFirstname().' '.$order->getCustomerLastname();
254
+ $url = Mage::getModel('core/url')->setStore($storeId)->getUrl().'ebizautoresponder/autoresponder/unsubscribe?list=neworder&email='.$email.'&store='.$storeId;
255
+ $vars = array('tags'=>array($tags),'url'=>$url);
256
+ $mail = Mage::getModel('core/email_template')->setTemplateSubject($mailSubject)->sendTransactional($templateId,$sender,$email,$name,$vars,$storeId);
257
+ $translate->setTranslateInLine(true);
258
+ Mage::helper('ebizmarts_abandonedcart')->saveMail('new order',$email,$name,"",$storeId);
259
+ }
260
+ }
261
+ }
262
+
263
+ }
264
+
265
  }
app/code/community/Ebizmarts/Autoresponder/Model/System/Config/Hours.php ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class Ebizmarts_Autoresponder_Model_System_Config_Hours
4
+ {
5
+ public function toOptionArray()
6
+ {
7
+ $options = array();
8
+ for($i = 0; $i < 24; $i++){
9
+ $options[]=array('value'=> $i, 'label' => $i);
10
+ }
11
+ return $options;
12
+ }
13
+ }
app/code/community/Ebizmarts/Autoresponder/Model/System/Config/Newordertrigger.php ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ class Ebizmarts_Autoresponder_Model_System_Config_Newordertrigger
12
+ {
13
+ protected $_options;
14
+
15
+ public function toOptionArray()
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
+ }
23
+ }
app/code/community/Ebizmarts/Autoresponder/controllers/AutoresponderController.php CHANGED
@@ -104,14 +104,27 @@ class Ebizmarts_Autoresponder_AutoresponderController extends Mage_Core_Controll
104
  public function markVisitedProductsAction()
105
  {
106
  $params = $this->getRequest()->getParams();
107
- if(!isset($params['product_id'])||!Mage::getSingleton('customer/session')->isLoggedIn()) {
108
  return;
109
  }
 
 
 
 
 
 
 
 
 
110
  $storeId = Mage::app()->getStore()->getStoreId();
111
- $customerId = Mage::getSingleton('customer/session')->getCustomer()->getId();
112
  $visited = Mage::getModel('ebizmarts_autoresponder/visited')->loadByCustomerProduct($customerId,$params['product_id'],$storeId);
113
- $visited->setCustomerId($customerId)
114
- ->setProductId($params['product_id'])
 
 
 
 
 
115
  ->setStoreId($storeId)
116
  ->setVisitedAt(Mage::getModel('core/date')->gmtDate())
117
  ->save();
104
  public function markVisitedProductsAction()
105
  {
106
  $params = $this->getRequest()->getParams();
107
+ if(!isset($params['product_id'])) {
108
  return;
109
  }
110
+ if(!Mage::getSingleton('customer/session')->isLoggedIn()){
111
+ if (isset($_COOKIE['email']) && $_COOKIE['email'] != 'none') {
112
+ $email = str_replace(' ', '+', $_COOKIE['email']);
113
+ }else{
114
+ return;
115
+ }
116
+ }else{
117
+ $customerId = Mage::getSingleton('customer/session')->getCustomer()->getId();
118
+ }
119
  $storeId = Mage::app()->getStore()->getStoreId();
 
120
  $visited = Mage::getModel('ebizmarts_autoresponder/visited')->loadByCustomerProduct($customerId,$params['product_id'],$storeId);
121
+ if($email) {
122
+ $visited->setCustomerEmail($email);
123
+ }else{
124
+ $visited->setCustomerId($customerId);
125
+ }
126
+
127
+ $visited->setProductId($params['product_id'])
128
  ->setStoreId($storeId)
129
  ->setVisitedAt(Mage::getModel('core/date')->gmtDate())
130
  ->save();
app/code/community/Ebizmarts/Autoresponder/etc/config.xml CHANGED
@@ -10,7 +10,7 @@
10
  <config>
11
  <modules>
12
  <Ebizmarts_Autoresponder>
13
- <version>0.1.9</version>
14
  </Ebizmarts_Autoresponder>
15
  </modules>
16
  <global>
@@ -204,6 +204,14 @@
204
  </ebizmarts_autoresponder_review_product_post_after>
205
  </observers>
206
  </review_product_post_after>
 
 
 
 
 
 
 
 
207
  </events>
208
  <translate>
209
  <modules>
@@ -220,7 +228,7 @@
220
  <jobs>
221
  <ebizmarts_autoresponder>
222
  <schedule>
223
- <cron_expr>0 1 * * *</cron_expr>
224
  </schedule>
225
  <run>
226
  <model>ebizmarts_autoresponder/cron::autoresponder</model>
10
  <config>
11
  <modules>
12
  <Ebizmarts_Autoresponder>
13
+ <version>0.1.10</version>
14
  </Ebizmarts_Autoresponder>
15
  </modules>
16
  <global>
204
  </ebizmarts_autoresponder_review_product_post_after>
205
  </observers>
206
  </review_product_post_after>
207
+ <sales_order_save_after>
208
+ <observers>
209
+ <ebizmarts_autoresponder_order_save_after>
210
+ <class>ebizmarts_autoresponder/eventObserver</class>
211
+ <method>orderSaved</method>
212
+ </ebizmarts_autoresponder_order_save_after>
213
+ </observers>
214
+ </sales_order_save_after>
215
  </events>
216
  <translate>
217
  <modules>
228
  <jobs>
229
  <ebizmarts_autoresponder>
230
  <schedule>
231
+ <cron_expr>0 * * * *</cron_expr>
232
  </schedule>
233
  <run>
234
  <model>ebizmarts_autoresponder/cron::autoresponder</model>
app/code/community/Ebizmarts/Autoresponder/etc/system.xml CHANGED
@@ -82,6 +82,18 @@
82
  <show_in_website>1</show_in_website>
83
  <show_in_store>1</show_in_store>
84
  </active>
 
 
 
 
 
 
 
 
 
 
 
 
85
  <days translate="label">
86
  <label>Days after order</label>
87
  <frontend_type>text</frontend_type>
@@ -91,8 +103,23 @@
91
  <show_in_store>1</show_in_store>
92
  <depends>
93
  <active>1</active>
 
94
  </depends>
95
  </days>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
96
  <subject translate="label">
97
  <label>Mail Subject</label>
98
  <frontend_type>text</frontend_type>
@@ -142,6 +169,19 @@
142
  <active>1</active>
143
  </depends>
144
  </customer>
 
 
 
 
 
 
 
 
 
 
 
 
 
145
  </fields>
146
  </neworder>
147
  <related translate="label comment">
@@ -248,6 +288,18 @@
248
  <active>1</active>
249
  </depends>
250
  </max-related>
 
 
 
 
 
 
 
 
 
 
 
 
251
  </fields>
252
  </related>
253
  <review translate="label comment">
@@ -614,6 +666,18 @@
614
  <automatic>2</automatic>
615
  </depends>
616
  </couponlabel>
 
 
 
 
 
 
 
 
 
 
 
 
617
  </fields>
618
  </review>
619
  <birthday translate="label comment">
@@ -832,6 +896,18 @@
832
  <automatic>2</automatic>
833
  </depends>
834
  </couponlabel>
 
 
 
 
 
 
 
 
 
 
 
 
835
  </fields>
836
  </birthday>
837
  <noactivity translate="label comment">
@@ -913,6 +989,18 @@
913
  <active>1</active>
914
  </depends>
915
  </customer>
 
 
 
 
 
 
 
 
 
 
 
 
916
  </fields>
917
  </noactivity>
918
  <wishlist translate="label comment">
@@ -1002,6 +1090,18 @@
1002
  <active>1</active>
1003
  </depends>
1004
  </customer>
 
 
 
 
 
 
 
 
 
 
 
 
1005
  </fields>
1006
  </wishlist>
1007
  <visitedproducts translate="label comment">
@@ -1107,6 +1207,18 @@
1107
  <active>1</active>
1108
  </depends>
1109
  </max-visited>
 
 
 
 
 
 
 
 
 
 
 
 
1110
  </fields>
1111
  </visitedproducts>
1112
  <backtostock>
@@ -1182,6 +1294,18 @@
1182
  <active>1</active>
1183
  </depends>
1184
  </allow_guests>
 
 
 
 
 
 
 
 
 
 
 
 
1185
  </fields>
1186
  </backtostock>
1187
  </groups>
82
  <show_in_website>1</show_in_website>
83
  <show_in_store>1</show_in_store>
84
  </active>
85
+ <trigger translate="label">
86
+ <label>Set email trigger</label>
87
+ <frontend_type>select</frontend_type>
88
+ <source_model>ebizmarts_autoresponder/system_config_newordertrigger</source_model>
89
+ <sort_order>15</sort_order>
90
+ <show_in_default>1</show_in_default>
91
+ <show_in_website>1</show_in_website>
92
+ <show_in_store>1</show_in_store>
93
+ <depends>
94
+ <active>1</active>
95
+ </depends>
96
+ </trigger>
97
  <days translate="label">
98
  <label>Days after order</label>
99
  <frontend_type>text</frontend_type>
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">
110
+ <label>Order Status</label>
111
+ <frontend_type>multiselect</frontend_type>
112
+ <source_model>adminhtml/system_config_source_order_status</source_model>
113
+ <sort_order>23</sort_order>
114
+ <show_in_default>1</show_in_default>
115
+ <show_in_website>0</show_in_website>
116
+ <show_in_store>1</show_in_store>
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">
124
  <label>Mail Subject</label>
125
  <frontend_type>text</frontend_type>
169
  <active>1</active>
170
  </depends>
171
  </customer>
172
+ <cron-time translate="label">
173
+ <label>Hour to send emails</label>
174
+ <frontend_type>select</frontend_type>
175
+ <source_model>ebizmarts_autoresponder/system_config_hours</source_model>
176
+ <sort_order>60</sort_order>
177
+ <show_in_default>1</show_in_default>
178
+ <show_in_website>1</show_in_website>
179
+ <show_in_store>1</show_in_store>
180
+ <depends>
181
+ <active>1</active>
182
+ <trigger>0</trigger>
183
+ </depends>
184
+ </cron-time>
185
  </fields>
186
  </neworder>
187
  <related translate="label comment">
288
  <active>1</active>
289
  </depends>
290
  </max-related>
291
+ <cron-time translate="label">
292
+ <label>Hour to send emails</label>
293
+ <frontend_type>select</frontend_type>
294
+ <source_model>ebizmarts_autoresponder/system_config_hours</source_model>
295
+ <sort_order>80</sort_order>
296
+ <show_in_default>1</show_in_default>
297
+ <show_in_website>1</show_in_website>
298
+ <show_in_store>1</show_in_store>
299
+ <depends>
300
+ <active>1</active>
301
+ </depends>
302
+ </cron-time>
303
  </fields>
304
  </related>
305
  <review translate="label comment">
666
  <automatic>2</automatic>
667
  </depends>
668
  </couponlabel>
669
+ <cron-time translate="label">
670
+ <label>Hour to send emails</label>
671
+ <frontend_type>select</frontend_type>
672
+ <source_model>ebizmarts_autoresponder/system_config_hours</source_model>
673
+ <sort_order>170</sort_order>
674
+ <show_in_default>1</show_in_default>
675
+ <show_in_website>1</show_in_website>
676
+ <show_in_store>1</show_in_store>
677
+ <depends>
678
+ <active>1</active>
679
+ </depends>
680
+ </cron-time>
681
  </fields>
682
  </review>
683
  <birthday translate="label comment">
896
  <automatic>2</automatic>
897
  </depends>
898
  </couponlabel>
899
+ <cron-time translate="label">
900
+ <label>Hour to send emails</label>
901
+ <frontend_type>select</frontend_type>
902
+ <source_model>ebizmarts_autoresponder/system_config_hours</source_model>
903
+ <sort_order>170</sort_order>
904
+ <show_in_default>1</show_in_default>
905
+ <show_in_website>1</show_in_website>
906
+ <show_in_store>1</show_in_store>
907
+ <depends>
908
+ <active>1</active>
909
+ </depends>
910
+ </cron-time>
911
  </fields>
912
  </birthday>
913
  <noactivity translate="label comment">
989
  <active>1</active>
990
  </depends>
991
  </customer>
992
+ <cron-time translate="label">
993
+ <label>Hour to send emails</label>
994
+ <frontend_type>select</frontend_type>
995
+ <source_model>ebizmarts_autoresponder/system_config_hours</source_model>
996
+ <sort_order>60</sort_order>
997
+ <show_in_default>1</show_in_default>
998
+ <show_in_website>1</show_in_website>
999
+ <show_in_store>1</show_in_store>
1000
+ <depends>
1001
+ <active>1</active>
1002
+ </depends>
1003
+ </cron-time>
1004
  </fields>
1005
  </noactivity>
1006
  <wishlist translate="label comment">
1090
  <active>1</active>
1091
  </depends>
1092
  </customer>
1093
+ <cron-time translate="label">
1094
+ <label>Hour to send emails</label>
1095
+ <frontend_type>select</frontend_type>
1096
+ <source_model>ebizmarts_autoresponder/system_config_hours</source_model>
1097
+ <sort_order>60</sort_order>
1098
+ <show_in_default>1</show_in_default>
1099
+ <show_in_website>1</show_in_website>
1100
+ <show_in_store>1</show_in_store>
1101
+ <depends>
1102
+ <active>1</active>
1103
+ </depends>
1104
+ </cron-time>
1105
  </fields>
1106
  </wishlist>
1107
  <visitedproducts translate="label comment">
1207
  <active>1</active>
1208
  </depends>
1209
  </max-visited>
1210
+ <cron-time translate="label">
1211
+ <label>Hour to send emails</label>
1212
+ <frontend_type>select</frontend_type>
1213
+ <source_model>ebizmarts_autoresponder/system_config_hours</source_model>
1214
+ <sort_order>90</sort_order>
1215
+ <show_in_default>1</show_in_default>
1216
+ <show_in_website>1</show_in_website>
1217
+ <show_in_store>1</show_in_store>
1218
+ <depends>
1219
+ <active>1</active>
1220
+ </depends>
1221
+ </cron-time>
1222
  </fields>
1223
  </visitedproducts>
1224
  <backtostock>
1294
  <active>1</active>
1295
  </depends>
1296
  </allow_guests>
1297
+ <cron-time translate="label">
1298
+ <label>Hour to send emails</label>
1299
+ <frontend_type>select</frontend_type>
1300
+ <source_model>ebizmarts_autoresponder/system_config_hours</source_model>
1301
+ <sort_order>60</sort_order>
1302
+ <show_in_default>1</show_in_default>
1303
+ <show_in_website>1</show_in_website>
1304
+ <show_in_store>1</show_in_store>
1305
+ <depends>
1306
+ <active>1</active>
1307
+ </depends>
1308
+ </cron-time>
1309
  </fields>
1310
  </backtostock>
1311
  </groups>
app/code/community/Ebizmarts/Autoresponder/sql/ebizmarts_autoresponder_setup/mysql4-upgrade-0.1.9-0.1.10.php ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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->getConnection()->addColumn(
16
+ $installer->getTable('ebizmarts_autoresponder_visited'), 'customer_email', 'varchar(128)'
17
+ );
18
+
19
+ $installer->endSetup();
app/code/community/Ebizmarts/MageMonkey/Helper/Data.php CHANGED
@@ -248,7 +248,8 @@ class Ebizmarts_MageMonkey_Helper_Data extends Mage_Core_Helper_Abstract
248
  */
249
  public function ecommerce360Active()
250
  {
251
- return (bool)($this->config('ecommerce360') != 0);
 
252
  }
253
 
254
  /**
@@ -463,6 +464,10 @@ class Ebizmarts_MageMonkey_Helper_Data extends Mage_Core_Helper_Abstract
463
  if($company){
464
  $merge_vars['COMPANY'] = $company;
465
  }
 
 
 
 
466
  }
467
 
468
  break;
@@ -534,7 +539,7 @@ class Ebizmarts_MageMonkey_Helper_Data extends Mage_Core_Helper_Abstract
534
  }
535
  if( !$customer->getId() && !$request->getPost('lastname') ){
536
  $guestLastName = $this->config('guest_lastname', $customer->getStoreId());
537
-
538
  if($guestLastName){
539
  $merge_vars['LNAME'] = $guestLastName;
540
  }
@@ -642,11 +647,11 @@ class Ebizmarts_MageMonkey_Helper_Data extends Mage_Core_Helper_Abstract
642
  $footerSubscription = $request->getActionName() == 'new' && $request->getControllerName() == 'subscriber' && $request->getModuleName() == 'newsletter';
643
  $customerSubscription = $request->getActionName() == 'saveadditional';
644
  $customerCreateAccountSubscription = $request->getActionName() == 'createpost';
645
- if($post && !$adminSubscription && !$footerSubscription && !$customerSubscription && !$customerCreateAccountSubscription || Mage::getSingleton('core/session')->getIsOneStepCheckout()){
646
  $defaultList = Mage::helper('monkey')->config('list');
647
  //if can change customer set the groups set by customer else set the groups on MailChimp config
648
  $canChangeGroups = Mage::getStoreConfig('monkey/general/changecustomergroup', $object->getStoreId());
649
- if ($currentList && ($currentList != $defaultList || $canChangeGroups) && isset($post['list'][$currentList])) {
650
  $subscribeGroups = array(0 => array());
651
  foreach ($post['list'][$currentList] as $toGroups => $value) {
652
  if (is_numeric($toGroups)) {
@@ -777,35 +782,24 @@ class Ebizmarts_MageMonkey_Helper_Data extends Mage_Core_Helper_Abstract
777
 
778
  $pwd = $customer->generatePassword(8);
779
  $customer->setPassword($pwd);
780
- $customer->setConfirmation($pwd);
781
-
782
-
783
- /**
784
- * Handle Address related Data
785
- */
786
- $billing = $shipping = null;
787
- if(isset($accountData['billing_address']) && !empty($accountData['billing_address'])){
788
- $this->_McAddressToMage($accountData, 'billing', $customer);
789
- }
790
- if(isset($accountData['shipping_address']) && !empty($accountData['shipping_address'])){
791
- $this->_McAddressToMage($accountData, 'shipping', $customer);
792
- }
793
- /**
794
- * Handle Address related Data
795
- */
796
-
797
- $customerErrors = $customer->validate();
798
- if (is_array($customerErrors) && count($customerErrors)) {
799
-
800
- //TODO: Do something with errors.
801
-
802
- }else{
803
- $customer->save();
804
 
805
- if ( $customer->isConfirmationRequired() ){
806
  $customer->sendNewAccountEmail('confirmation');
807
- }
808
-
 
 
 
 
 
 
 
 
 
 
 
809
  }
810
  }
811
 
@@ -887,34 +881,13 @@ class Ebizmarts_MageMonkey_Helper_Data extends Mage_Core_Helper_Abstract
887
  $listId = $list['subscribed'];
888
  $this->subscribeToList($object, $db, $listId);
889
  }
890
- } elseif (isset($post['magemonkey_subscribe'])) {
891
  $lists = explode(',', $post['magemonkey_subscribe']);
892
  foreach ($lists as $listId) {
893
  $this->subscribeToList($object, $db, $listId);
894
  }
895
  //Subscription for One Step Checkout with force subscription
896
  }elseif(Mage::getSingleton('core/session')->getIsOneStepCheckout() && Mage::helper('monkey')->config('checkout_subscribe') > 2 && !Mage::getSingleton('core/session')->getIsUpdateCustomer()){
897
- // //Initialize as GUEST customer
898
- // $customer = new Varien_Object;
899
- //
900
- // $regCustomer = Mage::registry('current_customer');
901
- // $guestCustomer = Mage::registry('mc_guest_customer');
902
- //
903
- // if (Mage::helper('customer')->isLoggedIn()) {
904
- // $customer = Mage::helper('customer')->getCustomer();
905
- // } elseif ($regCustomer) {
906
- // $customer = $regCustomer;
907
- // } elseif ($guestCustomer) {
908
- // $customer = $guestCustomer;
909
- // } else {
910
- // if (is_null($object)) {
911
- // $customer->setEmail($object->getSubscriberEmail())
912
- // ->setStoreId($object->getStoreId());
913
- // } else {
914
- // $customer = $object;
915
- // }
916
- //
917
- // }
918
  $this->subscribeToList($object, $db, $defaultList);
919
  }
920
 
@@ -973,6 +946,7 @@ class Ebizmarts_MageMonkey_Helper_Data extends Mage_Core_Helper_Abstract
973
  }
974
 
975
  $mergeVars = Mage::helper('monkey')->mergeVars($object, FALSE, $listId);
 
976
  $this->_subscribe($listId, $email, $mergeVars, $isConfirmNeed, $db);
977
  }
978
  }
@@ -1142,4 +1116,11 @@ class Ebizmarts_MageMonkey_Helper_Data extends Mage_Core_Helper_Abstract
1142
  }
1143
  return $store;
1144
  }
 
 
 
 
 
 
 
1145
  }
248
  */
249
  public function ecommerce360Active()
250
  {
251
+ $storeId = Mage::app()->getStore()->getId();
252
+ return (bool)(Mage::getStoreConfig(Ebizmarts_MageMonkey_Model_Config::ECOMMERCE360_ACTIVE, $storeId) != 0);
253
  }
254
 
255
  /**
464
  if($company){
465
  $merge_vars['COMPANY'] = $company;
466
  }
467
+ $country = $address->getCountryId();
468
+ if($country){
469
+ $merge_vars['COUNTRY'] = $country;
470
+ }
471
  }
472
 
473
  break;
539
  }
540
  if( !$customer->getId() && !$request->getPost('lastname') ){
541
  $guestLastName = $this->config('guest_lastname', $customer->getStoreId());
542
+
543
  if($guestLastName){
544
  $merge_vars['LNAME'] = $guestLastName;
545
  }
647
  $footerSubscription = $request->getActionName() == 'new' && $request->getControllerName() == 'subscriber' && $request->getModuleName() == 'newsletter';
648
  $customerSubscription = $request->getActionName() == 'saveadditional';
649
  $customerCreateAccountSubscription = $request->getActionName() == 'createpost';
650
+ if($post && !$adminSubscription && !$customerSubscription && !$customerCreateAccountSubscription || Mage::getSingleton('core/session')->getIsOneStepCheckout()){
651
  $defaultList = Mage::helper('monkey')->config('list');
652
  //if can change customer set the groups set by customer else set the groups on MailChimp config
653
  $canChangeGroups = Mage::getStoreConfig('monkey/general/changecustomergroup', $object->getStoreId());
654
+ if ($currentList && ($currentList != $defaultList || $canChangeGroups && !$footerSubscription) && isset($post['list'][$currentList])) {
655
  $subscribeGroups = array(0 => array());
656
  foreach ($post['list'][$currentList] as $toGroups => $value) {
657
  if (is_numeric($toGroups)) {
782
 
783
  $pwd = $customer->generatePassword(8);
784
  $customer->setPassword($pwd);
785
+ try{
786
+ $customer->save();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
787
 
788
+ if ( $customer->isConfirmationRequired() ){
789
  $customer->sendNewAccountEmail('confirmation');
790
+ }
791
+ /**
792
+ * Handle Address related Data
793
+ */
794
+ $billing = $shipping = null;
795
+ if(isset($accountData['billing_address']) && !empty($accountData['billing_address'])){
796
+ $this->_McAddressToMage($accountData, 'billing', $customer);
797
+ }
798
+ if(isset($accountData['shipping_address']) && !empty($accountData['shipping_address'])){
799
+ $this->_McAddressToMage($accountData, 'shipping', $customer);
800
+ }
801
+ }catch(Exception $ex){
802
+ $this->log($ex->getMessage(), 'Monkey.log');
803
  }
804
  }
805
 
881
  $listId = $list['subscribed'];
882
  $this->subscribeToList($object, $db, $listId);
883
  }
884
+ } elseif (isset($post['magemonkey_subscribe']) && $post['magemonkey_subscribe']) {
885
  $lists = explode(',', $post['magemonkey_subscribe']);
886
  foreach ($lists as $listId) {
887
  $this->subscribeToList($object, $db, $listId);
888
  }
889
  //Subscription for One Step Checkout with force subscription
890
  }elseif(Mage::getSingleton('core/session')->getIsOneStepCheckout() && Mage::helper('monkey')->config('checkout_subscribe') > 2 && !Mage::getSingleton('core/session')->getIsUpdateCustomer()){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
891
  $this->subscribeToList($object, $db, $defaultList);
892
  }
893
 
946
  }
947
 
948
  $mergeVars = Mage::helper('monkey')->mergeVars($object, FALSE, $listId);
949
+
950
  $this->_subscribe($listId, $email, $mergeVars, $isConfirmNeed, $db);
951
  }
952
  }
1116
  }
1117
  return $store;
1118
  }
1119
+
1120
+ public function getCanShowCampaignJs(){
1121
+ $storeId = Mage::app()->getStore()->getStoreId();
1122
+ if(Mage::getStoreConfig(Ebizmarts_MageMonkey_Model_Config::ECOMMERCE360_ACTIVE, $storeId) && Mage::helper('monkey')->canMonkey()) {
1123
+ return 'ebizmarts/magemonkey/campaignCatcher.js';
1124
+ }
1125
+ }
1126
  }
app/code/community/Ebizmarts/MageMonkey/Model/Config.php ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ class Ebizmarts_MageMonkey_Model_Config
12
+ {
13
+ const GENERAL_ACTIVE = 'monkey/general/active';
14
+ const GENERAL_APIKEY = 'monkey/general/apikey';
15
+ const GENERAL_OAUTH_WIZARD = 'monkey/general/oauth_wizard';
16
+ const GENERAL_ACCOUNT_DETAILS = 'monkey/general/account_details';
17
+ const GENERAL_RESET_LOCALECOMMERCE360 = 'monkey/general/reset_localecommerce360';
18
+ const GENERAL_RESET_REMOTEECOMMERCE360 = 'monkey/general/reset_remoteecommerce360';
19
+ const GENERAL_MAXLISTAMOUNT = 'monkey/general/maxlistsamount';
20
+ const GENERAL_LIST = 'monkey/general/list';
21
+ const GENERAL_CUTOMERGROUP = 'monkey/general/cutomergroup';
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';
28
+ const GENERAL_GUEST_LASTNAME = 'monkey/general/guest_lastname';
29
+ const GENERAL_CHECKOUT_SUBSCRIBE = 'monkey/general/checkout_subscribe';
30
+ const GENERAL_MARKFIELD = 'monkey/general/markfield';
31
+ const GENERAL_CHECKOUT_ASYNC = 'monkey/general/checkout_async';
32
+ const GENERAL_CRON_IMPORT = 'monkey/general/cron_import';
33
+ const GENERAL_CRON_EXPORT = 'monkey/general/cron_export';
34
+ const GENERAL_WEBHOOK_DELETE = 'monkey/general/webhook_delete';
35
+ const GENERAL_ADMINHTML_NOTIFICATION = 'monkey/general/adminhtml_notification';
36
+ const GENERAL_ENABLE_LOG = 'monkey/general/enable_log';
37
+
38
+
39
+ const ECOMMERCE360_ACTIVE = 'monkey/ecommerce360/active';
40
+ const ECOMMERCE360_ORDER_STATUS = 'monkey/ecommerce360/order_status';
41
+ const ECOMMERCE360_ORDER_MAX = 'monkey/ecommerce360/order_max';
42
+ const ECOMMERCE360_ATTRIBUTES = 'monkey/ecommerce360/attributes';
43
+ }
app/code/community/Ebizmarts/MageMonkey/Model/Cron.php CHANGED
@@ -140,7 +140,6 @@ class Ebizmarts_MageMonkey_Model_Cron
140
  */
141
  protected function subscribed($member, $websiteId = null, $createCustomer = FALSE)
142
  {
143
-
144
  $subscriber = $this->_getSubscriberObject($member['email']);
145
  if( $createCustomer ){
146
  $alreadyExist = false;
@@ -153,7 +152,7 @@ class Ebizmarts_MageMonkey_Model_Cron
153
  }
154
  }
155
 
156
- if($alreadyExist == false){
157
  //Create customer if not exists, and subscribe
158
  $customer = $this->_helper()->createCustomerAccount($member, $websiteId);
159
  }
@@ -269,7 +268,12 @@ class Ebizmarts_MageMonkey_Model_Cron
269
  $processedCount = 0;
270
  foreach($collection as $item){
271
  $processedCount += 1;
272
- $batch []= $this->_helper()->getMergeVars($item, TRUE);
 
 
 
 
 
273
  }
274
  if(count($batch) > 0){
275
 
@@ -422,7 +426,7 @@ class Ebizmarts_MageMonkey_Model_Cron
422
  {
423
  $allStores = Mage::app()->getStores();
424
  foreach($allStores as $storeId => $val) {
425
- if (Mage::getStoreConfig("monkey/general/ecommerce360",$storeId) == 3 && Mage::getModel('monkey/ecommerce360')->isActive()){
426
  Mage::getModel('monkey/ecommerce360')->autoExportJobs($storeId);
427
  }
428
  }
@@ -445,12 +449,19 @@ class Ebizmarts_MageMonkey_Model_Cron
445
  foreach($collection as $item)
446
  {
447
  $info = (array)unserialize($item->getInfo());
448
- $collection2 = Mage::getmodel('monkey/asyncsubscribers')->getCollection()
449
- ->addFieldToFilter('processed',array('eq'=>1))
450
- ->addFieldToFilter('email', array('eq'=>$info['email']));
451
- if(count($collection2) == 0){
452
- continue;
453
- }
 
 
 
 
 
 
 
454
  $orderId = $info['order_id'];
455
  unset($info['order_id']);
456
  if($storeId!=$info['store_id']) {
@@ -466,14 +477,18 @@ class Ebizmarts_MageMonkey_Model_Cron
466
  }
467
  $item->setProcessed(1)->save();
468
 
469
- Mage::getModel('monkey/ecommerce')
470
  ->setOrderIncrementId($info['id'])
471
  ->setOrderId($orderId)
472
  ->setMcCampaignId($info['campaign_id'])
473
- ->setMcEmailId($info['email'])
474
  ->setCreatedAt( Mage::getModel('core/date')->gmtDate() )
475
- ->setStoreId($info['store_id'])
476
- ->save();
 
 
 
 
 
477
  }
478
  }
479
  public function cleanordersAsync()
140
  */
141
  protected function subscribed($member, $websiteId = null, $createCustomer = FALSE)
142
  {
 
143
  $subscriber = $this->_getSubscriberObject($member['email']);
144
  if( $createCustomer ){
145
  $alreadyExist = false;
152
  }
153
  }
154
 
155
+ if(!$alreadyExist){
156
  //Create customer if not exists, and subscribe
157
  $customer = $this->_helper()->createCustomerAccount($member, $websiteId);
158
  }
268
  $processedCount = 0;
269
  foreach($collection as $item){
270
  $processedCount += 1;
271
+ $isOnMailChimp = Mage::helper('monkey')->subscribedToList($item->getEmail(), $listId);
272
+ if($isOnMailChimp){
273
+ $api->listUpdateMember($listId, $item->getEmail(), $this->_helper()->getMergeVars($item));
274
+ }else {
275
+ $batch [] = $this->_helper()->getMergeVars($item, TRUE);
276
+ }
277
  }
278
  if(count($batch) > 0){
279
 
426
  {
427
  $allStores = Mage::app()->getStores();
428
  foreach($allStores as $storeId => $val) {
429
+ if (Mage::getStoreConfig(Ebizmarts_MageMonkey_Model_Config::ECOMMERCE360_ACTIVE,$storeId) == 3 && Mage::getModel('monkey/ecommerce360')->isActive()){
430
  Mage::getModel('monkey/ecommerce360')->autoExportJobs($storeId);
431
  }
432
  }
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))
454
+ // ->addFieldToFilter('email', array('eq'=>$info['email']));
455
+ // if(count($collection2) == 0){
456
+ // $storeId = $info['store_id'];
457
+ // $storeLists = Mage::helper('monkey')->getListsByStoreId($storeId);
458
+ // foreach($storeLists as $listId) {
459
+ // $isOnMailChimp = Mage::helper('monkey')->subscribedToList($info['email'], $listId);
460
+ // if ($isOnMailChimp != 1) {
461
+ // continue 2;
462
+ // }
463
+ // }
464
+ // }
465
  $orderId = $info['order_id'];
466
  unset($info['order_id']);
467
  if($storeId!=$info['store_id']) {
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()
app/code/community/Ebizmarts/MageMonkey/Model/Ecommerce360.php CHANGED
@@ -70,17 +70,17 @@ class Ebizmarts_MageMonkey_Model_Ecommerce360
70
  */
71
  public function saveCookie(Varien_Event_Observer $observer)
72
  {
73
- if( $this->isActive() ){
74
- $request = Mage::app()->getRequest();
75
-
76
- $thirty_days = time()+60*60*24*30;
77
- if ( $request->getParam('mc_cid') ){
78
- $this->getCookie()->set('magemonkey_campaign_id', $request->getParam('mc_cid'), $thirty_days);
79
- }
80
- if ( $request->getParam('mc_eid') ){
81
- $this->getCookie()->set('magemonkey_email_id', $request->getParam('mc_eid'), $thirty_days);
82
- }
83
- }
84
  return $observer;
85
  }
86
 
@@ -92,9 +92,10 @@ class Ebizmarts_MageMonkey_Model_Ecommerce360
92
  */
93
  public function run(Varien_Event_Observer $observer)
94
  {
 
95
  $order = $observer->getEvent()->getOrder();
96
  if ( ( ($this->_getCampaignCookie() &&
97
- $this->_getEmailCookie()) || Mage::helper('monkey')->config('ecommerce360') == 2 ) &&
98
  $this->isActive() ){
99
  $this->logSale($order);
100
  }
@@ -121,7 +122,7 @@ class Ebizmarts_MageMonkey_Model_Ecommerce360
121
  if ($discount != 0) {
122
  $subtotal = $subtotal + ($discount);
123
  }
124
-
125
  $this->_info = array(
126
  'id' => $this->_order->getIncrementId(),
127
  'total' => $subtotal,
@@ -129,7 +130,7 @@ class Ebizmarts_MageMonkey_Model_Ecommerce360
129
  'tax' => $this->_order->getBaseTaxAmount(),
130
  'store_id' => $this->_order->getStoreId(),
131
  'store_name' => $this->_order->getStoreName(),
132
- 'order_date' => $this->_order->getCreatedAt(),
133
  'plugin_id' => 1215,
134
  'items' => array()
135
  );
@@ -137,7 +138,7 @@ class Ebizmarts_MageMonkey_Model_Ecommerce360
137
  $emailCookie = $this->_getEmailCookie();
138
  $campaignCookie = $this->_getCampaignCookie();
139
 
140
- $this->setItemstoSend();
141
  $rs = false;
142
  if($emailCookie && $campaignCookie){
143
  $this->_info ['email_id']= $emailCookie;
@@ -209,7 +210,7 @@ class Ebizmarts_MageMonkey_Model_Ecommerce360
209
  * @access private
210
  * @return Ebizmarts_MageMonkey_Model_Ecommerce360
211
  */
212
- private function setItemstoSend()
213
  {
214
  foreach ($this->_order->getAllItems() as $item){
215
  $mcitem = array();
@@ -225,6 +226,24 @@ class Ebizmarts_MageMonkey_Model_Ecommerce360
225
  $mcitem['product_id'] = $product->getEntityId();
226
  $mcitem['sku'] = $product->getSku();
227
  $mcitem['product_name'] = $product->getName();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
228
 
229
  $names = array();
230
  $cat_ids = $product->getCategoryIds();
@@ -295,8 +314,8 @@ class Ebizmarts_MageMonkey_Model_Ecommerce360
295
  public function autoExportJobs($storeId){
296
  $allow_sent = false;
297
  //Get status options selected in the Configuration
298
- $states = explode(',', Mage::helper('monkey')->config('order_status',$storeId));
299
- $max = Mage::getStoreConfig("monkey/general/order_max", $storeId);
300
  $count = 0;
301
  foreach($states as $state) {
302
  if($max == $count){
@@ -334,6 +353,7 @@ class Ebizmarts_MageMonkey_Model_Ecommerce360
334
  if ($discount != 0) {
335
  $subtotal = $subtotal + ($discount);
336
  }
 
337
 
338
  $this->_info = array(
339
  'id' => $this->_order->getIncrementId(),
@@ -342,14 +362,14 @@ class Ebizmarts_MageMonkey_Model_Ecommerce360
342
  'tax' => $this->_order->getBaseTaxAmount(),
343
  'store_id' => $this->_order->getStoreId(),
344
  'store_name' => $this->_order->getStoreName(),
345
- 'order_date' => $this->_order->getCreatedAt(),
346
  'plugin_id' => 1215,
347
  'items' => array()
348
  );
349
 
350
  $email = $this->_order->getCustomerEmail();
351
  $campaign = $this->_order->getEbizmartsMagemonkeyCampaignId();
352
- $this->setItemstoSend();
353
  $rs = false;
354
  if ($email && $campaign) {
355
  $this->_info ['email_id'] = $email;
@@ -359,7 +379,7 @@ class Ebizmarts_MageMonkey_Model_Ecommerce360
359
  $sync = Mage::getModel('monkey/asyncorders');
360
  $this->_info['order_id'] = $this->_order->getId();
361
  $sync->setInfo(serialize($this->_info))
362
- ->setCreatedAt(Mage::getModel('core/date')->gmtDate())
363
  ->setProcessed(0)
364
  ->save();
365
  $rs['complete'] = true;
@@ -386,7 +406,7 @@ class Ebizmarts_MageMonkey_Model_Ecommerce360
386
  ->setOrderIncrementId($this->_info['id'])
387
  ->setOrderId($this->_info['order_id'])
388
  ->setMcEmailId($this->_info ['email'])
389
- ->setCreatedAt( Mage::getModel('core/date')->gmtDate() )
390
  ->setStoreId($this->_info['store_id']);
391
  if(isset($this->_info['campaign_id']) && $this->_info['campaign_id']){
392
  $order->setMcCampaignId($this->_info['campaign_id']);
70
  */
71
  public function saveCookie(Varien_Event_Observer $observer)
72
  {
73
+ // if( $this->isActive() ){
74
+ // $request = Mage::app()->getRequest();
75
+ //
76
+ // $thirty_days = time()+60*60*24*30;
77
+ // if ( $request->getParam('mc_cid') ){
78
+ // $this->getCookie()->set('magemonkey_campaign_id', $request->getParam('mc_cid'), $thirty_days);
79
+ // }
80
+ // if ( $request->getParam('mc_eid') ){
81
+ // $this->getCookie()->set('magemonkey_email_id', $request->getParam('mc_eid'), $thirty_days);
82
+ // }
83
+ // }
84
  return $observer;
85
  }
86
 
92
  */
93
  public function run(Varien_Event_Observer $observer)
94
  {
95
+ $storeId = Mage::app()->getStore()->getId();
96
  $order = $observer->getEvent()->getOrder();
97
  if ( ( ($this->_getCampaignCookie() &&
98
+ $this->_getEmailCookie()) || Mage::getStoreConfig(Ebizmarts_MageMonkey_Model_Config::ECOMMERCE360_ACTIVE, $storeId) == 2 ) &&
99
  $this->isActive() ){
100
  $this->logSale($order);
101
  }
122
  if ($discount != 0) {
123
  $subtotal = $subtotal + ($discount);
124
  }
125
+ $createdAtArr = str_split($this->_order->getCreatedAt(), 10);
126
  $this->_info = array(
127
  'id' => $this->_order->getIncrementId(),
128
  'total' => $subtotal,
130
  'tax' => $this->_order->getBaseTaxAmount(),
131
  'store_id' => $this->_order->getStoreId(),
132
  'store_name' => $this->_order->getStoreName(),
133
+ 'order_date' => $createdAtArr[0],
134
  'plugin_id' => 1215,
135
  'items' => array()
136
  );
138
  $emailCookie = $this->_getEmailCookie();
139
  $campaignCookie = $this->_getCampaignCookie();
140
 
141
+ $this->setItemstoSend($this->_order->getStoreId());
142
  $rs = false;
143
  if($emailCookie && $campaignCookie){
144
  $this->_info ['email_id']= $emailCookie;
210
  * @access private
211
  * @return Ebizmarts_MageMonkey_Model_Ecommerce360
212
  */
213
+ private function setItemstoSend($storeId)
214
  {
215
  foreach ($this->_order->getAllItems() as $item){
216
  $mcitem = array();
226
  $mcitem['product_id'] = $product->getEntityId();
227
  $mcitem['sku'] = $product->getSku();
228
  $mcitem['product_name'] = $product->getName();
229
+ $attributesToSend = explode(',', Mage::getStoreConfig(Ebizmarts_MageMonkey_Model_Config::ECOMMERCE360_ATTRIBUTES, $storeId));
230
+ $attributes = $product->getAttributes();
231
+ $productAttributes = '';
232
+ $pipe = false;
233
+ foreach($attributes as $attribute){
234
+ if($pipe){
235
+ $productAttributes .= '|';
236
+ }
237
+ if(in_array($attribute->getAttributeCode(), $attributesToSend) && is_string($attribute->getFrontend()->getValue($product)) && trim($attribute->getFrontend()->getValue($product)) != ''){
238
+ $productAttributes .= $attribute->getAttributeCode().':'.$attribute->getFrontend()->getValue($product);
239
+ $pipe = true;
240
+ }else{
241
+ $pipe = false;
242
+ }
243
+ }
244
+ if($productAttributes){
245
+ $mcitem['product_name'] .= '['.$productAttributes.']';
246
+ }
247
 
248
  $names = array();
249
  $cat_ids = $product->getCategoryIds();
314
  public function autoExportJobs($storeId){
315
  $allow_sent = false;
316
  //Get status options selected in the Configuration
317
+ $states = explode(',', Mage::getStoreConfig(Ebizmarts_MageMonkey_Model_Config::ECOMMERCE360_ORDER_STATUS,$storeId));
318
+ $max = Mage::getStoreConfig(Ebizmarts_MageMonkey_Model_Config::ECOMMERCE360_ORDER_MAX, $storeId);
319
  $count = 0;
320
  foreach($states as $state) {
321
  if($max == $count){
353
  if ($discount != 0) {
354
  $subtotal = $subtotal + ($discount);
355
  }
356
+ $createdAtArr = str_split($this->_order->getCreatedAt(), 10);
357
 
358
  $this->_info = array(
359
  'id' => $this->_order->getIncrementId(),
362
  'tax' => $this->_order->getBaseTaxAmount(),
363
  'store_id' => $this->_order->getStoreId(),
364
  'store_name' => $this->_order->getStoreName(),
365
+ 'order_date' => $createdAtArr[0],
366
  'plugin_id' => 1215,
367
  'items' => array()
368
  );
369
 
370
  $email = $this->_order->getCustomerEmail();
371
  $campaign = $this->_order->getEbizmartsMagemonkeyCampaignId();
372
+ $this->setItemstoSend($storeId);
373
  $rs = false;
374
  if ($email && $campaign) {
375
  $this->_info ['email_id'] = $email;
379
  $sync = Mage::getModel('monkey/asyncorders');
380
  $this->_info['order_id'] = $this->_order->getId();
381
  $sync->setInfo(serialize($this->_info))
382
+ ->setCreatedAt($createdAtArr[0])//Mage::getModel('core/date')->gmtDate())
383
  ->setProcessed(0)
384
  ->save();
385
  $rs['complete'] = true;
406
  ->setOrderIncrementId($this->_info['id'])
407
  ->setOrderId($this->_info['order_id'])
408
  ->setMcEmailId($this->_info ['email'])
409
+ ->setCreatedAt($createdAtArr[0])
410
  ->setStoreId($this->_info['store_id']);
411
  if(isset($this->_info['campaign_id']) && $this->_info['campaign_id']){
412
  $order->setMcCampaignId($this->_info['campaign_id']);
app/code/community/Ebizmarts/MageMonkey/Model/Observer.php CHANGED
@@ -37,21 +37,26 @@ class Ebizmarts_MageMonkey_Model_Observer
37
  return $observer;
38
  }
39
 
40
- if(Mage::getSingleton('core/session')->getIsOneStepCheckout() && !Mage::getSingleton('core/session')->getRegisterCheckoutSuccess()){
41
  return $observer;
42
  }
43
 
 
44
  if( TRUE === $subscriber->getIsStatusChanged() ) {
 
45
  Mage::getSingleton('core/session')->setIsHandleSubscriber(TRUE);
46
  if (Mage::getSingleton('core/session')->getIsOneStepCheckout() || Mage::getSingleton('core/session')->getMonkeyCheckout() || Mage::getSingleton('core/session')->getIsUpdateCustomer()) {
47
  $saveOnDb = Mage::helper('monkey')->config('checkout_async');
48
  Mage::helper('monkey')->subscribeToList($subscriber, $saveOnDb);
49
  } else {
50
- Mage::helper('monkey')->subscribeToList($subscriber, 0);
 
 
 
51
  }
52
-
53
  Mage::getSingleton('core/session')->setIsHandleSubscriber(FALSE);
54
  }
 
55
  return $observer;
56
  }
57
 
@@ -117,10 +122,26 @@ class Ebizmarts_MageMonkey_Model_Observer
117
  */
118
  public function saveConfig(Varien_Event_Observer $observer)
119
  {
120
- $scope = is_null($observer->getEvent()->getStore()) ? Mage::app()->getDefaultStoreView()->getCode(): $observer->getEvent()->getStore();
 
 
 
 
 
 
 
 
 
 
121
  $post = Mage::app()->getRequest()->getPost();
122
  $request = Mage::app()->getRequest();
123
 
 
 
 
 
 
 
124
  if( !isset($post['groups']) ){
125
  return $observer;
126
  }
@@ -152,12 +173,6 @@ class Ebizmarts_MageMonkey_Model_Observer
152
 
153
  }
154
 
155
- if(!$selectedLists)
156
- {
157
- $message = Mage::helper('monkey')->__('There is no List selected please save the configuration again');
158
- Mage::getSingleton('adminhtml/session')->addWarning($message);
159
- }
160
-
161
  if(isset($post['groups']['general']['fields']['additional_lists']['value']))
162
  {
163
  $additionalLists = $post['groups']['general']['fields']['additional_lists']['value'];
@@ -170,7 +185,11 @@ class Ebizmarts_MageMonkey_Model_Observer
170
  }
171
  }
172
 
173
- if(is_array($additionalLists)){
 
 
 
 
174
  foreach($additionalLists as $additional) {
175
  if($additional == $selectedLists[0]) {
176
  $message = Mage::helper('monkey')->__('Be Careful! You have choosen the same list for "General Subscription" and "Additional Lists". Please change this values and save the configuration again');
@@ -185,14 +204,6 @@ class Ebizmarts_MageMonkey_Model_Observer
185
  //Generating Webhooks URL
186
  $hookUrl = '';
187
  try{
188
- switch ($scope) {
189
- case 'default':
190
- $store = Mage::app()->getDefaultStoreView()->getCode();
191
- break;
192
- default:
193
- $store = $scope;
194
- break;
195
- }
196
  $hookUrl = Mage::getModel('core/url')->setStore($store)->getUrl(Ebizmarts_MageMonkey_Model_Monkey::WEBHOOKS_PATH, array('wkey' => $webhooksKey));
197
  }catch(Exception $e){
198
  $hookUrl = Mage::getModel('core/url')->getUrl(Ebizmarts_MageMonkey_Model_Monkey::WEBHOOKS_PATH, array('wkey' => $webhooksKey));
@@ -314,7 +325,7 @@ class Ebizmarts_MageMonkey_Model_Observer
314
  Mage::getSingleton('core/session')->setIsUpdateCustomer(TRUE);
315
  //subscribe to MailChimp newsletter
316
  $api = Mage::getSingleton('monkey/api', array('store' => $customer->getStoreId()));
317
- $post = Mage::app()->getRequest()->getPost();
318
  Mage::helper('monkey')->listsSubscription($customer, $post, $saveOnDb);
319
  $lists = $api->listsForEmail($oldEmail);
320
  if (is_array($lists)) {
@@ -328,11 +339,12 @@ class Ebizmarts_MageMonkey_Model_Observer
328
  //unsubscribe from Magento when customer unsubscribed from admin
329
  if ($request->getActionName() == 'save' && $request->getControllerName() == 'customer' && $request->getModuleName() == (string)Mage::getConfig()->getNode('admin/routers/adminhtml/args/frontName')) {
330
  if (isset($post['subscription'])) {
331
- $api->listSubscribe($defaultList, $customer->getEmail(), $mergeVars, $isConfirmNeed);
332
  } else {
333
  $subscriber = Mage::getModel('newsletter/subscriber')
334
  ->loadByEmail($customer->getEmail());
335
  $subscriber->setImportMode(TRUE)->unsubscribe();
 
336
  }
337
  }
338
  Mage::getSingleton('core/session')->setIsUpdateCustomer(FALSE);
37
  return $observer;
38
  }
39
 
40
+ if(Mage::getSingleton('core/session')->getIsOneStepCheckout() && !Mage::getSingleton('core/session')->getMonkeyCheckout()){
41
  return $observer;
42
  }
43
 
44
+ $post = Mage::app()->getRequest()->getPost();
45
  if( TRUE === $subscriber->getIsStatusChanged() ) {
46
+
47
  Mage::getSingleton('core/session')->setIsHandleSubscriber(TRUE);
48
  if (Mage::getSingleton('core/session')->getIsOneStepCheckout() || Mage::getSingleton('core/session')->getMonkeyCheckout() || Mage::getSingleton('core/session')->getIsUpdateCustomer()) {
49
  $saveOnDb = Mage::helper('monkey')->config('checkout_async');
50
  Mage::helper('monkey')->subscribeToList($subscriber, $saveOnDb);
51
  } else {
52
+ $post = Mage::app()->getRequest()->getPost();
53
+ if(isset($post['magemonkey_subscribe']) && $post['magemonkey_subscribe'] || !isset($post['magemonkey_subscribe'])) {
54
+ Mage::helper('monkey')->subscribeToList($subscriber, 0);
55
+ }
56
  }
 
57
  Mage::getSingleton('core/session')->setIsHandleSubscriber(FALSE);
58
  }
59
+
60
  return $observer;
61
  }
62
 
122
  */
123
  public function saveConfig(Varien_Event_Observer $observer)
124
  {
125
+ if(Mage::app()->getRequest()->getParam('store')) {
126
+ $scope = 'store';
127
+ }
128
+ elseif(Mage::app()->getRequest()->getParam('website')) {
129
+ $scope = 'website';
130
+ }
131
+ else {
132
+ $scope = 'default';
133
+ }
134
+
135
+ $store = is_null($observer->getEvent()->getStore()) ? Mage::app()->getDefaultStoreView()->getCode(): $observer->getEvent()->getStore();
136
  $post = Mage::app()->getRequest()->getPost();
137
  $request = Mage::app()->getRequest();
138
 
139
+ if(!Mage::getStoreConfig(Ebizmarts_MageMonkey_Model_Config::GENERAL_ACTIVE, $store)) {
140
+ $config = new Mage_Core_Model_Config();
141
+ $config->saveConfig(Ebizmarts_MageMonkey_Model_Config::ECOMMERCE360_ACTIVE,false,$scope,$store);
142
+ Mage::getConfig()->cleanCache();
143
+ }
144
+
145
  if( !isset($post['groups']) ){
146
  return $observer;
147
  }
173
 
174
  }
175
 
 
 
 
 
 
 
176
  if(isset($post['groups']['general']['fields']['additional_lists']['value']))
177
  {
178
  $additionalLists = $post['groups']['general']['fields']['additional_lists']['value'];
185
  }
186
  }
187
 
188
+ if(!$selectedLists[0])
189
+ {
190
+ $message = Mage::helper('monkey')->__('There is no List selected please save the configuration again');
191
+ Mage::getSingleton('adminhtml/session')->addWarning($message);
192
+ }elseif(is_array($additionalLists)){
193
  foreach($additionalLists as $additional) {
194
  if($additional == $selectedLists[0]) {
195
  $message = Mage::helper('monkey')->__('Be Careful! You have choosen the same list for "General Subscription" and "Additional Lists". Please change this values and save the configuration again');
204
  //Generating Webhooks URL
205
  $hookUrl = '';
206
  try{
 
 
 
 
 
 
 
 
207
  $hookUrl = Mage::getModel('core/url')->setStore($store)->getUrl(Ebizmarts_MageMonkey_Model_Monkey::WEBHOOKS_PATH, array('wkey' => $webhooksKey));
208
  }catch(Exception $e){
209
  $hookUrl = Mage::getModel('core/url')->getUrl(Ebizmarts_MageMonkey_Model_Monkey::WEBHOOKS_PATH, array('wkey' => $webhooksKey));
325
  Mage::getSingleton('core/session')->setIsUpdateCustomer(TRUE);
326
  //subscribe to MailChimp newsletter
327
  $api = Mage::getSingleton('monkey/api', array('store' => $customer->getStoreId()));
328
+ $post = Mage::app()->getRequest()->getPost();
329
  Mage::helper('monkey')->listsSubscription($customer, $post, $saveOnDb);
330
  $lists = $api->listsForEmail($oldEmail);
331
  if (is_array($lists)) {
339
  //unsubscribe from Magento when customer unsubscribed from admin
340
  if ($request->getActionName() == 'save' && $request->getControllerName() == 'customer' && $request->getModuleName() == (string)Mage::getConfig()->getNode('admin/routers/adminhtml/args/frontName')) {
341
  if (isset($post['subscription'])) {
342
+ //$api->listSubscribe($defaultList, $customer->getEmail(), $mergeVars, $isConfirmNeed);
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);
app/code/community/Ebizmarts/MageMonkey/Model/System/Config/Source/Attributes.php ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * MailChimp lists source file
5
+ *
6
+ * @category Ebizmarts
7
+ * @package Ebizmarts_MageMonkey
8
+ * @author Ebizmarts Team <info@ebizmarts.com>
9
+ * @license http://opensource.org/licenses/osl-3.0.php
10
+ */
11
+
12
+ class Ebizmarts_MageMonkey_Model_System_Config_Source_Attributes
13
+ {
14
+
15
+ /**
16
+ * Lists for API key will be stored here
17
+ *
18
+ * @access protected
19
+ * @var array Email lists for given API key
20
+ */
21
+ protected $_attributes = null;
22
+
23
+ /**
24
+ * Load lists and store on class property
25
+ *
26
+ * @return void
27
+ */
28
+ public function __construct()
29
+ {
30
+ $attributes = Mage::getResourceModel('catalog/product_attribute_collection')
31
+ ->getItems();
32
+
33
+ $this->_attributes = $attributes;
34
+ }
35
+
36
+ /**
37
+ * Options getter
38
+ *
39
+ * @return array
40
+ */
41
+ public function toOptionArray()
42
+ {
43
+ $attributes = array();
44
+
45
+ if(is_array($this->_attributes)){
46
+
47
+ foreach($this->_attributes as $attribute){
48
+ $attributes []= array('value' => $attribute->getAttributecode(), 'label' => $attribute->getAttributecode() );
49
+ }
50
+
51
+ }else{
52
+ $attributes []= array('value' => '', 'label' => Mage::helper('monkey')->__('--- No data ---'));
53
+ }
54
+
55
+ return $attributes;
56
+ }
57
+
58
+ }
app/code/community/Ebizmarts/MageMonkey/Model/System/Config/Source/CustomerGroup.php CHANGED
@@ -17,7 +17,7 @@ class Ebizmarts_MageMonkey_Model_System_Config_Source_CustomerGroup
17
  */
18
  public function __construct()
19
  {
20
- $listId = Mage::getStoreConfig('monkey/general/list');
21
  if( is_null($this->_group) ){
22
  $this->_group = Mage::getSingleton('monkey/api')
23
  ->listInterestGroupings($listId);
@@ -31,22 +31,21 @@ class Ebizmarts_MageMonkey_Model_System_Config_Source_CustomerGroup
31
  */
32
  public function toOptionArray()
33
  {
34
- $lists = array();
35
 
36
- // if(is_array($this->_group)){
37
- // foreach($this->_group as $group) {
38
- // $lists[] = array('value'=> $group['id'], 'label' => $group['name'],'style'=>'font-weight: bold;');
39
- // $prefix = $group['id'];
40
- // foreach($group['groups'] as $key=>$list){
41
- // $lists []= array('value' => $prefix.'_'.$key, 'label' => $list['name'],'style'=>'padding-left:20px');
42
- // }
43
- // }
44
- //
45
- // }else{
46
- // $lists []= array('value' => '', 'label' => Mage::helper('monkey')->__('--- No data ---'));
47
- // }
48
 
49
- return $lists;
 
 
 
50
  }
51
 
52
  }
17
  */
18
  public function __construct()
19
  {
20
+ $listId = Mage::helper('monkey')->config('list');
21
  if( is_null($this->_group) ){
22
  $this->_group = Mage::getSingleton('monkey/api')
23
  ->listInterestGroupings($listId);
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.26</version>
14
  </Ebizmarts_MageMonkey>
15
  </modules>
16
  <global>
@@ -234,18 +234,20 @@
234
  <general>
235
  <active>0</active>
236
  <double_optin>System->Configuration->Customers->Newsletter->Subscription Options->Need to Confirm</double_optin>
237
- <ecommerce360>0</ecommerce360>
238
  <showreallistname>0</showreallistname>
239
  <maxlistsamount>25</maxlistsamount>
240
  <checkout_subscribe>0</checkout_subscribe>
241
  <transactional_emails>false</transactional_emails>
242
  <map_fields><![CDATA[a:14:{i:0;a:2:{s:7:"magento";s:9:"firstname";s:9:"mailchimp";s:5:"FNAME";}i:1;a:2:{s:7:"magento";s:8:"lastname";s:9:"mailchimp";s:5:"LNAME";}i:2;a:2:{s:7:"magento";s:3:"dob";s:9:"mailchimp";s:3:"DOB";}i:3;a:2:{s:7:"magento";s:6:"prefix";s:9:"mailchimp";s:7:"PRENAME";}i:4;a:2:{s:7:"magento";s:15:"billing_address";s:9:"mailchimp";s:7:"BILLING";}i:5;a:2:{s:7:"magento";s:16:"shipping_address";s:9:"mailchimp";s:8:"SHIPPING";}i:6;a:2:{s:7:"magento";s:6:"gender";s:9:"mailchimp";s:6:"GENDER";}i:7;a:2:{s:7:"magento";s:8:"store_id";s:9:"mailchimp";s:7:"STOREID";}i:8;a:2:{s:7:"magento";s:10:"website_id";s:9:"mailchimp";s:7:"WEBSITE";}i:9;a:2:{s:7:"magento";s:16:"date_of_purchase";s:9:"mailchimp";s:3:"DOP";}i:10;a:2:{s:7:"magento";s:19:"ee_customer_balance";s:9:"mailchimp";s:9:"STORECRED";}i:11;a:2:{s:7:"magento";s:8:"group_id";s:9:"mailchimp";s:6:"CGROUP";}i:12;a:2:{s:7:"magento";s:9:"telephone";s:9:"mailchimp";s:9:"TELEPHONE";}i:13;a:2:{s:7:"magento";s:7:"company";s:9:"mailchimp";s:7:"COMPANY";}}]]></map_fields>
243
  <cron_export>1000</cron_export>
244
- <order_status>all_status</order_status>
245
  <enable_log>1</enable_log>
246
  <checkout_async>1</checkout_async>
247
  <markfield>HASCLICKED</markfield>
248
  </general>
 
 
 
 
249
  <notifications>
250
  <updates_url><![CDATA[http://store.ebizmarts.com/media/feeds/]]></updates_url>
251
  <check_frequency>86400</check_frequency>
10
  <config>
11
  <modules>
12
  <Ebizmarts_MageMonkey>
13
+ <version>1.1.28</version>
14
  </Ebizmarts_MageMonkey>
15
  </modules>
16
  <global>
234
  <general>
235
  <active>0</active>
236
  <double_optin>System->Configuration->Customers->Newsletter->Subscription Options->Need to Confirm</double_optin>
 
237
  <showreallistname>0</showreallistname>
238
  <maxlistsamount>25</maxlistsamount>
239
  <checkout_subscribe>0</checkout_subscribe>
240
  <transactional_emails>false</transactional_emails>
241
  <map_fields><![CDATA[a:14:{i:0;a:2:{s:7:"magento";s:9:"firstname";s:9:"mailchimp";s:5:"FNAME";}i:1;a:2:{s:7:"magento";s:8:"lastname";s:9:"mailchimp";s:5:"LNAME";}i:2;a:2:{s:7:"magento";s:3:"dob";s:9:"mailchimp";s:3:"DOB";}i:3;a:2:{s:7:"magento";s:6:"prefix";s:9:"mailchimp";s:7:"PRENAME";}i:4;a:2:{s:7:"magento";s:15:"billing_address";s:9:"mailchimp";s:7:"BILLING";}i:5;a:2:{s:7:"magento";s:16:"shipping_address";s:9:"mailchimp";s:8:"SHIPPING";}i:6;a:2:{s:7:"magento";s:6:"gender";s:9:"mailchimp";s:6:"GENDER";}i:7;a:2:{s:7:"magento";s:8:"store_id";s:9:"mailchimp";s:7:"STOREID";}i:8;a:2:{s:7:"magento";s:10:"website_id";s:9:"mailchimp";s:7:"WEBSITE";}i:9;a:2:{s:7:"magento";s:16:"date_of_purchase";s:9:"mailchimp";s:3:"DOP";}i:10;a:2:{s:7:"magento";s:19:"ee_customer_balance";s:9:"mailchimp";s:9:"STORECRED";}i:11;a:2:{s:7:"magento";s:8:"group_id";s:9:"mailchimp";s:6:"CGROUP";}i:12;a:2:{s:7:"magento";s:9:"telephone";s:9:"mailchimp";s:9:"TELEPHONE";}i:13;a:2:{s:7:"magento";s:7:"company";s:9:"mailchimp";s:7:"COMPANY";}}]]></map_fields>
242
  <cron_export>1000</cron_export>
 
243
  <enable_log>1</enable_log>
244
  <checkout_async>1</checkout_async>
245
  <markfield>HASCLICKED</markfield>
246
  </general>
247
+ <ecommerce360>
248
+ <active>0</active>
249
+ <order_status>all_status</order_status>
250
+ </ecommerce360>
251
  <notifications>
252
  <updates_url><![CDATA[http://store.ebizmarts.com/media/feeds/]]></updates_url>
253
  <check_frequency>86400</check_frequency>
app/code/community/Ebizmarts/MageMonkey/etc/system.xml CHANGED
@@ -116,7 +116,7 @@
116
  <show_in_website>0</show_in_website>
117
  <show_in_store>1</show_in_store>
118
  <can_be_empty>1</can_be_empty>
119
- <comment>Synchronize Magento's General Subscription List with this MailChimp list</comment>
120
  </list>
121
  <cutomergroup translate="label comment">
122
  <label>Subscriber Group</label>
@@ -127,6 +127,7 @@
127
  <show_in_website>0</show_in_website>
128
  <show_in_store>1</show_in_store>
129
  <can_be_empty>1</can_be_empty>
 
130
  </cutomergroup>
131
  <changecustomergroup translate="label comment">
132
  <label>Customer can change groups</label>
@@ -168,43 +169,6 @@
168
  <show_in_store>1</show_in_store>
169
  <comment><![CDATA[<b>IMPORTANT</b>: Should be set to <b>Yes</b>. Abusing this may cause your account to be suspended.<br/><a target='_blank' href='http://kb.mailchimp.com/article/how-does-confirmed-optin-or-double-optin-work/'>How does double opt-in work?</a>]]></comment>
170
  </double_optin>
171
- <ecommerce360 translate="label comment">
172
- <label>Enable Ecommerce360 for</label>
173
- <frontend_type>select</frontend_type>
174
- <source_model>monkey/system_config_source_ecommerce360</source_model>
175
- <sort_order>60</sort_order>
176
- <show_in_default>1</show_in_default>
177
- <show_in_website>1</show_in_website>
178
- <show_in_store>1</show_in_store>
179
- <can_be_empty>1</can_be_empty>
180
- <comment><![CDATA[Send new orders to MailChimp using Ecommerce360.<br/><a target='_blank' href='http://kb.mailchimp.com/article/how-do-i-turn-on-ecommerce360-tracking-on-my-campaigns/'>How do I turn on Ecommerce360 tracking on my campaigns?</a><br/><a target='_blank' href='http://kb.mailchimp.com/article/how-to-segment-your-list-based-on-your-customers-purchase-activity'>How to segment your list based on your customers purchase activity</a>]]></comment>
181
- </ecommerce360>
182
- <order_status translate="label comment">
183
- <label>Order Status</label>
184
- <frontend_type>multiselect</frontend_type>
185
- <source_model>adminhtml/system_config_source_order_status</source_model>
186
- <sort_order>65</sort_order>
187
- <show_in_default>1</show_in_default>
188
- <show_in_website>0</show_in_website>
189
- <show_in_store>1</show_in_store>
190
- <comment><![CDATA[<b>IMPORTANT</b>: By default this function run every one hour. If you want to edit this value visit our <a target='_blank' href='http://wiki.ebizmarts.com/installation/configuration/faq#TOC-How-I-set-up-the-Magento-cron-'>wiki</a>]]></comment>
191
- <depends>
192
- <ecommerce360>3</ecommerce360>
193
- </depends>
194
- </order_status>
195
- <order_max translate="label comment">
196
- <label>Max Orders by run</label>
197
- <frontend_type>select</frontend_type>
198
- <source_model>monkey/system_config_source_orderProcessLimit</source_model>
199
- <sort_order>67</sort_order>
200
- <show_in_default>1</show_in_default>
201
- <show_in_website>0</show_in_website>
202
- <show_in_store>1</show_in_store>
203
- <comment></comment>
204
- <depends>
205
- <ecommerce360>3</ecommerce360>
206
- </depends>
207
- </order_max>
208
  <map_fields translate="label comment">
209
  <label>Customer Fields Mapping</label>
210
  <frontend_model>monkey/adminhtml_system_config_form_field_mapfields</frontend_model>
@@ -316,6 +280,67 @@
316
  </enable_log>
317
  </fields>
318
  </general>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
319
  </groups>
320
  </monkey>
321
  </sections>
116
  <show_in_website>0</show_in_website>
117
  <show_in_store>1</show_in_store>
118
  <can_be_empty>1</can_be_empty>
119
+ <comment><![CDATA[Synchronize Magento's General Subscription List with this MailChimp list]]></comment>
120
  </list>
121
  <cutomergroup translate="label comment">
122
  <label>Subscriber Group</label>
127
  <show_in_website>0</show_in_website>
128
  <show_in_store>1</show_in_store>
129
  <can_be_empty>1</can_be_empty>
130
+ <comment><![CDATA[Select MailChimp groups a subscriber can join.]]></comment>
131
  </cutomergroup>
132
  <changecustomergroup translate="label comment">
133
  <label>Customer can change groups</label>
169
  <show_in_store>1</show_in_store>
170
  <comment><![CDATA[<b>IMPORTANT</b>: Should be set to <b>Yes</b>. Abusing this may cause your account to be suspended.<br/><a target='_blank' href='http://kb.mailchimp.com/article/how-does-confirmed-optin-or-double-optin-work/'>How does double opt-in work?</a>]]></comment>
171
  </double_optin>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
172
  <map_fields translate="label comment">
173
  <label>Customer Fields Mapping</label>
174
  <frontend_model>monkey/adminhtml_system_config_form_field_mapfields</frontend_model>
280
  </enable_log>
281
  </fields>
282
  </general>
283
+ <ecommerce360>
284
+ <label>Ecommerce 360</label>
285
+ <frontend_type>text</frontend_type>
286
+ <show_in_default>1</show_in_default>
287
+ <show_in_website>1</show_in_website>
288
+ <show_in_store>1</show_in_store>
289
+ <sort_order>180</sort_order>
290
+ <fields>
291
+ <active translate="label comment">
292
+ <label>Enable Ecommerce360 for</label>
293
+ <frontend_type>select</frontend_type>
294
+ <source_model>monkey/system_config_source_ecommerce360</source_model>
295
+ <sort_order>190</sort_order>
296
+ <show_in_default>1</show_in_default>
297
+ <show_in_website>1</show_in_website>
298
+ <show_in_store>1</show_in_store>
299
+ <can_be_empty>1</can_be_empty>
300
+ <comment><![CDATA[Send new orders to MailChimp using Ecommerce360.<br/><a target='_blank' href='http://kb.mailchimp.com/article/how-do-i-turn-on-ecommerce360-tracking-on-my-campaigns/'>How do I turn on Ecommerce360 tracking on my campaigns?</a><br/><a target='_blank' href='http://kb.mailchimp.com/article/how-to-segment-your-list-based-on-your-customers-purchase-activity'>How to segment your list based on your customers purchase activity</a>]]></comment>
301
+ </active>
302
+ <order_status translate="label comment">
303
+ <label>Order Status</label>
304
+ <frontend_type>multiselect</frontend_type>
305
+ <source_model>adminhtml/system_config_source_order_status</source_model>
306
+ <sort_order>195</sort_order>
307
+ <show_in_default>1</show_in_default>
308
+ <show_in_website>0</show_in_website>
309
+ <show_in_store>1</show_in_store>
310
+ <comment><![CDATA[<b>IMPORTANT</b>: By default this function run every one hour. If you want to edit this value visit our <a target='_blank' href='http://wiki.ebizmarts.com/installation/configuration/faq#TOC-How-I-set-up-the-Magento-cron-'>wiki</a>]]></comment>
311
+ <depends>
312
+ <active>3</active>
313
+ </depends>
314
+ </order_status>
315
+ <order_max translate="label comment">
316
+ <label>Max Orders by run</label>
317
+ <frontend_type>select</frontend_type>
318
+ <source_model>monkey/system_config_source_orderProcessLimit</source_model>
319
+ <sort_order>200</sort_order>
320
+ <show_in_default>1</show_in_default>
321
+ <show_in_website>0</show_in_website>
322
+ <show_in_store>1</show_in_store>
323
+ <comment></comment>
324
+ <depends>
325
+ <active>3</active>
326
+ </depends>
327
+ </order_max>
328
+ <attributes translate="label comment">
329
+ <label>Attributes to send</label>
330
+ <frontend_type>multiselect</frontend_type>
331
+ <source_model>monkey/system_config_source_attributes</source_model>
332
+ <sort_order>210</sort_order>
333
+ <show_in_default>1</show_in_default>
334
+ <show_in_website>0</show_in_website>
335
+ <show_in_store>1</show_in_store>
336
+ <can_be_empty>1</can_be_empty>
337
+ <comment>All selected attributes will be sent on the product name to MailChimp for segmentation purposes</comment>
338
+ <depends>
339
+ <active separator=",">1,2,3</active>
340
+ </depends>
341
+ </attributes>
342
+ </fields>
343
+ </ecommerce360>
344
  </groups>
345
  </monkey>
346
  </sections>
app/design/adminhtml/default/default/template/magemonkey/system/config/fieldset/hint.phtml CHANGED
@@ -4,7 +4,7 @@
4
  */
5
  ?>
6
  <div class="magemonkey-notice">
7
- <img src="http://ebizmarts.com/extension-logo.php?<?php echo $this->getPxParams(); ?>" />
8
  <h4>
9
  <?php echo Mage::helper('monkey')->__('<strong style="color:#EA7601;">MageMonkey v%s by</strong> <a target="_blank" href="http://ebizmarts.com"><strong>ebizmarts</strong></a>', $this->getMageMonkeyVersion())?>
10
  <br>
4
  */
5
  ?>
6
  <div class="magemonkey-notice">
7
+ <img src="https://ebizmarts.com/extension-logo.php?<?php echo $this->getPxParams(); ?>" />
8
  <h4>
9
  <?php echo Mage::helper('monkey')->__('<strong style="color:#EA7601;">MageMonkey v%s by</strong> <a target="_blank" href="http://ebizmarts.com"><strong>ebizmarts</strong></a>', $this->getMageMonkeyVersion())?>
10
  <br>
app/design/adminhtml/default/default/template/magemonkey/system/config/resetlocal360.phtml CHANGED
@@ -50,12 +50,12 @@
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
 
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
 
app/design/frontend/base/default/layout/ebizmarts/abandonedcart.xml CHANGED
@@ -11,10 +11,10 @@
11
 
12
  <default>
13
  <reference name="head">
14
- <action method="addJs" ifconfig="ebizmarts_abandonedcart/general/popup_general"><script>prototype/window.js</script></action>
15
- <action method="addJs" ifconfig="ebizmarts_abandonedcart/general/popup_general"><script>scriptaculous/scriptaculous.js</script></action>
16
- <action method="addItem" ifconfig="ebizmarts_abandonedcart/general/popup_general"><type>js_css</type><script>prototype/windows/themes/default.css</script></action>
17
- <action method="addItem" ifconfig="ebizmarts_abandonedcart/general/popup_general"><type>js_css</type><script>ebizmarts/abandonedcart/popup.css</script></action>
18
  </reference>
19
  <reference name="content">
20
  <block type="ebizmarts_abandonedcart/popup_emailcatcher" name="emailcatcher" template="ebizmarts_abandonedcart/popup/emailcatcher.phtml"></block>
11
 
12
  <default>
13
  <reference name="head">
14
+ <action method="addJs" ifconfig="ebizmarts_abandonedcart/emailcatcher/popup_general"><script>prototype/window.js</script></action>
15
+ <action method="addJs" ifconfig="ebizmarts_abandonedcart/emailcatcher/popup_general"><script>scriptaculous/scriptaculous.js</script></action>
16
+ <action method="addItem" ifconfig="ebizmarts_abandonedcart/emailcatcher/popup_general"><type>js_css</type><script>prototype/windows/themes/default.css</script></action>
17
+ <action method="addItem" ifconfig="ebizmarts_abandonedcart/emailcatcher/popup_general"><type>js_css</type><script>ebizmarts/abandonedcart/popup.css</script></action>
18
  </reference>
19
  <reference name="content">
20
  <block type="ebizmarts_abandonedcart/popup_emailcatcher" name="emailcatcher" template="ebizmarts_abandonedcart/popup/emailcatcher.phtml"></block>
app/design/frontend/base/default/layout/ebizmarts/autoresponder.xml CHANGED
@@ -70,9 +70,7 @@
70
  <action method="append" ifconfig="ebizmarts_autoresponder/general/active"><block>backtostock.notice</block></action>
71
  </reference>
72
  </reference>
73
- <reference name="product.info.additional">
74
- <action method="append" ifconfig="ebizmarts_autoresponder/general/active"><block>backtostock.form</block></action>
75
- </reference>
76
  </reference>
77
  <depends>
78
  <ifconfig>ebizmarts_autoresponder/backtostock/active</ifconfig>
70
  <action method="append" ifconfig="ebizmarts_autoresponder/general/active"><block>backtostock.notice</block></action>
71
  </reference>
72
  </reference>
73
+ <action method="append" ifconfig="ebizmarts_autoresponder/general/active"><block>backtostock.form</block></action>
 
 
74
  </reference>
75
  <depends>
76
  <ifconfig>ebizmarts_autoresponder/backtostock/active</ifconfig>
app/design/frontend/base/default/layout/magemonkey.xml CHANGED
@@ -47,4 +47,10 @@
47
  </monkey_customer_account_index>
48
  <!-- Customer -->
49
 
 
 
 
 
 
 
50
  </layout>
47
  </monkey_customer_account_index>
48
  <!-- Customer -->
49
 
50
+ <default>
51
+ <reference name="head">
52
+ <action method="addJs" module="monkey"><script helper="monkey/getCanShowCampaignJs"></script></action>
53
+ </reference>
54
+ </default>
55
+
56
  </layout>
app/design/frontend/base/default/template/ebizmarts/autoresponder/backtostock/catalog/product/notice.phtml CHANGED
@@ -13,7 +13,7 @@
13
  $_product = $this->getProduct();
14
  $formAction = $this->getSubscribeUrl();
15
  ?>
16
- <?php if($_product && (!$_product->getStockItem()->getIsInStock() || $_product->getStockItem()->getQty() == 0) && Mage::helper('ebizmarts_autoresponder')->config('backtostock/active')): ?>
17
 
18
  <?php if($this->isLoggedIn() || (!$this->isLoggedIn() && Mage::helper('ebizmarts_autoresponder')->isBacktoStockEnabledForGuest()) ): ?>
19
  <div class="box-collateral block-autoresponder-backtostock">
13
  $_product = $this->getProduct();
14
  $formAction = $this->getSubscribeUrl();
15
  ?>
16
+ <?php if($_product && (!$_product->getStockItem()->getIsInStock() || $_product->getStockItem()->getQty() == 0 && $_product->getTypeId() == "simple") && Mage::helper('ebizmarts_autoresponder')->config('backtostock/active')): ?>
17
 
18
  <?php if($this->isLoggedIn() || (!$this->isLoggedIn() && Mage::helper('ebizmarts_autoresponder')->isBacktoStockEnabledForGuest()) ): ?>
19
  <div class="box-collateral block-autoresponder-backtostock">
app/design/frontend/base/default/template/ebizmarts/autoresponder/backtostock/item.phtml CHANGED
@@ -1,6 +1,21 @@
1
  <?php $product = $this->getProduct(); ?>
2
  <table cellspacing="0" cellpadding="0" border="0" width="650" style="border:1px solid #EAEAEA;">
3
  <?php if($product): ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  <tr>
5
  <?php $parentId = Mage::getModel('catalog/product_type_configurable')->getParentIdsByChild($product->getId());
6
  if(isset($parentId[0])) {
@@ -10,7 +25,7 @@
10
 
11
  <td valign="top" align="left" style="padding:3px 9px">
12
  <a href="<?php echo $product->getProductUrl(); ?>" alt="<?php echo $this->escapeHtml($product->getName()); ?>" target="_blank">
13
- <img src="<?php echo $product->getThumbnailUrl();?>" alt="<?php echo $this->escapeHtml($product->getName()); ?>"/>
14
  </a>
15
  </td>
16
  <td valign="top" align="left" style="padding:3px 9px">
1
  <?php $product = $this->getProduct(); ?>
2
  <table cellspacing="0" cellpadding="0" border="0" width="650" style="border:1px solid #EAEAEA;">
3
  <?php if($product): ?>
4
+ <?php if($product->getImage()=="no_selection"&&$product->getTypeId() == "configurable") {
5
+ $conf = Mage::getModel('catalog/product_type_configurable')->setProduct($product);
6
+ $simple_collection = $conf->getUsedProductCollection()->addAttributeToSelect('*')->addFilterByRequiredOptions();
7
+ foreach ($simple_collection as $simple_product) {
8
+ echo $simple_product->getSku() . " - " . $simple_product->getName() . " - " . Mage::helper('core')->currency($simple_product->getPrice()) . "\n";
9
+ if ($simple_product->getImage() != "no_selection") {
10
+ $imageUrl = $simple_product->getThumbnailUrl();
11
+ break;
12
+ }
13
+ }
14
+ }
15
+ else {
16
+ $imageUrl = $product->getThumbnailUrl();
17
+ }
18
+ ?>
19
  <tr>
20
  <?php $parentId = Mage::getModel('catalog/product_type_configurable')->getParentIdsByChild($product->getId());
21
  if(isset($parentId[0])) {
25
 
26
  <td valign="top" align="left" style="padding:3px 9px">
27
  <a href="<?php echo $product->getProductUrl(); ?>" alt="<?php echo $this->escapeHtml($product->getName()); ?>" target="_blank">
28
+ <img src="<?php echo $imageUrl;?>" alt="<?php echo $this->escapeHtml($product->getName()); ?>"/>
29
  </a>
30
  </td>
31
  <td valign="top" align="left" style="padding:3px 9px">
app/design/frontend/base/default/template/ebizmarts/autoresponder/related/items.phtml CHANGED
@@ -1,8 +1,23 @@
1
  <?php $products = $this->getProducts(); ?>
2
  <table cellspacing="0" cellpadding="0" border="0" width="650" style="border:1px solid #EAEAEA;">
3
  <?php foreach($products as $product): ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  <tr>
5
- <td valign="top" align="left" style="padding:3px 9px"><a href="<?php echo $product->getProductUrl(); ?>" alt="<?php echo $this->escapeHtml($product->getName()); ?>" target="_blank"><img src="<?php echo $product->getThumbnailUrl();?>" alt="<?php echo $this->escapeHtml($product->getName()); ?>"/></a></td>
6
  <td valign="top" align="left" style="padding:3px 9px"><p><?php echo $this->escapeHtml($product->getName()); ?></p><?php echo $this->escapeHtml($product->getShortDescription()); ?></td>
7
  </tr>
8
  <?php endforeach; ?>
1
  <?php $products = $this->getProducts(); ?>
2
  <table cellspacing="0" cellpadding="0" border="0" width="650" style="border:1px solid #EAEAEA;">
3
  <?php foreach($products as $product): ?>
4
+ <?php if($product->getImage()=="no_selection"&&$product->getTypeId() == "configurable") {
5
+ $conf = Mage::getModel('catalog/product_type_configurable')->setProduct($product);
6
+ $simple_collection = $conf->getUsedProductCollection()->addAttributeToSelect('*')->addFilterByRequiredOptions();
7
+ foreach ($simple_collection as $simple_product) {
8
+ echo $simple_product->getSku() . " - " . $simple_product->getName() . " - " . Mage::helper('core')->currency($simple_product->getPrice()) . "\n";
9
+ if ($simple_product->getImage() != "no_selection") {
10
+ $imageUrl = $simple_product->getThumbnailUrl();
11
+ break;
12
+ }
13
+ }
14
+ }
15
+ else {
16
+ $imageUrl = $product->getThumbnailUrl();
17
+ }
18
+ ?>
19
  <tr>
20
+ <td valign="top" align="left" style="padding:3px 9px"><a href="<?php echo $product->getProductUrl(); ?>" alt="<?php echo $this->escapeHtml($product->getName()); ?>" target="_blank"><img src="<?php echo $imageUrl;?>" alt="<?php echo $this->escapeHtml($product->getName()); ?>"/></a></td>
21
  <td valign="top" align="left" style="padding:3px 9px"><p><?php echo $this->escapeHtml($product->getName()); ?></p><?php echo $this->escapeHtml($product->getShortDescription()); ?></td>
22
  </tr>
23
  <?php endforeach; ?>
app/design/frontend/base/default/template/ebizmarts/autoresponder/review/items.phtml CHANGED
@@ -4,6 +4,21 @@
4
  ?>
5
  <table cellspacing="0" cellpadding="0" border="0" width="650" style="border:1px solid #EAEAEA;">
6
  <?php foreach($products as $product): ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  <tr>
8
  <?php $parentId = Mage::getModel('catalog/product_type_configurable')->getParentIdsByChild($product->getId());
9
  if(isset($parentId[0])) {
@@ -14,7 +29,7 @@
14
  $url .= 'token/'.$token;
15
  }
16
  ?>
17
- <td valign="top" align="left" style="padding:3px 9px"><a href="<?php echo $url; ?>" alt="<?php echo $this->escapeHtml($product->getName()); ?>" target="_blank"><img src="<?php echo $product->getThumbnailUrl();?>" alt="<?php echo $this->escapeHtml($product->getName()); ?>"/></a></td>
18
  <td valign="top" align="left" style="padding:3px 9px"><p><h2><a href="<?php echo $url; ?>"> Rate <?php echo $this->escapeHtml($product->getName()); ?></a></h2></p><?php echo $this->escapeHtml($product->getShortDescription()); ?></td>
19
  </tr>
20
  <?php endforeach; ?>
4
  ?>
5
  <table cellspacing="0" cellpadding="0" border="0" width="650" style="border:1px solid #EAEAEA;">
6
  <?php foreach($products as $product): ?>
7
+ <?php if($product->getImage()=="no_selection"&&$product->getTypeId() == "configurable") {
8
+ $conf = Mage::getModel('catalog/product_type_configurable')->setProduct($product);
9
+ $simple_collection = $conf->getUsedProductCollection()->addAttributeToSelect('*')->addFilterByRequiredOptions();
10
+ foreach ($simple_collection as $simple_product) {
11
+ echo $simple_product->getSku() . " - " . $simple_product->getName() . " - " . Mage::helper('core')->currency($simple_product->getPrice()) . "\n";
12
+ if ($simple_product->getImage() != "no_selection") {
13
+ $imageUrl = $simple_product->getThumbnailUrl();
14
+ break;
15
+ }
16
+ }
17
+ }
18
+ else {
19
+ $imageUrl = $product->getThumbnailUrl();
20
+ }
21
+ ?>
22
  <tr>
23
  <?php $parentId = Mage::getModel('catalog/product_type_configurable')->getParentIdsByChild($product->getId());
24
  if(isset($parentId[0])) {
29
  $url .= 'token/'.$token;
30
  }
31
  ?>
32
+ <td valign="top" align="left" style="padding:3px 9px"><a href="<?php echo $url; ?>" alt="<?php echo $this->escapeHtml($product->getName()); ?>" target="_blank"><img src="<?php echo $imageUrl;?>" alt="<?php echo $this->escapeHtml($product->getName()); ?>"/></a></td>
33
  <td valign="top" align="left" style="padding:3px 9px"><p><h2><a href="<?php echo $url; ?>"> Rate <?php echo $this->escapeHtml($product->getName()); ?></a></h2></p><?php echo $this->escapeHtml($product->getShortDescription()); ?></td>
34
  </tr>
35
  <?php endforeach; ?>
app/design/frontend/base/default/template/ebizmarts/autoresponder/unsubscribe.phtml CHANGED
@@ -1,5 +1,5 @@
1
  <div class="page-title">
2
- <h1><?php echo $this->__('You successfully removed from list.') ?></h1>
3
  </div>
4
  <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
5
  <h2 class="sub-title"><?php echo $this->__('Thank you') ?></h2>
1
  <div class="page-title">
2
+ <h1><?php echo $this->__('You were successfully removed from list.') ?></h1>
3
  </div>
4
  <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
5
  <h2 class="sub-title"><?php echo $this->__('Thank you') ?></h2>
app/design/frontend/base/default/template/ebizmarts/autoresponder/wishlist/items.phtml CHANGED
@@ -1,8 +1,23 @@
1
  <?php $products = $this->getProducts(); ?>
2
  <table cellspacing="0" cellpadding="0" border="0" width="650" style="border:1px solid #EAEAEA;">
3
  <?php foreach($products as $product): ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  <tr>
5
- <td valign="top" align="left" style="padding:3px 9px"><a href="<?php echo $product->getProductUrl(); ?>" alt="<?php echo $this->escapeHtml($product->getName()); ?>" target="_blank"><img src="<?php echo $product->getThumbnailUrl();?>" alt="<?php echo $this->escapeHtml($product->getName()); ?>"/></a></td>
6
  <td valign="top" align="left" style="padding:3px 9px"><p><h2><a href="<?php echo $product->getProductUrl(); ?>"> <?php echo $this->escapeHtml($product->getName()); ?></a></h2></p><?php echo $this->escapeHtml($product->getShortDescription()); ?></td>
7
  </tr>
8
  <?php endforeach; ?>
1
  <?php $products = $this->getProducts(); ?>
2
  <table cellspacing="0" cellpadding="0" border="0" width="650" style="border:1px solid #EAEAEA;">
3
  <?php foreach($products as $product): ?>
4
+ <?php if($product->getImage()=="no_selection"&&$product->getTypeId() == "configurable") {
5
+ $conf = Mage::getModel('catalog/product_type_configurable')->setProduct($product);
6
+ $simple_collection = $conf->getUsedProductCollection()->addAttributeToSelect('*')->addFilterByRequiredOptions();
7
+ foreach ($simple_collection as $simple_product) {
8
+ echo $simple_product->getSku() . " - " . $simple_product->getName() . " - " . Mage::helper('core')->currency($simple_product->getPrice()) . "\n";
9
+ if ($simple_product->getImage() != "no_selection") {
10
+ $imageUrl = $simple_product->getThumbnailUrl();
11
+ break;
12
+ }
13
+ }
14
+ }
15
+ else {
16
+ $imageUrl = $product->getThumbnailUrl();
17
+ }
18
+ ?>
19
  <tr>
20
+ <td valign="top" align="left" style="padding:3px 9px"><a href="<?php echo $product->getProductUrl(); ?>" alt="<?php echo $this->escapeHtml($product->getName()); ?>" target="_blank"><img src="<?php echo $imageUrl;?>" alt="<?php echo $this->escapeHtml($product->getName()); ?>"/></a></td>
21
  <td valign="top" align="left" style="padding:3px 9px"><p><h2><a href="<?php echo $product->getProductUrl(); ?>"> <?php echo $this->escapeHtml($product->getName()); ?></a></h2></p><?php echo $this->escapeHtml($product->getShortDescription()); ?></td>
22
  </tr>
23
  <?php endforeach; ?>
app/design/frontend/base/default/template/ebizmarts_abandonedcart/email/order/items.phtml CHANGED
@@ -1,4 +1,6 @@
1
- <?php $_quote = $this->getQuote() ?>
 
 
2
  <table cellspacing="0" cellpadding="0" border="0" width="650" style="border:1px solid #EAEAEA;">
3
  <thead>
4
  <tr>
@@ -61,7 +63,7 @@
61
  <?php echo '<td valign="top" align="left" style="padding:3px 9px">'. $_item['name']; ?>
62
  <?php if(isset($options) && is_array($options)) : foreach($options as $option) : echo '<br /><strong><em>'.$option['label'].'</em></strong> '.$option['value']; if(isset($option['sku'])) : echo ' ' . $option['sku']; endif; endforeach; $options = null; endif; ?>
63
  <?php echo '<td valign="top" align="left" style="padding:3px 9px">'. $_item['sku'] .'</td>'; ?>
64
- <?php echo '<td valign="top" align="left" style="padding:3px 9px"><img src="'.$this->getImage($_item).'"/></td>'; ?>
65
  <?php echo '<td valign="top" align="center" style="padding:3px 9px">'. $_item['qty'] .'</td>'; ?>
66
  <?php echo '<td valign="top" align="right" style="padding:3px 9px">' . $this->getTax($_item) .'</td>'; ?>
67
 
1
+ <?php
2
+ $_quote = $this->getQuote();
3
+ ?>
4
  <table cellspacing="0" cellpadding="0" border="0" width="650" style="border:1px solid #EAEAEA;">
5
  <thead>
6
  <tr>
63
  <?php echo '<td valign="top" align="left" style="padding:3px 9px">'. $_item['name']; ?>
64
  <?php if(isset($options) && is_array($options)) : foreach($options as $option) : echo '<br /><strong><em>'.$option['label'].'</em></strong> '.$option['value']; if(isset($option['sku'])) : echo ' ' . $option['sku']; endif; endforeach; $options = null; endif; ?>
65
  <?php echo '<td valign="top" align="left" style="padding:3px 9px">'. $_item['sku'] .'</td>'; ?>
66
+ <?php echo '<td valign="top" align="left" style="padding:3px 9px"><a href="{{var url}}"><img src="'.$this->getImage($_item).'"/></a></td>'; ?>
67
  <?php echo '<td valign="top" align="center" style="padding:3px 9px">'. $_item['qty'] .'</td>'; ?>
68
  <?php echo '<td valign="top" align="right" style="padding:3px 9px">' . $this->getTax($_item) .'</td>'; ?>
69
 
app/design/frontend/base/default/template/ebizmarts_abandonedcart/popup/emailcatcher.phtml CHANGED
@@ -13,10 +13,11 @@
13
  <?php if(isset($_COOKIE['email'])):
14
  if($_COOKIE['email'] != 'none'):
15
  $email = str_replace(' ', '+', $_COOKIE['email']);
 
16
  if(isset($_COOKIE['subscribe'])):
17
  $subscriber = Mage::getModel('newsletter/subscriber')->loadByEmail($email);
18
  if(!$subscriber->getId()):
19
- Mage::getModel('newsletter/subscriber')->subscribe($email); ?>
20
  document.cookie = 'subscribe=; expires=Thu, 01 Jan 1970 00:00:01 GMT';
21
  location.reload();
22
  <?php endif; ?>
@@ -25,7 +26,7 @@
25
  <?php elseif($this->_canCancel()): ?>
26
  document.observe('keydown', function(evt){
27
  if(evt.keyCode == 27) {
28
- createCookie('email=none', <?php echo Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::POPUP_COOKIE_TIME, $this->_getStoreId()); ?>);
29
  }
30
  });
31
  <?php endif; ?>
@@ -41,13 +42,31 @@
41
  className: "popup",
42
  id: "popupDialog",
43
  width: <?php Print(json_decode(Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::POPUP_WIDTH, $this->_getStoreId()))); ?>,
44
- zIndex: 200,
45
- okLabel: 'Confirm',
46
  <?php if(!$this->_canCancel()): ?>closeOnEsc: false,
47
  <?php else: ?>
48
- cancelLabel: 'Close',
49
  onCancel: function (win) {
50
- createCookie('email=none', <?php echo Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::POPUP_COOKIE_TIME, $this->_getStoreId()); ?>);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
  },
52
  <?php endif; ?>
53
  onOk: function (win) {
@@ -63,7 +82,7 @@
63
  win.close();
64
  <?php endif ?>
65
  } else {
66
- $('email_error_msg').innerHTML = 'Not a valid e-mail address';
67
  $('email_error_msg').setStyle({color: '#F00'});
68
  $('email_error_msg').show();
69
  Windows.focusedWindow.updateHeight();
@@ -79,10 +98,9 @@
79
  <?php else: ?>
80
  Event.observe(window, 'load', function () {
81
  $('overlay_modal').observe('click', function(){
82
- createCookie('email=none', <?php echo Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::POPUP_COOKIE_TIME, $this->_getStoreId()); ?>);
83
  win.close();
 
84
  });
85
-
86
  });
87
  <?php endif; ?>
88
 
@@ -99,7 +117,7 @@
99
  var cookieArr = cookie.split(';');
100
  var cookieStored = false;
101
  for(var i=0;i<cookieArr.length;i++){
102
- if(cookieArr[i].indexOf('email=') > -1){
103
  cookieStored = true;
104
  }
105
  }
13
  <?php if(isset($_COOKIE['email'])):
14
  if($_COOKIE['email'] != 'none'):
15
  $email = str_replace(' ', '+', $_COOKIE['email']);
16
+ $this->_createCoupon($email);
17
  if(isset($_COOKIE['subscribe'])):
18
  $subscriber = Mage::getModel('newsletter/subscriber')->loadByEmail($email);
19
  if(!$subscriber->getId()):
20
+ Mage::getModel('newsletter/subscriber')->setImportMode(TRUE)->subscribe($email); ?>
21
  document.cookie = 'subscribe=; expires=Thu, 01 Jan 1970 00:00:01 GMT';
22
  location.reload();
23
  <?php endif; ?>
26
  <?php elseif($this->_canCancel()): ?>
27
  document.observe('keydown', function(evt){
28
  if(evt.keyCode == 27) {
29
+ win.cancelCallback();
30
  }
31
  });
32
  <?php endif; ?>
42
  className: "popup",
43
  id: "popupDialog",
44
  width: <?php Print(json_decode(Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::POPUP_WIDTH, $this->_getStoreId()))); ?>,
45
+ zIndex: 2001,
46
+ okLabel: '<?php echo $this->__('Confirm') ?>',
47
  <?php if(!$this->_canCancel()): ?>closeOnEsc: false,
48
  <?php else: ?>
49
+ cancelLabel: '<?php echo $this->__('Close') ?>',
50
  onCancel: function (win) {
51
+ <?php if(isset($_COOKIE['counter'])):
52
+ //check cookie counter for customer id and check actual counter
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 :
60
+ $counter->setCounter(($counter->getCounter()+1));
61
+ $counter->save();
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; ?>
72
  onOk: function (win) {
82
  win.close();
83
  <?php endif ?>
84
  } else {
85
+ $('email_error_msg').innerHTML = '<?php echo $this->__('Not a valid e-mail address') ?>';
86
  $('email_error_msg').setStyle({color: '#F00'});
87
  $('email_error_msg').show();
88
  Windows.focusedWindow.updateHeight();
98
  <?php else: ?>
99
  Event.observe(window, 'load', function () {
100
  $('overlay_modal').observe('click', function(){
 
101
  win.close();
102
+ win.cancelCallback();
103
  });
 
104
  });
105
  <?php endif; ?>
106
 
117
  var cookieArr = cookie.split(';');
118
  var cookieStored = false;
119
  for(var i=0;i<cookieArr.length;i++){
120
+ if(cookieArr[i].indexOf('email=') > -1){
121
  cookieStored = true;
122
  }
123
  }
app/design/frontend/base/default/template/magemonkey/checkout/subscribe.phtml CHANGED
@@ -164,7 +164,9 @@ $force = $this->getForce();
164
  <?php foreach($group['groups'] as $g): ?>
165
  <?php $idToAdd = $this->getGroupId($g, TRUE); ?>
166
  <?php if($idToAdd): ?>
167
- addGroupToPost($(<?php Print(json_encode($idToAdd));?>));
 
 
168
  <?php endif; ?>
169
  <?php endforeach; ?>
170
  <?php endforeach; ?>
@@ -177,7 +179,12 @@ $force = $this->getForce();
177
  <?php if(is_array($list['interest_groupings'])): ?>
178
  <?php foreach($list['interest_groupings'] as $group): ?>
179
  <?php foreach($group['groups'] as $g): ?>
180
- addGroupToPost($(<?php Print(json_encode($this->getGroupId($g)));?>));
 
 
 
 
 
181
  <?php endforeach; ?>
182
  <?php endforeach; ?>
183
  <?php endif; ?>
164
  <?php foreach($group['groups'] as $g): ?>
165
  <?php $idToAdd = $this->getGroupId($g, TRUE); ?>
166
  <?php if($idToAdd): ?>
167
+ if($(<?php Print(json_encode($idToAdd));?>)) {
168
+ addGroupToPost($(<?php Print(json_encode($idToAdd));?>));
169
+ }
170
  <?php endif; ?>
171
  <?php endforeach; ?>
172
  <?php endforeach; ?>
179
  <?php if(is_array($list['interest_groupings'])): ?>
180
  <?php foreach($list['interest_groupings'] as $group): ?>
181
  <?php foreach($group['groups'] as $g): ?>
182
+ <?php $idToAdd = $this->getGroupId($g, TRUE); ?>
183
+ <?php if($idToAdd): ?>
184
+ if($(<?php Print(json_encode($idToAdd));?>)) {
185
+ addGroupToPost($(<?php Print(json_encode($idToAdd));?>));
186
+ }
187
+ <?php endif; ?>
188
  <?php endforeach; ?>
189
  <?php endforeach; ?>
190
  <?php endif; ?>
app/locale/en_US/Ebizmarts_AbandonedCart.csv CHANGED
@@ -43,3 +43,8 @@
43
  "Abandoned Cart Dashboard","Abandoned Cart Dashboard"
44
  "Abandoned Cart Orders","Abandoned Cart Orders"
45
  "Ebizmarts Abandoned Cart","Ebizmarts Abandoned Cart"
 
 
 
 
 
43
  "Abandoned Cart Dashboard","Abandoned Cart Dashboard"
44
  "Abandoned Cart Orders","Abandoned Cart Orders"
45
  "Ebizmarts Abandoned Cart","Ebizmarts Abandoned Cart"
46
+
47
+ ;Emailcatcher popup
48
+ "Confirm","Confirm"
49
+ "Close","Close"
50
+ "Not a valid e-mail address","Not a valid e-mail address"
app/locale/en_US/template/email/ebizmarts/abandonedcart/abandoned_cart_mail_1.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;"">Hello, {{htmlescape var=$name}}</h1>
15
  <p style="font-size:12px; line-height:16px; margin:0;">
16
  You have an abandoned cart at {{var store.getFrontendName()}}.
17
  We would be glad to help you feel comfortable with our checkout process. if you are having technical issues 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.
@@ -23,15 +23,21 @@
23
  and obtain a discount of {{var discount}} only until {{var todate}}
24
  {{/depend}}
25
  </p>
 
26
  </tr>
27
  <tr>
28
  <td>
29
- {{block type='ebizmarts_abandonedcart/email_order_items' area='frontend' template='ebizmarts_abandonedcart/email/order/items.phtml' quote=$quote}}
30
  </td>
31
  </tr>
32
  <tr>
33
  <td bgcolor="#EAEAEA" align="center" style="background:#EAEAEA; text-align:center;"><center><p style="font-size:12px; margin:0;">Thank you, <strong>{{var store.getFrontendName()}}</strong></p></center></td>
34
  </tr>
 
 
 
 
 
35
  <tr>
36
  <td>You can unsubscribe from this email clicking <a href="{{var unsubscribeurl}}" style="color:#1E7EC8;">here</a>.</td>
37
  </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;">Hello, {{htmlescape var=$name}}</h1>
15
  <p style="font-size:12px; line-height:16px; margin:0;">
16
  You have an abandoned cart at {{var store.getFrontendName()}}.
17
  We would be glad to help you feel comfortable with our checkout process. if you are having technical issues 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.
23
  and obtain a discount of {{var discount}} only until {{var todate}}
24
  {{/depend}}
25
  </p>
26
+ </td>
27
  </tr>
28
  <tr>
29
  <td>
30
+ {{block type='ebizmarts_abandonedcart/email_order_items' area='frontend' template='ebizmarts_abandonedcart/email/order/items.phtml' quote=$quote url}}
31
  </td>
32
  </tr>
33
  <tr>
34
  <td bgcolor="#EAEAEA" align="center" style="background:#EAEAEA; text-align:center;"><center><p style="font-size:12px; margin:0;">Thank you, <strong>{{var store.getFrontendName()}}</strong></p></center></td>
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>
42
  <td>You can unsubscribe from this email clicking <a href="{{var unsubscribeurl}}" style="color:#1E7EC8;">here</a>.</td>
43
  </tr>
app/locale/en_US/template/email/ebizmarts/abandonedcart/abandoned_cart_mail_2.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;"">Hello, {{htmlescape var=$name}}</h1>
15
  <p style="font-size:12px; line-height:16px; margin:0;">
16
  You have an abandoned cart at {{var store.getFrontendName()}}.
17
  Please remember our stock is not unlimited, it is recommended to take advantage of this great opportunity to get your desired products in the comfort of your home.
@@ -24,15 +24,21 @@
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
  </tr>
28
  <tr>
29
  <td>
30
- {{block type='ebizmarts_abandonedcart/email_order_items' area='frontend' template='ebizmarts_abandonedcart/email/order/items.phtml' quote=$quote}}
31
  </td>
32
  </tr>
33
  <tr>
34
  <td bgcolor="#EAEAEA" align="center" style="background:#EAEAEA; text-align:center;"><center><p style="font-size:12px; margin:0;">Thank you, <strong>{{var store.getFrontendName()}}</strong></p></center></td>
35
  </tr>
 
 
 
 
 
36
  <tr>
37
  <td>You can unsubscribe from this email clicking <a href="{{var unsubscribeurl}}" style="color:#1E7EC8;">here</a>.</td>
38
  </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;">Hello, {{htmlescape var=$name}}</h1>
15
  <p style="font-size:12px; line-height:16px; margin:0;">
16
  You have an abandoned cart at {{var store.getFrontendName()}}.
17
  Please remember our stock is not unlimited, it is recommended to take advantage of this great opportunity to get your desired products in the comfort of your home.
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>
28
  </tr>
29
  <tr>
30
  <td>
31
+ {{block type='ebizmarts_abandonedcart/email_order_items' area='frontend' template='ebizmarts_abandonedcart/email/order/items.phtml' quote=$quote url}}
32
  </td>
33
  </tr>
34
  <tr>
35
  <td bgcolor="#EAEAEA" align="center" style="background:#EAEAEA; text-align:center;"><center><p style="font-size:12px; margin:0;">Thank you, <strong>{{var store.getFrontendName()}}</strong></p></center></td>
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>
43
  <td>You can unsubscribe from this email clicking <a href="{{var unsubscribeurl}}" style="color:#1E7EC8;">here</a>.</td>
44
  </tr>
app/locale/en_US/template/email/ebizmarts/abandonedcart/abandoned_cart_mail_3.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;"">Hello, {{htmlescape var=$name}}</h1>
15
  <p style="font-size:12px; line-height:16px; margin:0;">
16
  You have an abandoned cart at {{var store.getFrontendName()}}.
17
  {{depend couponcode}}
@@ -23,15 +23,21 @@
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>
 
26
  </tr>
27
  <tr>
28
  <td>
29
- {{block type='ebizmarts_abandonedcart/email_order_items' area='frontend' template='ebizmarts_abandonedcart/email/order/items.phtml' quote=$quote}}
30
  </td>
31
  </tr>
32
  <tr>
33
  <td bgcolor="#EAEAEA" align="center" style="background:#EAEAEA; text-align:center;"><center><p style="font-size:12px; margin:0;">Thank you, <strong>{{var store.getFrontendName()}}</strong></p></center></td>
34
  </tr>
 
 
 
 
 
35
  <tr>
36
  <td>You can unsubscribe from this email clicking <a href="{{var unsubscribeurl}}" style="color:#1E7EC8;">here</a>.</td>
37
  </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;">Hello, {{htmlescape var=$name}}</h1>
15
  <p style="font-size:12px; line-height:16px; margin:0;">
16
  You have an abandoned cart at {{var store.getFrontendName()}}.
17
  {{depend couponcode}}
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>
26
+ </td>
27
  </tr>
28
  <tr>
29
  <td>
30
+ {{block type='ebizmarts_abandonedcart/email_order_items' area='frontend' template='ebizmarts_abandonedcart/email/order/items.phtml' quote=$quote url}}
31
  </td>
32
  </tr>
33
  <tr>
34
  <td bgcolor="#EAEAEA" align="center" style="background:#EAEAEA; text-align:center;"><center><p style="font-size:12px; margin:0;">Thank you, <strong>{{var store.getFrontendName()}}</strong></p></center></td>
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>
42
  <td>You can unsubscribe from this email clicking <a href="{{var unsubscribeurl}}" style="color:#1E7EC8;">here</a>.</td>
43
  </tr>
app/locale/en_US/template/email/ebizmarts/abandonedcart/popup_coupon_template.html ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <body style="background:#F6F6F6; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; margin:0; padding:0;">
2
+ <div style="background:#F6F6F6; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; margin:0; padding:0;">
3
+ <table cellspacing="0" cellpadding="0" border="0" width="100%">
4
+ <tr>
5
+ <td align="center" valign="top" style="padding:20px 0 20px 0">
6
+ <table bgcolor="#FFFFFF" cellspacing="0" cellpadding="10" border="0" width="650" style="border:1px solid #E0E0E0;">
7
+ <!-- [ header starts here] -->
8
+ <tr>
9
+ <td valign="top"><a href="{{store url=""}}"><img src="{{var logo_url}}" alt="{{var logo_alt}}" style="margin-bottom:10px;" border="0"/></a></td>
10
+ </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 {{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.
18
+ It can be used with this code <b>{{var couponcode}}</b>
19
+ {{/depend}}
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>
27
+ <tr>
28
+ <td bgcolor="#EAEAEA" align="center" style="background:#EAEAEA; text-align:center;"><center><p style="font-size:12px; margin:0;">Thank you, <strong>{{var store.getFrontendName()}}</strong></p></center></td>
29
+ </tr>
30
+ </table>
31
+ </td>
32
+ </tr>
33
+ </table>
34
+ </div>
35
+ </body>
js/ebizmarts/magemonkey/campaignCatcher.js ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function () {
2
+ function getCampaign() {
3
+ var params = location.search.substr(1).split('&');
4
+ var cookies = [];
5
+ for(var i=0;i<params.length;i++){
6
+ var cookie = params[i].split('=');
7
+ var key = cookie[0];
8
+ var val = cookie[1];
9
+ if(key && val) {
10
+ cookies[key] = val;
11
+ }
12
+ }
13
+
14
+ if(cookies['mc_cid']){
15
+ createCookie('magemonkey_campaign_id='+cookies['mc_cid'], 30);
16
+ }
17
+ if(cookies['mc_eid']){
18
+ createCookie('magemonkey_email_id='+cookies['mc_eid'], 30);
19
+ }
20
+ }
21
+ function createCookie(cookie, expirationInDays){
22
+ var now = new Date();
23
+ var expire = new Date(now.getTime() + (expirationInDays * 24 * 60) * 60000);//[(1 * 365 * 24 * 60) * 60000] == 1 year -- (Years * Days * Hours * Minutes) * 60000
24
+ document.cookie = cookie + '; expires=' + expire + '; path=/';
25
+ }
26
+
27
+ if (document.loaded) {
28
+ getCampaign();
29
+ } else {
30
+ document.observe('dom:loaded', getCampaign());
31
+ }
32
+ })();
package.xml CHANGED
@@ -1,50 +1,36 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Ebizmarts_MageMonkey</name>
4
- <version>1.1.26</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.26&#xD;
12
  --------&#xD;
13
- Popup window added to catch email when customer access site for the first time&#xD;
14
  &#xD;
15
- Magento newsletter working with latest Mandrill version.&#xD;
 
 
 
16
  &#xD;
17
- Visited products for new Magento display fixed.&#xD;
18
  &#xD;
19
- Cron send_subscribers_async uses listBatchSubscribe.&#xD;
20
  &#xD;
21
- Added Abandoned Cart Dashboards to ACL.&#xD;
22
  &#xD;
23
- Subscriber status working okay when create account confirmation enabled.&#xD;
 
24
  &#xD;
25
- Orders exported by cron process now shown on Magento sent orders properly.&#xD;
26
- &#xD;
27
- Autoresponder and Abandoned Cart only create coupon if don't exist for that email.&#xD;
28
- &#xD;
29
- Visited products when max items per mail is 0 working okay.&#xD;
30
- &#xD;
31
- Abandoned cart check stock products for configurable and bundle okay.&#xD;
32
- &#xD;
33
- &#xD;
34
- Autoclean for old coupons in Autoresponder and Abandoned Cart&#xD;
35
- &#xD;
36
- &#xD;
37
- Traduction for abandoned cart item list.&#xD;
38
- &#xD;
39
- &#xD;
40
- Checkout cache lists showing correspondent for each store.&#xD;
41
- &#xD;
42
- &#xD;
43
- Showing message when updated newsletter info.</notes>
44
  <authors><author><name>Ebizmarts Development Team</name><user>auto-converted</user><email>info@ebizmarts.com</email></author></authors>
45
- <date>2014-12-09</date>
46
- <time>17:15:28</time>
47
- <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="fdb2454d4ab59f131b82462aa7a800fb"/><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="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="fdd4a2532a7e67dc5206a0cd67c4b859"/><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="Cron.php" hash="2c511664eaed3f629c2abcde834c0142"/><file name="Ecommerce.php" hash="d74ca44e23d32d22f5f64898028d784f"/><file name="Ecommerce360.php" hash="26313ca9fe9e650c596c019b21b81f28"/><file name="MCAPI.php" hash="8c1eafa5e16e3993fa2bbe7804669315"/><file name="MCEXPORTAPI.php" hash="c8f16211692cf33992fbd785019c01f7"/><file name="Monkey.php" hash="1844ef9dc05ad41b49ef55d991f35717"/><file name="Observer.php" hash="9162738d347d916594121d8e3f994ba0"/><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="d6d93fa497fea8012a5386cb933981cd"/><file name="system.xml" hash="d6ed5fce70d3ccb6f3374bd749c06802"/></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="898f46053e5d6dc70e8ea84306069905"/></dir></dir><dir name="Popup"><file name="Emailcatcher.php" hash="672a41d201c68826f7275e0e8e1ac773"/></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><file name="Mailssent.php" hash="587b8c706766b178be80dc6539e4172b"/></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="a293419dd1054bf328fecf6ceda5a603"/><file name="Cron.php" hash="963f9dec08cfa459dad3136b4d729e17"/><file name="EventObserver.php" hash="c76f550516b706e1597c396be9406e78"/><file name="Mailssent.php" hash="c4bb348f7df03d057b6e71793a35099f"/></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="c5d4146adaaa34ca06cc444299c13bd1"/></dir><dir name="etc"><file name="adminhtml.xml" hash="f32961dcb3c682b24d6e3b5cc5413450"/><file name="config.xml" hash="2db5973bd96faa36f47e697b8c9d2c1f"/><file name="system.xml" hash="8fe6d9f33b115086d952f24f32c27554"/></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.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="31e26e122f134859f93a6ab0797ac2e5"/></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="Time.php" hash="3bb74c6af5f1d2d0920e290f5ff4978a"/></dir></dir><file name="Backtostock.php" hash="bbe12c4e362b4a6b3ff289c4cfad1c1d"/><file name="Backtostockalert.php" hash="7c13e74e80769ce9ec5348dff3146ed7"/><file name="Config.php" hash="c3d0f8a39bd9c4704cd5ef161420e345"/><file name="Cron.php" hash="cd53c2b02e4a84633c5d3f6bd8c78e3a"/><file name="EventObserver.php" hash="ab2610016bf209bd1572069df803721a"/><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="6e50588149df1b98ec80c701769a37e1"/><file name="BacktostockController.php" hash="0a7f9280f87c7a663f06529e3811cfc1"/></dir><dir name="etc"><file name="adminhtml.xml" hash="59a240f12b496566f1a2b1de5f053e96"/><file name="config.xml" hash="0401b37124514dea48fcea79aa3f46e8"/><file name="system.xml" hash="e46216b7e0f5b0dc36566c2a77e432e3"/></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"/></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="ea8b5013e8af67de1ab9c56a1844cc60"/><file name="autoresponder.xml" hash="f9f60b531984dafdb813f52cdf805734"/></dir><file name="magemonkey.xml" hash="f86c4a1e77468bf497bbc31f00d379c9"/></dir><dir name="template"><dir name="magemonkey"><dir name="checkout"><file name="subscribe.phtml" hash="21ba47c3131d5e7fb5ce9cfc4a2700f4"/></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="28f65bf1836a33234bff58edda857532"/></dir></dir><dir name="popup"><file name="emailcatcher.phtml" hash="09a20c26b83c81a512f9c3d395f2ab39"/></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="f008e3519220e874e629dce5ec833025"/></dir></dir><file name="item.phtml" hash="f21ac40fa3279b8765012de283206e71"/></dir><dir name="customer"><file name="list.phtml" hash="be9cd36a644a39e3569c9ae0ded2087d"/></dir><dir name="related"><file name="items.phtml" hash="b05bfbbe1bdf48324d2e3e2df7d7ae97"/></dir><dir name="review"><file name="items.phtml" hash="a1fdcb739b6032b607e67047fd3b65f9"/></dir><dir name="wishlist"><file name="items.phtml" hash="217b12ebbabd46d14c2a95b57aa9dad0"/></dir><file name="unsubscribe.phtml" hash="2635dae225a8a4536d58a87c4de9054d"/></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="f4bbe778592be65a6b452002dfc84c24"/></dir><file name="oauth_wizard.phtml" hash="226d42be1f41838bb80da0e2c3567d71"/><file name="resetlocal360.phtml" hash="f88fc0a058fcca8e8d30c22712242a6f"/><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="7cdd7e280cf62ecc901e44486348cb42"/><file name="abandoned_cart_mail_2.html" hash="a80a49564d4bf2f1d2e218436bd5b3c2"/><file name="abandoned_cart_mail_3.html" hash="040178e0d03339613f7874982d666517"/><file name="abandoned_cart_mail_generic.html" hash="73f8caed42f738e3bffe5da4d8a882a4"/></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="29ee25f32946e687917cf542aaa66941"/><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></dir></target></contents>
48
  <compatible/>
49
  <dependencies/>
50
  </package>
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>