Ebizmarts_MageMonkey - Version 1.1.20

Version Notes

-- version 1.1.20 stable
- Fix visited product javascript issue
- Fix for template design in multistore website
- Add Order State attribute in product review autoresponder
- Add Order State attribute in product related autoresponder
- Fix ebizmarts_mark_visited product attribute (make it user_defined)
- Fix for es wrong default store
- Fix for product name and description in autoresponders templates
- New facility, coupons for reviews
- Fix to hide Header title of hidden groups
- Changed mergeVars() validation for firstname/lastname. Now are evaluated separately.
- Fix $email variable for related products. it was not retrieving and validating isSubscribed
- Mandrill fix for allow multiple bcc

-- version 1.1.19 stable
- add browsed products autoresponder

-- version 1.1.18 stable
- new facility to redirect abandoned cart to cms page
- fix for autoresonders, configurable products in review email

-- version 1.1.17 stable
- add token to abandoned cart url for security

-- version 1.1.16 stable
- fix for abandoned cart when a logged customer abandon an order and make this order as guess
- introduce autologin feature for abandoned carts

-- version 1.1.15 stable
- fix for abandoned cart cron configuration

-- version 1.1.14 stable
- Add grid for sent email (autoresponder and abandoned carts)
- Minor fix for mandrill tags

-- version 1.1.13 stable
- Fix for mandrill tags
- Fix for autoresponders admin configuration

-- version 1.1.12 stable
- Fix for autoresponders

-- version 1.1.11 stable
- fix for abandoned carts
-- fix for multistore templates
- first release of autoresponders

-- version 1.1.10 stable
- fix for abandondedcart dashboard

-- version 1.1.9 stable
- Fix for mandrill tags

-- version 1.1.8 stable
- Fix render group errors when user it's guest
- Improve merge var to get address fields
- Fix Bulk Sync import functionality when we create new customers in case doesn't exist
- Fix dashboard in abandoned cart
- Fix database definition in abandoned cart
- Add logs in abandoned cart settings
- Fix for tags in abandoned carts mandrill
- Add subject email to the admin in abandoned cart

-- version 1.17 stable
- Add customer groups to abandoned cart
- Fix abandoned cart orders grid
- Fix for unsuscribe

-- version 1.1.6 stable
- Improve Abandoned Cart template (add tax, skus in configurable/bundle products)
- Add option to send abandoned cart emails By Days/Hours
- Add new Ecommerce360 option to send orders to MailChimp (By Cron depending on the Orders Status)
- Fix Wrong Store Name display error on BulkSync exports
- Posibility to Delete Ecommerce360 Orders in Magento (Not in MailChimp)
- Improve data Sync between Magento -> MailChimp (add telephone and company) Send Billing and Shipping address on Exports
- Show interest groups on Checkout in case has enable the subscribe on checkout
- Add createAtachment and addTo in the Emails functionality

-- version 1.1.5 stable
- Fix for abandoned cart, enable to put a specific coupon created on magento

-- version 1.1.4 stable
- Fix for abandoned cart multi store management
- Fix for abandoned cart not send email for a quote who has an order posterior from the same customer

-- version 1.1.3 stable
- Support for mandrill attachments

-- version 1.1.2 stable
- Fix for abandoned cart, coupon qty > 1 for the same product
- Fix for abandoned cart, customer name in email
- Fix for abandoned cart, cart content in email
- Fix for database with prefix

-- version 1.1.1 stable
- Adding configuration field to Start Date for abandoned carts
- Add abandonedflag to sales_flat_order
- Change for magento 1.4.2 and 1.5.*

-- version 1.1.0 stable

- Adding abandoned order manager (beta)

-- version 1.0.22 stable

- Adding Oauth2 support to connect MageMonkey with MailChimp
- Fallback on setReplyTo in Mandrill when transactional email is not enabled
- addBcc Fix on Mandrill

-- version 1.0.21 stable

- Fix duplicated confirmation email notifications
- Add success message when customer register from the "My Account" section
- Add mass action option to Sales -> Order grid in admin panel to send orders to MC
- Fix Mandrill_API::addTo() and Mandrill_API::replyTo() issues in the Mandrill module
- Add version information in the configuration for the Mandrill module

-- version 1.0.19 stable

- Fix automatic unsubscribe issue when users create orders from backend
- Adding BCC support for Mandrill Emails
- Remove enconding from subject for Mandrill Emails
- Add tags in emails sent from Mandrill

-- version 1.0.18 stable

Independence between MageMonkey and Mandrill modules

-- version 1.0.17 stable

-Fix "unsubscribe" when place an order

-- version 1.0.16 stable

- Fix progress bar on export function
- Add option in admin for limit of customers per round for export and import and delete customers in Magento when are removed in MailChimp
- Fix unsubscribe on edit customer from the admin panel
- Add version in the config
- Fix "Fatal error: Cannot use string offset as an array"

-- version 1.0.15 stable

- fix rendering of additional lists html elements
- Fix force subscription on checkout when use a payment method wich redirects to a payment page like PayPal Express Checkout.

-- version 1.0.14 stable
Fix Export functionality, only customers with status "subscribed" are exported now.
Increase the limit of customers for exports from 200 to 1000 per hour
Fix bug in unsubscribe customers.
Send email confirmation in double opt-in is not used.
Improve the save configuration proccess, add warnings, remove blank messages, improve the auto save webhooks in MailChimp.
Fix force subscription on checkout when use a payment method wich redirects to a payment page like PayPal Express Checkout.
Add new help links in the configuration ("What's MailChimp my IP Key?" and "How to segment your list based on your customers purchase activity").
Don't display additional lists newsletter block on checkout when there are no additional lists selected

-- version 1.0.13 stable
Fixing bug on admin urls when store code is used, more bugs fixed.

-- version 1.0.12 stable
Fixing bug on renderer for old magentos

-- version 1.0.11 stable
Adding export jobs per store id

-- version 1.0.10 stable
Fixing Ebizmarts_MageMonkey_Block_Adminhtml_Renderer_Lists bug
Fixing bug on MyAccount when subscribing, unsubscribing
Fix for bug on account creation, automatically subscribing
Ecommerce360 total with discount
Fixing but on order saving issue when customer is subscribed on MailChimp
Fixing error on cart page when compilation is ON

-- version 1.0.9 stable
Bug fix on webhooks url when Rewrites are not enabled

-- version 1.0.8 stable
Bug fix on checkout subscribe issues and EE customer credit balance issue fix (Customer is not set or does not exist.)

-- version 1.0.7 stable
Bug fix on TinyMCE inserting image, workaround for Magento passing a store parameter with undefined value.

-- version 1.0.6 stable
Fix bug when on hardcoded default store code. Additional Lists.

-- version 1.0.4 stable
Fix bug when checking newsletter box when registering. Adding customer groups as Interest Grouping

-- version 1.0.2 beta
Fixing bug on bulk export for customers, gets stuck on 200

-- version 1.0.1 beta
Bug fixing when deleting a subscriber

-- version 1.0.0 beta
Including STS

First public release 0.0.9, January 2012

Download this release

Release Info

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


Code changes from version 1.1.19 to 1.1.20

Files changed (38) hide show
  1. app/code/community/Ebizmarts/AbandonedCart/Block/Adminhtml/Abandonedmails/Grid.php +2 -1
  2. app/code/community/Ebizmarts/AbandonedCart/Model/Cron.php +4 -1
  3. app/code/community/Ebizmarts/AbandonedCart/Model/EventObserver.php +12 -2
  4. app/code/community/Ebizmarts/AbandonedCart/etc/config.xml +5 -1
  5. app/code/community/Ebizmarts/AbandonedCart/etc/system.xml +12 -0
  6. app/code/community/Ebizmarts/Autoresponder/Block/Review/Form.php +18 -0
  7. app/code/community/Ebizmarts/Autoresponder/Model/Config.php +26 -0
  8. app/code/community/Ebizmarts/Autoresponder/Model/Cron.php +36 -7
  9. app/code/community/Ebizmarts/Autoresponder/Model/EventObserver.php +185 -7
  10. app/code/community/Ebizmarts/Autoresponder/Model/Resource/Review.php +25 -0
  11. app/code/community/Ebizmarts/Autoresponder/Model/Resource/Review/Collection.php +15 -0
  12. app/code/community/Ebizmarts/Autoresponder/Model/Review.php +18 -0
  13. app/code/community/Ebizmarts/Autoresponder/Model/System/Config/Couponcounter.php +19 -0
  14. app/code/community/Ebizmarts/Autoresponder/Model/System/Config/Generaltype.php +20 -0
  15. app/code/community/Ebizmarts/Autoresponder/etc/config.xml +33 -1
  16. app/code/community/Ebizmarts/Autoresponder/etc/system.xml +294 -3
  17. app/code/community/Ebizmarts/Autoresponder/sql/ebizmarts_autoresponder_setup/mysql4-upgrade-0.1.3-0.1.4.php +1 -1
  18. app/code/community/Ebizmarts/Autoresponder/sql/ebizmarts_autoresponder_setup/mysql4-upgrade-0.1.4-0.1.5.php +57 -0
  19. app/code/community/Ebizmarts/MageMonkey/Helper/Data.php +5 -2
  20. app/code/community/Ebizmarts/Mandrill/Helper/Data.php +3 -1
  21. app/code/community/Ebizmarts/Mandrill/Model/Email/Template.php +2 -1
  22. app/code/community/Ebizmarts/Mandrill/etc/adminhtml.xml +5 -5
  23. app/code/community/Ebizmarts/Mandrill/etc/config.xml +1 -1
  24. app/code/community/Ebizmarts/Mandrill/etc/system.xml +11 -1
  25. app/design/frontend/base/default/layout/ebizmarts/autoresponder.xml +28 -0
  26. app/design/frontend/base/default/template/ebizmarts/autoresponder/related/items.phtml +2 -2
  27. app/design/frontend/base/default/template/ebizmarts/autoresponder/review/items.phtml +10 -4
  28. app/design/frontend/base/default/template/ebizmarts/autoresponder/wishlist/items.phtml +2 -2
  29. app/design/frontend/base/default/template/magemonkey/checkout/subscribe.phtml +1 -1
  30. app/design/frontend/base/default/template/magemonkey/customer/account/lists.phtml +0 -96
  31. app/design/frontend/base/default/template/magemonkey/lists.phtml +1 -1
  32. app/locale/en_US/template/email/ebizmarts/autoresponder/review.html +1 -1
  33. app/locale/en_US/template/email/ebizmarts/autoresponder/reviewcoupon.html +34 -0
  34. js/ebizmarts/autoresponders/visitedproducts.js +1 -1
  35. lib/Mandrill/API.php +17 -4
  36. package.xml +19 -5
  37. skin/adminhtml/default/default/magemonkey/magemonkey.css +1 -1
  38. skin/adminhtml/default/default/mandrill/mandrill.css +1 -1
app/code/community/Ebizmarts/AbandonedCart/Block/Adminhtml/Abandonedmails/Grid.php CHANGED
@@ -91,7 +91,8 @@ class Ebizmarts_AbandonedCart_Block_Adminhtml_Abandonedmails_Grid extends Mage_A
91
 
92
  protected function getMailTypeOptions()
93
  {
94
- return array('abandoned cart'=>'abandoned cart','happy birthday'=>'happy birthday','new order'=>'new order', 'related products'=>'related products', 'product review'=>'product review', 'no activity'=>'no activity', 'wishlist'=>'wishlist');
 
95
  }
96
 
97
  }
91
 
92
  protected function getMailTypeOptions()
93
  {
94
+ return array('abandoned cart'=>'abandoned cart','happy birthday'=>'happy birthday','new order'=>'new order', 'related products'=>'related products',
95
+ 'product review'=>'product review', 'no activity'=>'no activity', 'wishlist'=>'wishlist', 'review coupon' => 'review coupon');
96
  }
97
 
98
  }
app/code/community/Ebizmarts/AbandonedCart/Model/Cron.php CHANGED
@@ -23,7 +23,10 @@ class Ebizmarts_AbandonedCart_Model_Cron
23
  */
24
  protected function _proccess($store)
25
  {
26
- Mage::app()->setCurrentStore($store);
 
 
 
27
 
28
  $adapter = Mage::getSingleton('core/resource')->getConnection('sales_read');
29
  $days = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::DAYS, $store);
23
  */
24
  protected function _proccess($store)
25
  {
26
+ //Mage::app()->setCurrentStore($store);
27
+ Mage::unregister('_singleton/core/design_package' );
28
+ Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);
29
+ Mage::getSingleton('core/design_package' )->setStore($store);
30
 
31
  $adapter = Mage::getSingleton('core/resource')->getConnection('sales_read');
32
  $days = Mage::getStoreConfig(Ebizmarts_AbandonedCart_Model_Config::DAYS, $store);
app/code/community/Ebizmarts/AbandonedCart/Model/EventObserver.php CHANGED
@@ -10,10 +10,20 @@ class Ebizmarts_AbandonedCart_Model_EventObserver
10
  {
11
  public function saveConfig(Varien_Event_Observer $o)
12
  {
13
- $store = is_null($o->getEvent()->getStore()) ? 'default': $o->getEvent()->getStore();
 
 
 
 
 
 
 
 
 
 
14
  if(!Mage::helper('mandrill')->useTransactionalService()) {
15
  $config = new Mage_Core_Model_Config();
16
- $config->saveConfig(Ebizmarts_AbandonedCart_Model_Config::ACTIVE,false,"default",$store);
17
  Mage::getConfig()->cleanCache();
18
  }
19
 
10
  {
11
  public function saveConfig(Varien_Event_Observer $o)
12
  {
13
+ if(Mage::app()->getRequest()->getParam('store')) {
14
+ $scope = 'store';
15
+ }
16
+ elseif(Mage::app()->getRequest()->getParam('website')) {
17
+ $scope = 'website';
18
+ }
19
+ else {
20
+ $scope = 'default';
21
+ }
22
+
23
+ $store = is_null($o->getEvent()->getStore()) ? Mage::app()->getDefaultStoreView()->getCode(): $o->getEvent()->getStore();
24
  if(!Mage::helper('mandrill')->useTransactionalService()) {
25
  $config = new Mage_Core_Model_Config();
26
+ $config->saveConfig(Ebizmarts_AbandonedCart_Model_Config::ACTIVE,false,$scope,$store);
27
  Mage::getConfig()->cleanCache();
28
  }
29
 
app/code/community/Ebizmarts/AbandonedCart/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Ebizmarts_AbandonedCart>
5
- <version>0.1.24</version>
6
  </Ebizmarts_AbandonedCart>
7
  </modules>
8
  <global>
@@ -48,6 +48,9 @@
48
  <setup>
49
  <module>Ebizmarts_AbandonedCart</module>
50
  </setup>
 
 
 
51
  </ebizmarts_abandonedcart_setup>
52
  </resources>
53
  <fieldsets>
@@ -137,6 +140,7 @@
137
  <mandrill-tag>AbandonedCart</mandrill-tag>
138
  <autologin>0</autologin>
139
  <page>checkout/cart</page>
 
140
  </general>
141
  </ebizmarts_abandonedcart>
142
  </default>
2
  <config>
3
  <modules>
4
  <Ebizmarts_AbandonedCart>
5
+ <version>0.1.25</version>
6
  </Ebizmarts_AbandonedCart>
7
  </modules>
8
  <global>
48
  <setup>
49
  <module>Ebizmarts_AbandonedCart</module>
50
  </setup>
51
+ <connection>
52
+ <use>core_setup</use>
53
+ </connection>
54
  </ebizmarts_abandonedcart_setup>
55
  </resources>
56
  <fieldsets>
140
  <mandrill-tag>AbandonedCart</mandrill-tag>
141
  <autologin>0</autologin>
142
  <page>checkout/cart</page>
143
+ <incremental>0</incremental>
144
  </general>
145
  </ebizmarts_abandonedcart>
146
  </default>
app/code/community/Ebizmarts/AbandonedCart/etc/system.xml CHANGED
@@ -84,6 +84,18 @@
84
  <active>1</active>
85
  </depends>
86
  </template>
 
 
 
 
 
 
 
 
 
 
 
 
87
  <subject translate="label comment">
88
  <label>Email Subject</label>
89
  <frontend_type>text</frontend_type>
84
  <active>1</active>
85
  </depends>
86
  </template>
87
+ <incremental translate="label">
88
+ <label>Incrementals Templates</label>
89
+ <frontend_type>select</frontend_type>
90
+ <source_model>adminhtml/system_config_source_yesno</source_model>
91
+ <sort_order>23</sort_order>
92
+ <show_in_default>1</show_in_default>
93
+ <show_in_website>1</show_in_website>
94
+ <show_in_store>1</show_in_store>
95
+ <depends>
96
+ <active>1</active>
97
+ </depends>
98
+ </incremental>
99
  <subject translate="label comment">
100
  <label>Email Subject</label>
101
  <frontend_type>text</frontend_type>
app/code/community/Ebizmarts/Autoresponder/Block/Review/Form.php ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Author : Ebizmarts <info@ebizmarts.com>
4
+ * Date : 10/24/13
5
+ * Time : 7:34 PM
6
+ * File : Form.php
7
+ * Module : Ebizmarts_Magemonkey
8
+ */
9
+ class Ebizmarts_Autoresponder_Block_Review_Form extends Mage_Review_Block_Form
10
+ {
11
+ public function getAction()
12
+ {
13
+ $productId = Mage::app()->getRequest()->getParam('id', false);
14
+ $token = Mage::app()->getRequest()->getParam('token', false);
15
+ return Mage::getUrl('review/product/post', array('id' => $productId, 'token' => $token));
16
+ }
17
+
18
+ }
app/code/community/Ebizmarts/Autoresponder/Model/Config.php CHANGED
@@ -25,6 +25,7 @@ class Ebizmarts_Autoresponder_Model_Config
25
  const RELATED_MANDRILL_TAG = 'ebizmarts_autoresponder/related/mandrill-tag';
26
  const RELATED_SUBJECT = 'ebizmarts_autoresponder/related/subject';
27
  const RELATED_MAX = 'ebizmarts_autoresponder/related/max-related';
 
28
 
29
  const REVIEW_ACTIVE = 'ebizmarts_autoresponder/review/active';
30
  const REVIEW_DAYS = 'ebizmarts_autoresponder/review/days';
@@ -32,6 +33,26 @@ class Ebizmarts_Autoresponder_Model_Config
32
  const REVIEW_TEMPLATE = 'ebizmarts_autoresponder/review/template';
33
  const REVIEW_MANDRILL_TAG = 'ebizmarts_autoresponder/review/mandrill-tag';
34
  const REVIEW_SUBJECT = 'ebizmarts_autoresponder/review/subject';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
 
36
  const BIRTHDAY_ACTIVE = 'ebizmarts_autoresponder/birthday/active';
37
  const BIRTHDAY_DAYS = 'ebizmarts_autoresponder/birthday/days';
@@ -75,4 +96,9 @@ class Ebizmarts_Autoresponder_Model_Config
75
 
76
  const COUPON_AUTOMATIC = 2;
77
  const COUPON_MANUAL = 1;
 
 
 
 
 
78
  }
25
  const RELATED_MANDRILL_TAG = 'ebizmarts_autoresponder/related/mandrill-tag';
26
  const RELATED_SUBJECT = 'ebizmarts_autoresponder/related/subject';
27
  const RELATED_MAX = 'ebizmarts_autoresponder/related/max-related';
28
+ const RELATED_STATUS = 'ebizmarts_autoresponder/related/status';
29
 
30
  const REVIEW_ACTIVE = 'ebizmarts_autoresponder/review/active';
31
  const REVIEW_DAYS = 'ebizmarts_autoresponder/review/days';
33
  const REVIEW_TEMPLATE = 'ebizmarts_autoresponder/review/template';
34
  const REVIEW_MANDRILL_TAG = 'ebizmarts_autoresponder/review/mandrill-tag';
35
  const REVIEW_SUBJECT = 'ebizmarts_autoresponder/review/subject';
36
+ const REVIEW_STATUS = 'ebizmarts_autoresponder/review/status';
37
+ const REVIEW_HAS_COUPON = 'ebizmarts_autoresponder/review/coupon';
38
+ const REVIEW_COUPON_CUSTOMER_GROUP = 'ebizmarts_autoresponder/review/customer_coupon';
39
+ const REVIEW_COUPON_AUTOMATIC = 'ebizmarts_autoresponder/review/automatic';
40
+ const REVIEW_COUPON_CODE = 'ebizmarts_autoresponder/review/coupon_code';
41
+ const REVIEW_COUPON_EXPIRE = 'ebizmarts_autoresponder/review/expire';
42
+ const REVIEW_COUPON_LENGTH = 'ebizmarts_autoresponder/review/length';
43
+ const REVIEW_COUPON_DISCOUNT_TYPE = 'ebizmarts_autoresponder/review/discounttype';
44
+ const REVIEW_COUPON_DISCOUNT = 'ebizmarts_autoresponder/review/discount';
45
+ const REVIEW_COUPON_LABEL = 'ebizmarts_autoresponder/review/couponlabel';
46
+ const REVIEW_COUPON_COUNTER = 'ebizmarts_autoresponder/review/coupon_counter';
47
+ const REVIEW_COUPON_GENERAL_QUANTITY = 'ebizmarts_autoresponder/review/coupon_general_quantity';
48
+ const REVIEW_COUPON_GENERAL_TYPE = 'ebizmarts_autoresponder/review/coupon_general_type';
49
+ const REVIEW_COUPON_SPECIFIC_QUANTITY = 'ebizmarts_autoresponder/review/coupon_specific_quantity';
50
+ const REVIEW_COUPON_ORDER_COUNTER = 'ebizmarts_autoresponder/review/coupon_order_counter';
51
+ const REVIEW_COUPON_ORDER_ALMOST = 'ebizmarts_autoresponder/review/coupon_order_almost';
52
+ const REVIEW_COUPON_ORDER_MAX = 'ebizmarts_autoresponder/review/coupon_order_max';
53
+ const REVIEW_COUPON_MANDRILL_TAG = 'ebizmarts_autoresponder/review/coupon_mandrill_tag';
54
+ const REVIEW_COUPON_SUBJECT = 'ebizmarts_autoresponder/review/coupon_mail_subject';
55
+ const REVIEW_COUPON_EMAIL = 'ebizmarts_autoresponder/review/coupon_template';
56
 
57
  const BIRTHDAY_ACTIVE = 'ebizmarts_autoresponder/birthday/active';
58
  const BIRTHDAY_DAYS = 'ebizmarts_autoresponder/birthday/days';
96
 
97
  const COUPON_AUTOMATIC = 2;
98
  const COUPON_MANUAL = 1;
99
+ const COUPON_GENERAL = 2;
100
+ const COUPON_PER_ORDER = 1;
101
+ const TYPE_EACH = 1;
102
+ const TYPE_ONCE = 2;
103
+ const TYPE_SPECIFIC = 3;
104
  }
app/code/community/Ebizmarts/Autoresponder/Model/Cron.php CHANGED
@@ -27,7 +27,10 @@ class Ebizmarts_Autoresponder_Model_Cron
27
  */
28
  protected function _processStore($storeId)
29
  {
30
- Mage::app()->setCurrentStore($storeId);
 
 
 
31
 
32
  if(Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::NEWORDER_ACTIVE,$storeId)) { // done
33
  $this->_processNewOrders($storeId);
@@ -172,8 +175,10 @@ class Ebizmarts_Autoresponder_Model_Cron
172
  if($orderCollection->getSize()>0) { // if the customer has any order for this store
173
  $logCustomer = Mage::getModel('log/customer')->loadByCustomer($customer);
174
  $lastVisited = $logCustomer->getLoginAt();
175
- $limit = date("Y-m-d H:i:s",strtotime(" - $days days"));
176
- if($limit>$lastVisited) {
 
 
177
  $translate = Mage::getSingleton('core/translate');
178
  $cust = Mage::getModel('customer/customer')->load($customerId);
179
  $email = $cust->getEmail();
@@ -201,6 +206,7 @@ class Ebizmarts_Autoresponder_Model_Cron
201
  $sender = array('name'=>Mage::getStoreConfig("trans_email/ident_$senderId/name",$storeId), 'email'=> Mage::getStoreConfig("trans_email/ident_$senderId/email",$storeId));
202
  $templateId = Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::RELATED_TEMPLATE,$storeId);
203
  $maxRelated = Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::RELATED_MAX,$storeId);
 
204
 
205
  $expr = sprintf('DATE_SUB(%s, %s)', $adapter->quote(now()), $this->_getIntervalUnitSql($days, 'DAY'));
206
  $from = new Zend_Db_Expr($expr);
@@ -208,7 +214,9 @@ class Ebizmarts_Autoresponder_Model_Cron
208
  $to = new Zend_Db_Expr($expr);
209
  $collection = Mage::getResourceModel('sales/order_collection');
210
  $collection->addFieldToFilter('main_table.store_id',array('eq'=>$storeId))
211
- ->addFieldToFilter('main_table.created_at',array('from'=>$from,'to'=>$to));
 
 
212
  if(count($customerGroups)) {
213
  $collection->addFieldToFilter('main_table.customer_group_id',array('in'=> $customerGroups));
214
  }
@@ -230,8 +238,8 @@ class Ebizmarts_Autoresponder_Model_Cron
230
  }
231
  if($counter > 0) {
232
  $translate = Mage::getSingleton('core/translate');
 
233
  if($this->_isSubscribed($email,'related',$storeId)) {
234
- $email = $order->getCustomerEmail();
235
  $name = $order->getCustomerFirstname().' '.$order->getCustomerLastname();
236
  $url = Mage::getModel('core/url')->setStore($storeId)->getUrl().'ebizautoresponder/autoresponder/unsubscribe?list=related&email='.$email.'&store='.$storeId;
237
  $vars = array('name' => $name,'tags'=>array($tags),'related'=>$allRelated,'url'=>$url);
@@ -253,6 +261,7 @@ class Ebizmarts_Autoresponder_Model_Cron
253
  $senderId = Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::GENERAL_SENDER,$storeId);
254
  $sender = array('name'=>Mage::getStoreConfig("trans_email/ident_$senderId/name",$storeId), 'email'=> Mage::getStoreConfig("trans_email/ident_$senderId/email",$storeId));
255
  $templateId = Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::REVIEW_TEMPLATE,$storeId);
 
256
 
257
  $expr = sprintf('DATE_SUB(%s, %s)', $adapter->quote(now()), $this->_getIntervalUnitSql($days, 'DAY'));
258
  $from = new Zend_Db_Expr($expr);
@@ -260,7 +269,10 @@ class Ebizmarts_Autoresponder_Model_Cron
260
  $to = new Zend_Db_Expr($expr);
261
  $collection = Mage::getResourceModel('sales/order_collection');
262
  $collection->addFieldToFilter('main_table.store_id',array('eq'=>$storeId))
263
- ->addFieldToFilter('main_table.created_at',array('from'=>$from,'to'=>$to));
 
 
 
264
  if(count($customerGroups)) {
265
  $collection->addFieldToFilter('main_table.customer_group_id',array('in'=> $customerGroups));
266
  }
@@ -268,6 +280,18 @@ class Ebizmarts_Autoresponder_Model_Cron
268
  $translate = Mage::getSingleton('core/translate');
269
  $email = $order->getCustomerEmail();
270
  if($this->_isSubscribed($email,'review',$storeId)) {
 
 
 
 
 
 
 
 
 
 
 
 
271
  $name = $order->getCustomerFirstname().' '.$order->getCustomerLastname();
272
  $products = array();
273
  foreach($order->getAllItems() as $item) {
@@ -279,7 +303,12 @@ class Ebizmarts_Autoresponder_Model_Cron
279
  }
280
  $orderNum = $order->getIncrementId();
281
  $url = Mage::getModel('core/url')->setStore($storeId)->getUrl().'ebizautoresponder/autoresponder/unsubscribe?list=review&email='.$email.'&store='.$storeId;
282
- $vars = array('name' => $name,'tags'=>array($tags),'products'=>$products,'ordernum'=>$orderNum,'url'=>$url);
 
 
 
 
 
283
  $mail = Mage::getModel('core/email_template')->setTemplateSubject($mailSubject)->sendTransactional($templateId,$sender,$email,$name,$vars,$storeId);
284
  $translate->setTranslateInLine(true);
285
  Mage::helper('ebizmarts_abandonedcart')->saveMail('product review',$email,$name,"",$storeId);
27
  */
28
  protected function _processStore($storeId)
29
  {
30
+ //Mage::app()->setCurrentStore($storeId);
31
+ Mage::unregister('_singleton/core/design_package' );
32
+ Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);
33
+ Mage::getSingleton('core/design_package' )->setStore($storeId);
34
 
35
  if(Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::NEWORDER_ACTIVE,$storeId)) { // done
36
  $this->_processNewOrders($storeId);
175
  if($orderCollection->getSize()>0) { // if the customer has any order for this store
176
  $logCustomer = Mage::getModel('log/customer')->loadByCustomer($customer);
177
  $lastVisited = $logCustomer->getLoginAt();
178
+ $limitup = date("Y-m-d H:i:s",strtotime(" - $days days"));
179
+ $daysAux = $days +1;
180
+ $limitdown = date("Y-m-d H:i:s",strtotime(" - $daysAux days"));
181
+ if($limitup>$lastVisited&&$limitdown<$lastVisited) {
182
  $translate = Mage::getSingleton('core/translate');
183
  $cust = Mage::getModel('customer/customer')->load($customerId);
184
  $email = $cust->getEmail();
206
  $sender = array('name'=>Mage::getStoreConfig("trans_email/ident_$senderId/name",$storeId), 'email'=> Mage::getStoreConfig("trans_email/ident_$senderId/email",$storeId));
207
  $templateId = Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::RELATED_TEMPLATE,$storeId);
208
  $maxRelated = Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::RELATED_MAX,$storeId);
209
+ $status = Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::RELATED_STATUS,$storeId);
210
 
211
  $expr = sprintf('DATE_SUB(%s, %s)', $adapter->quote(now()), $this->_getIntervalUnitSql($days, 'DAY'));
212
  $from = new Zend_Db_Expr($expr);
214
  $to = new Zend_Db_Expr($expr);
215
  $collection = Mage::getResourceModel('sales/order_collection');
216
  $collection->addFieldToFilter('main_table.store_id',array('eq'=>$storeId))
217
+ ->addFieldToFilter('main_table.created_at',array('from'=>$from,'to'=>$to))
218
+ ->addFieldToFilter('main_table.status',array('eq'=>$status));
219
+
220
  if(count($customerGroups)) {
221
  $collection->addFieldToFilter('main_table.customer_group_id',array('in'=> $customerGroups));
222
  }
238
  }
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);
261
  $senderId = Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::GENERAL_SENDER,$storeId);
262
  $sender = array('name'=>Mage::getStoreConfig("trans_email/ident_$senderId/name",$storeId), 'email'=> Mage::getStoreConfig("trans_email/ident_$senderId/email",$storeId));
263
  $templateId = Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::REVIEW_TEMPLATE,$storeId);
264
+ $status = Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::REVIEW_STATUS,$storeId);
265
 
266
  $expr = sprintf('DATE_SUB(%s, %s)', $adapter->quote(now()), $this->_getIntervalUnitSql($days, 'DAY'));
267
  $from = new Zend_Db_Expr($expr);
269
  $to = new Zend_Db_Expr($expr);
270
  $collection = Mage::getResourceModel('sales/order_collection');
271
  $collection->addFieldToFilter('main_table.store_id',array('eq'=>$storeId))
272
+ // ->addFieldToFilter('main_table.created_at',array('from'=>$from,'to'=>$to))
273
+ ->addFieldToFilter('main_table.updated_at',array('from'=>$from,'to'=>$to))
274
+ ->addFieldToFilter('main_table.status',array('eq'=>$status));
275
+ // Mage::log((string)$collection->getSelect());
276
  if(count($customerGroups)) {
277
  $collection->addFieldToFilter('main_table.customer_group_id',array('in'=> $customerGroups));
278
  }
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));
286
+ $review = Mage::getModel('ebizmarts_autoresponder/review');
287
+ $review->setCustomerId($order->getCustomerId())
288
+ ->setStoreId($storeId)
289
+ ->setItems($order->getTotalItemCount())
290
+ ->setCounter(0)
291
+ ->setToken($token)
292
+ ->setOrderId($order->getIncrementId())
293
+ ->save();
294
+ }
295
  $name = $order->getCustomerFirstname().' '.$order->getCustomerLastname();
296
  $products = array();
297
  foreach($order->getAllItems() as $item) {
303
  }
304
  $orderNum = $order->getIncrementId();
305
  $url = Mage::getModel('core/url')->setStore($storeId)->getUrl().'ebizautoresponder/autoresponder/unsubscribe?list=review&email='.$email.'&store='.$storeId;
306
+ if(Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::REVIEW_HAS_COUPON,$storeId)) {
307
+ $vars = array('name' => $name,'tags'=>array($tags),'products'=>$products,'ordernum'=>$orderNum,'url'=>$url, 'token' =>$token);
308
+ }
309
+ else {
310
+ $vars = array('name' => $name,'tags'=>array($tags),'products'=>$products,'ordernum'=>$orderNum,'url'=>$url);
311
+ }
312
  $mail = Mage::getModel('core/email_template')->setTemplateSubject($mailSubject)->sendTransactional($templateId,$sender,$email,$name,$vars,$storeId);
313
  $translate->setTranslateInLine(true);
314
  Mage::helper('ebizmarts_abandonedcart')->saveMail('product review',$email,$name,"",$storeId);
app/code/community/Ebizmarts/Autoresponder/Model/EventObserver.php CHANGED
@@ -13,37 +13,215 @@ class Ebizmarts_Autoresponder_Model_EventObserver
13
  */
14
  public function saveConfig(Varien_Event_Observer $o)
15
  {
16
- $store = is_null($o->getEvent()->getStore()) ? 'default': $o->getEvent()->getStore();
 
 
 
 
 
 
 
 
 
17
  if(!Mage::helper('mandrill')->useTransactionalService()) {
18
  $config = new Mage_Core_Model_Config();
19
- $config->saveConfig(Ebizmarts_Autoresponder_Model_Config::GENERAL_ACTIVE,false,"default",$store);
20
  Mage::getConfig()->cleanCache();
21
  }
22
  if(!Mage::helper('mandrill')->useTransactionalService()) {
23
  $config = new Mage_Core_Model_Config();
24
- $config->saveConfig(Ebizmarts_AbandonedCart_Model_Config::ACTIVE,false,"default",$store);
25
  Mage::getConfig()->cleanCache();
26
  }
27
  if(!Mage::getStoreConfig('customer/address/dob_show')) {
28
  $config = new Mage_Core_Model_Config();
29
- $config->saveConfig(Ebizmarts_Autoresponder_Model_Config::BIRTHDAY_ACTIVE,false,"default",$store);
30
  Mage::getConfig()->cleanCache();
31
  }
32
  if(!Mage::getStoreConfig('customer/address/dob_show',$store)) {
33
  $config = new Mage_Core_Model_Config();
34
- $config->saveConfig(Ebizmarts_Autoresponder_Model_Config::BIRTHDAY_ACTIVE,false,"default",$store);
35
  Mage::getConfig()->cleanCache();
36
  }
37
  if(Mage::getStoreConfig('advanced/modules_disable_output/Mage_Wishlist',$store)) {
38
  $config = new Mage_Core_Model_Config();
39
- $config->saveConfig(Ebizmarts_Autoresponder_Model_Config::WISHLIST_ACTIVE,false,"default",$store);
40
  Mage::getConfig()->cleanCache();
41
  }
42
  if(Mage::getStoreConfig('advanced/modules_disable_output/Mage_Review',$store)) {
43
  $config = new Mage_Core_Model_Config();
44
- $config->saveConfig(Ebizmarts_Autoresponder_Model_Config::REVIEW_ACTIVE,false,"default",$store);
45
  Mage::getConfig()->cleanCache();
46
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
  }
49
  }
13
  */
14
  public function saveConfig(Varien_Event_Observer $o)
15
  {
16
+ if(Mage::app()->getRequest()->getParam('store')) {
17
+ $scope = 'store';
18
+ }
19
+ elseif(Mage::app()->getRequest()->getParam('website')) {
20
+ $scope = 'website';
21
+ }
22
+ else {
23
+ $scope = "default";
24
+ }
25
+ $store = is_null($o->getEvent()->getStore()) ? Mage::app()->getDefaultStoreView()->getCode(): $o->getEvent()->getStore();
26
  if(!Mage::helper('mandrill')->useTransactionalService()) {
27
  $config = new Mage_Core_Model_Config();
28
+ $config->saveConfig(Ebizmarts_Autoresponder_Model_Config::GENERAL_ACTIVE,false,$scope,$store);
29
  Mage::getConfig()->cleanCache();
30
  }
31
  if(!Mage::helper('mandrill')->useTransactionalService()) {
32
  $config = new Mage_Core_Model_Config();
33
+ $config->saveConfig(Ebizmarts_AbandonedCart_Model_Config::ACTIVE,false,$scope,$store);
34
  Mage::getConfig()->cleanCache();
35
  }
36
  if(!Mage::getStoreConfig('customer/address/dob_show')) {
37
  $config = new Mage_Core_Model_Config();
38
+ $config->saveConfig(Ebizmarts_Autoresponder_Model_Config::BIRTHDAY_ACTIVE,false,$scope,$store);
39
  Mage::getConfig()->cleanCache();
40
  }
41
  if(!Mage::getStoreConfig('customer/address/dob_show',$store)) {
42
  $config = new Mage_Core_Model_Config();
43
+ $config->saveConfig(Ebizmarts_Autoresponder_Model_Config::BIRTHDAY_ACTIVE,false,$scope,$store);
44
  Mage::getConfig()->cleanCache();
45
  }
46
  if(Mage::getStoreConfig('advanced/modules_disable_output/Mage_Wishlist',$store)) {
47
  $config = new Mage_Core_Model_Config();
48
+ $config->saveConfig(Ebizmarts_Autoresponder_Model_Config::WISHLIST_ACTIVE,false,$scope,$store);
49
  Mage::getConfig()->cleanCache();
50
  }
51
  if(Mage::getStoreConfig('advanced/modules_disable_output/Mage_Review',$store)) {
52
  $config = new Mage_Core_Model_Config();
53
+ $config->saveConfig(Ebizmarts_Autoresponder_Model_Config::REVIEW_ACTIVE,false,$scope,$store);
54
  Mage::getConfig()->cleanCache();
55
  }
56
+ }
57
+ public function actionAfter(Varien_Event_Observer $o)
58
+ {
59
+ if($o->getEvent()->getControllerAction()->getFullActionName() == 'review_product_post') {
60
+ Mage::dispatchEvent("review_product_post_after", array('request' => $o->getControllerAction()->getRequest()));
61
+ }
62
+ }
63
+ public function reviewProductPostAfter(Varien_Event_Observer $o)
64
+ {
65
+ $params = Mage::app()->getRequest()->getParams();
66
+ $storeId = Mage::app()->getStore()->getId();
67
+ $customerGroupsCoupon = explode(",",Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::REVIEW_COUPON_CUSTOMER_GROUP, $storeId));
68
+ $templateId = Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::REVIEW_COUPON_EMAIL,$storeId);
69
+ $mailSubject = Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::REVIEW_COUPON_SUBJECT,$storeId);
70
+ $tags = Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::REVIEW_COUPON_MANDRILL_TAG,$storeId)."_$storeId";
71
+ $senderId = Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::GENERAL_SENDER,$storeId);
72
+ $sender = array('name'=>Mage::getStoreConfig("trans_email/ident_$senderId/name",$storeId), 'email'=> Mage::getStoreConfig("trans_email/ident_$senderId/email",$storeId));
73
+
74
+ if(isset($params['token'])) {
75
+ $token = $params['token'];
76
+ $reviewData = Mage::getModel('ebizmarts_autoresponder/review')->loadByToken($token);
77
+ if($this->_generateReviewCoupon($reviewData)) {
78
+ //generate coupon
79
+ $customer = Mage::getModel('customer/customer')->load($reviewData->getCustomerId());
80
+ $email = $customer->getEmail();
81
+ $name = $customer->getFirstname().' '.$customer->getLastname();
82
+ if(in_array($customer->getGroupId(),$customerGroupsCoupon)) {
83
+ if(Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::REVIEW_COUPON_AUTOMATIC,$storeId)==Ebizmarts_Autoresponder_Model_Config::COUPON_AUTOMATIC) {
84
+ list($couponcode,$discount,$toDate) = $this->_createNewCoupon($storeId,$email);
85
+ $vars = array('couponcode'=>$couponcode,'discount' => $discount, 'todate' => $toDate, 'name' => $name,'tags'=>array($tags));
86
+ }
87
+ else {
88
+ $couponcode = Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::REVIEW_COUPON_CODE);
89
+ $vars = array('couponcode'=>$couponcode, 'name' => $name,'tags'=>array($tags));
90
+ }
91
+ $translate = Mage::getSingleton('core/translate');
92
+ $mail = Mage::getModel('core/email_template')->setTemplateSubject($mailSubject)->sendTransactional($templateId,$sender,$email,$name,$vars,$storeId);
93
+ $translate->setTranslateInLine(true);
94
+ Mage::helper('ebizmarts_abandonedcart')->saveMail('review coupon',$email,$name,$couponcode,$storeId);
95
+ }
96
+ }
97
+ }
98
+ }
99
 
100
+ protected function _generateReviewCoupon($reviewData)
101
+ {
102
+ $store = Mage::app()->getStore()->getId();
103
+ if(!Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::REVIEW_HAS_COUPON,$store)) {
104
+ return false;
105
+ }
106
+ $rc = false;
107
+ // check if is a registered customer if not, return false
108
+ if(!$reviewData->getCustomerId()) {
109
+ return false;
110
+ }
111
+ // if the customer is registered the counter is in the customer account, so load the customer
112
+ $customer = Mage::getModel('customer/customer')->load($reviewData->getCustomerId());
113
+ $couponTotal = $customer->getEbizmartsReviewsCouponTotal();
114
+ switch(Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::REVIEW_COUPON_COUNTER,$store)) {
115
+ case Ebizmarts_Autoresponder_Model_Config::COUPON_GENERAL:
116
+ // update the counter
117
+ $counter = $customer->getEbizmartsReviewsCntrTotal();
118
+ $counter++;
119
+ $customer->setEbizmartsReviewsCntrTotal($counter)->save();
120
+ // check if coupon must be generated
121
+ $generalQuantity = Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::REVIEW_COUPON_GENERAL_QUANTITY,$store);
122
+ switch(Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::REVIEW_COUPON_GENERAL_TYPE)) {
123
+ case Ebizmarts_Autoresponder_Model_Config::TYPE_EACH:
124
+ if($counter&&$counter%$generalQuantity) {
125
+ $rc = true;
126
+ }
127
+ break;
128
+ case Ebizmarts_Autoresponder_Model_Config::TYPE_ONCE:
129
+ if($counter==$generalQuantity) {
130
+ $rc = true;
131
+ }
132
+ break;
133
+ case Ebizmarts_Autoresponder_Model_Config::TYPE_SPECIFIC:
134
+ if($counter&&$counter%$generalQuantity&&$customer->getEbizmartsReviewsCouponTotal()<=Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::REVIEW_COUPON_SPECIFIC_QUANTITY)) {
135
+ $rc = true;
136
+ }
137
+ break;
138
+ }
139
+ break;
140
+ case Ebizmarts_Autoresponder_Model_Config::COUPON_PER_ORDER:
141
+ // update the counter
142
+ $counter = $reviewData->getCounter();
143
+ $counter++;
144
+ $reviewData->setCounter($counter)->save();
145
+ if(Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::REVIEW_COUPON_ORDER_MAX) != 0 && $couponTotal >= Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::REVIEW_COUPON_ORDER_MAX)) {
146
+ $rc = false;
147
+ }
148
+ else {
149
+ if(Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::REVIEW_COUPON_ORDER_COUNTER,$store)==0) {
150
+ if($counter == $reviewData->getItems()) {
151
+ $rc = true;
152
+ }
153
+ else {
154
+ $rc = false;
155
+ }
156
+ }
157
+ elseif(Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::REVIEW_COUPON_ORDER_COUNTER,$store) == $counter) {
158
+ if($reviewData->getItems() >= Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::REVIEW_COUPON_ORDER_ALMOST,$store)) {
159
+ $rc = true;
160
+ }
161
+ else {
162
+ $rc = false;
163
+ }
164
+ }
165
+ }
166
+ break;
167
+ }
168
+ if($rc) { // increase the count of coupons in the customer
169
+ $customer->setEbizmartsReviewsCouponTotal($couponTotal+1)->save();
170
+ }
171
+ return $rc;
172
+ }
173
+
174
+ protected function _createNewCoupon($store,$email)
175
+ {
176
+ $couponamount = Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::REVIEW_COUPON_DISCOUNT, $store);
177
+ $couponexpiredays = Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::REVIEW_COUPON_EXPIRE, $store);
178
+ $coupontype = Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::REVIEW_COUPON_DISCOUNT_TYPE, $store);
179
+ $couponlength = Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::REVIEW_COUPON_LENGTH, $store);
180
+ $couponlabel = Mage::getStoreConfig(Ebizmarts_Autoresponder_Model_Config::REVIEW_COUPON_LABEL, $store);
181
+ $websiteid = Mage::getModel('core/store')->load($store)->getWebsiteId();
182
+
183
+ $fromDate = date("Y-m-d");
184
+ $toDate = date('Y-m-d', strtotime($fromDate. " + $couponexpiredays day"));
185
+ if($coupontype == 1) {
186
+ $action = 'cart_fixed';
187
+ $discount = Mage::app()->getStore($store)->getCurrentCurrencyCode()."$couponamount";
188
+ }
189
+ elseif($coupontype == 2) {
190
+ $action = 'by_percent';
191
+ $discount = "$couponamount%";
192
+ }
193
+ $customer_group = new Mage_Customer_Model_Group();
194
+ $allGroups = $customer_group->getCollection()->toOptionHash();
195
+ $groups = array();
196
+ foreach($allGroups as $groupid=>$name) {
197
+ $groups[] = $groupid;
198
+ }
199
+ $coupon_rule = Mage::getModel('salesrule/rule');
200
+ $coupon_rule->setName("Review coupon $email")
201
+ ->setDescription("Review coupon $email")
202
+ ->setFromDate($fromDate)
203
+ ->setToDate($toDate)
204
+ ->setIsActive(1)
205
+ ->setCouponType(2)
206
+ ->setUsesPerCoupon(1)
207
+ ->setUsesPerCustomer(1)
208
+ ->setCustomerGroupIds($groups)
209
+ ->setProductIds('')
210
+ ->setLengthMin($couponlength)
211
+ ->setLengthMax($couponlength)
212
+ ->setSortOrder(0)
213
+ ->setStoreLabels(array($couponlabel))
214
+ ->setSimpleAction($action)
215
+ ->setDiscountAmount($couponamount)
216
+ ->setDiscountQty(0)
217
+ ->setDiscountStep('0')
218
+ ->setSimpleFreeShipping('0')
219
+ ->setApplyToShipping('0')
220
+ ->setIsRss(0)
221
+ ->setWebsiteIds($websiteid);
222
+ $uniqueId = Mage::getSingleton('salesrule/coupon_codegenerator', array('length' => $couponlength))->generateCode();
223
+ $coupon_rule->setCouponCode($uniqueId);
224
+ $coupon_rule->save();
225
+ return array($uniqueId,$discount,$toDate);
226
  }
227
  }
app/code/community/Ebizmarts/Autoresponder/Model/Resource/Review.php ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Author : Ebizmarts <info@ebizmarts.com>
4
+ * Date : 10/22/13
5
+ * Time : 5:21 PM
6
+ * File : Review.php
7
+ * Module : Ebizmarts_Magemonkey
8
+ */
9
+ class Ebizmarts_Autoresponder_Model_Resource_Review extends Mage_Core_Model_Mysql4_Abstract
10
+ {
11
+ public function _construct()
12
+ {
13
+ $this->_init('ebizmarts_autoresponder/review','id');
14
+ }
15
+ public function loadByToken(Ebizmarts_Autoresponder_Model_Review $obj,$token) {
16
+ $select = $this->_getReadAdapter()->select()
17
+ ->from($this->getMainTable())
18
+ ->where($this->getMainTable().'.'.'token =?',$token);
19
+ $token_id = $this->_getReadAdapter()->fetchOne($select);
20
+ if($token_id) {
21
+ $this->load($obj,$token_id);
22
+ }
23
+ return $this;
24
+ }
25
+ }
app/code/community/Ebizmarts/Autoresponder/Model/Resource/Review/Collection.php ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Author : Ebizmarts <info@ebizmarts.com>
4
+ * Date : 10/22/13
5
+ * Time : 5:22 PM
6
+ * File : Collection.php
7
+ * Module : Ebizmarts_Magemonkey
8
+ */
9
+ class Ebizmarts_Autoresponder_Model_Resource_Review_Collection extends Mage_Core_Model_Mysql4_Collection_Abstract
10
+ {
11
+ protected function _construct()
12
+ {
13
+ $this->_init('ebizmarts_autoresponder/review');
14
+ }
15
+ }
app/code/community/Ebizmarts/Autoresponder/Model/Review.php ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Author : Ebizmarts <info@ebizmarts.com>
4
+ * Date : 10/22/13
5
+ * Time : 5:20 PM
6
+ * File : Review.php
7
+ * Module : Ebizmarts_Magemonkey
8
+ */
9
+ class Ebizmarts_Autoresponder_Model_Review extends Mage_Core_Model_Abstract
10
+ {
11
+ public function _construct() {
12
+ $this->_init('ebizmarts_autoresponder/review');
13
+ }
14
+ public function loadByToken($token) {
15
+ $this->_getResource()->loadByToken($this,$token);
16
+ return $this;
17
+ }
18
+ }
app/code/community/Ebizmarts/Autoresponder/Model/System/Config/Couponcounter.php ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Author : Ebizmarts <info@ebizmarts.com>
4
+ * Date : 10/27/13
5
+ * Time : 8:10 AM
6
+ * File : Pertype.php
7
+ * Module : Ebizmarts_Magemonkey
8
+ */
9
+ class Ebizmarts_Autoresponder_Model_System_Config_Couponcounter
10
+ {
11
+ public function toOptionArray()
12
+ {
13
+ $options = array(
14
+ array('value'=> Ebizmarts_Autoresponder_Model_Config::COUPON_PER_ORDER, 'label' => Mage::helper('ebizmarts_abandonedcart')->__('Per Order')),
15
+ array('value'=> Ebizmarts_Autoresponder_Model_Config::COUPON_GENERAL, 'label' => Mage::helper('ebizmarts_abandonedcart')->__('General'))
16
+ );
17
+ return $options;
18
+ }
19
+ }
app/code/community/Ebizmarts/Autoresponder/Model/System/Config/Generaltype.php ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Author : Ebizmarts <info@ebizmarts.com>
4
+ * Date : 10/27/13
5
+ * Time : 11:00 AM
6
+ * File : Generaltype.php
7
+ * Module : Ebizmarts_Magemonkey
8
+ */
9
+ class Ebizmarts_Autoresponder_Model_System_Config_Generaltype
10
+ {
11
+ public function toOptionArray()
12
+ {
13
+ $options = array(
14
+ array('value'=> Ebizmarts_Autoresponder_Model_Config::TYPE_EACH, 'label' => Mage::helper('ebizmarts_abandonedcart')->__('Each')),
15
+ array('value'=> Ebizmarts_Autoresponder_Model_Config::TYPE_ONCE, 'label' => Mage::helper('ebizmarts_abandonedcart')->__('Only once')),
16
+ array('value'=> Ebizmarts_Autoresponder_Model_Config::TYPE_SPECIFIC, 'label' => Mage::helper('ebizmarts_abandonedcart')->__('Specific'))
17
+ );
18
+ return $options;
19
+ }
20
+ }
app/code/community/Ebizmarts/Autoresponder/etc/config.xml CHANGED
@@ -11,7 +11,7 @@
11
  <config>
12
  <modules>
13
  <Ebizmarts_Autoresponder>
14
- <version>0.1.4</version>
15
  </Ebizmarts_Autoresponder>
16
  </modules>
17
  <global>
@@ -30,6 +30,9 @@
30
  <visited>
31
  <table>ebizmarts_autoresponder_visited</table>
32
  </visited>
 
 
 
33
  </entities>
34
  </ebizmarts_autoresponder_resource>
35
  </models>
@@ -132,6 +135,15 @@
132
  </ebizmarts_autoresponder_visitedproducts_template>
133
  </email>
134
  </template>
 
 
 
 
 
 
 
 
 
135
  </global>
136
  <adminhtml>
137
  <events>
@@ -162,6 +174,24 @@
162
  </args>
163
  </ebizmarts_autoresponder>
164
  </routers>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
165
  </frontend>
166
 
167
  <crontab>
@@ -188,11 +218,13 @@
188
  <max-related>5</max-related>
189
  <subject>Products of your interest</subject>
190
  <listname>Related Product List</listname>
 
191
  </related>
192
  <review>
193
  <mandrill-tag>Autoresponder_Review</mandrill-tag>
194
  <subject>Please review your purchased products</subject>
195
  <listname>Review Product List</listname>
 
196
  </review>
197
  <birthday>
198
  <mandrill-tag>Autoresponder_Birthday</mandrill-tag>
11
  <config>
12
  <modules>
13
  <Ebizmarts_Autoresponder>
14
+ <version>0.1.5</version>
15
  </Ebizmarts_Autoresponder>
16
  </modules>
17
  <global>
30
  <visited>
31
  <table>ebizmarts_autoresponder_visited</table>
32
  </visited>
33
+ <review>
34
+ <table>ebizmarts_autoresponder_review</table>
35
+ </review>
36
  </entities>
37
  </ebizmarts_autoresponder_resource>
38
  </models>
135
  </ebizmarts_autoresponder_visitedproducts_template>
136
  </email>
137
  </template>
138
+ <template>
139
+ <email>
140
+ <ebizmarts_autoresponder_review_coupon_template translate="label" module="ebizmarts_autoresponder">
141
+ <label>Review Coupon Email</label>
142
+ <file>ebizmarts/autoresponder/reviewcoupon.html</file>
143
+ <type>html</type>
144
+ </ebizmarts_autoresponder_review_coupon_template>
145
+ </email>
146
+ </template>
147
  </global>
148
  <adminhtml>
149
  <events>
174
  </args>
175
  </ebizmarts_autoresponder>
176
  </routers>
177
+ <events>
178
+ <controller_action_postdispatch>
179
+ <observers>
180
+ <ebizmarts_autoresponder_controller_action_after>
181
+ <class>ebizmarts_autoresponder/eventObserver</class>
182
+ <method>actionAfter</method>
183
+ </ebizmarts_autoresponder_controller_action_after>
184
+ </observers>
185
+ </controller_action_postdispatch>
186
+ <review_product_post_after>
187
+ <observers>
188
+ <ebizmarts_autoresponder_review_product_post_after>
189
+ <class>ebizmarts_autoresponder/eventObserver</class>
190
+ <method>reviewProductPostAfter</method>
191
+ </ebizmarts_autoresponder_review_product_post_after>
192
+ </observers>
193
+ </review_product_post_after>
194
+ </events>
195
  </frontend>
196
 
197
  <crontab>
218
  <max-related>5</max-related>
219
  <subject>Products of your interest</subject>
220
  <listname>Related Product List</listname>
221
+ <status>complete</status>
222
  </related>
223
  <review>
224
  <mandrill-tag>Autoresponder_Review</mandrill-tag>
225
  <subject>Please review your purchased products</subject>
226
  <listname>Review Product List</listname>
227
+ <status>complete</status>
228
  </review>
229
  <birthday>
230
  <mandrill-tag>Autoresponder_Birthday</mandrill-tag>
app/code/community/Ebizmarts/Autoresponder/etc/system.xml CHANGED
@@ -200,11 +200,24 @@ Module : Ebizmarts_Magemonkey
200
  <active>1</active>
201
  </depends>
202
  </mandrill-tag>
 
 
 
 
 
 
 
 
 
 
 
 
 
203
  <customer translate="label comment">
204
  <label>Customer Groups</label>
205
  <frontend_type>multiselect</frontend_type>
206
  <source_model>ebizmarts_autoresponder/system_config_customergroup</source_model>
207
- <sort_order>50</sort_order>
208
  <show_in_default>1</show_in_default>
209
  <show_in_website>1</show_in_website>
210
  <show_in_store>1</show_in_store>
@@ -217,7 +230,7 @@ Module : Ebizmarts_Magemonkey
217
  <max-related translate="label">
218
  <label>Max related products</label>
219
  <frontend_type>text</frontend_type>
220
- <sort_order>60</sort_order>
221
  <show_in_default>1</show_in_default>
222
  <show_in_website>1</show_in_website>
223
  <show_in_store>1</show_in_store>
@@ -300,11 +313,24 @@ Module : Ebizmarts_Magemonkey
300
  <active>1</active>
301
  </depends>
302
  </mandrill-tag>
 
 
 
 
 
 
 
 
 
 
 
 
 
303
  <customer translate="label comment">
304
  <label>Customer Groups</label>
305
  <frontend_type>multiselect</frontend_type>
306
  <source_model>ebizmarts_autoresponder/system_config_customergroup</source_model>
307
- <sort_order>50</sort_order>
308
  <show_in_default>1</show_in_default>
309
  <show_in_website>1</show_in_website>
310
  <show_in_store>1</show_in_store>
@@ -314,6 +340,271 @@ Module : Ebizmarts_Magemonkey
314
  <active>1</active>
315
  </depends>
316
  </customer>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
317
  </fields>
318
  </review>
319
  <birthday translate="label comment">
200
  <active>1</active>
201
  </depends>
202
  </mandrill-tag>
203
+ <status translate="label comment">
204
+ <label>Order Status</label>
205
+ <frontend_type>select</frontend_type>
206
+ <source_model>adminhtml/system_config_source_order_status</source_model>
207
+ <sort_order>50</sort_order>
208
+ <show_in_default>1</show_in_default>
209
+ <show_in_website>1</show_in_website>
210
+ <show_in_store>1</show_in_store>
211
+ <comment><![CDATA[Order status for sending the review mail request]]></comment>
212
+ <depends>
213
+ <active>1</active>
214
+ </depends>
215
+ </status>
216
  <customer translate="label comment">
217
  <label>Customer Groups</label>
218
  <frontend_type>multiselect</frontend_type>
219
  <source_model>ebizmarts_autoresponder/system_config_customergroup</source_model>
220
+ <sort_order>60</sort_order>
221
  <show_in_default>1</show_in_default>
222
  <show_in_website>1</show_in_website>
223
  <show_in_store>1</show_in_store>
230
  <max-related translate="label">
231
  <label>Max related products</label>
232
  <frontend_type>text</frontend_type>
233
+ <sort_order>70</sort_order>
234
  <show_in_default>1</show_in_default>
235
  <show_in_website>1</show_in_website>
236
  <show_in_store>1</show_in_store>
313
  <active>1</active>
314
  </depends>
315
  </mandrill-tag>
316
+ <status translate="label comment">
317
+ <label>Order Status</label>
318
+ <frontend_type>select</frontend_type>
319
+ <source_model>adminhtml/system_config_source_order_status</source_model>
320
+ <sort_order>50</sort_order>
321
+ <show_in_default>1</show_in_default>
322
+ <show_in_website>1</show_in_website>
323
+ <show_in_store>1</show_in_store>
324
+ <comment><![CDATA[Order status for sending the review mail request]]></comment>
325
+ <depends>
326
+ <active>1</active>
327
+ </depends>
328
+ </status>
329
  <customer translate="label comment">
330
  <label>Customer Groups</label>
331
  <frontend_type>multiselect</frontend_type>
332
  <source_model>ebizmarts_autoresponder/system_config_customergroup</source_model>
333
+ <sort_order>60</sort_order>
334
  <show_in_default>1</show_in_default>
335
  <show_in_website>1</show_in_website>
336
  <show_in_store>1</show_in_store>
340
  <active>1</active>
341
  </depends>
342
  </customer>
343
+ <coupon translate="label">
344
+ <label>Create Coupon?</label>
345
+ <frontend_type>select</frontend_type>
346
+ <source_model>adminhtml/system_config_source_yesno</source_model>
347
+ <sort_order>70</sort_order>
348
+ <show_in_default>1</show_in_default>
349
+ <show_in_website>1</show_in_website>
350
+ <show_in_store>1</show_in_store>
351
+ <depends>
352
+ <active>1</active>
353
+ </depends>
354
+ </coupon>
355
+ <coupon_mandrill_tag translate="label comment">
356
+ <label>Coupon mail Mandrill tag</label>
357
+ <frontend_type>text</frontend_type>
358
+ <sort_order>72</sort_order>
359
+ <show_in_default>1</show_in_default>
360
+ <show_in_website>1</show_in_website>
361
+ <show_in_store>1</show_in_store>
362
+ <depends>
363
+ <active>1</active>
364
+ <coupon>1</coupon>
365
+ </depends>
366
+ </coupon_mandrill_tag>
367
+ <coupon_mail_subject translate="label comment">
368
+ <label>Coupon mail Subject</label>
369
+ <frontend_type>text</frontend_type>
370
+ <sort_order>74</sort_order>
371
+ <show_in_default>1</show_in_default>
372
+ <show_in_website>1</show_in_website>
373
+ <show_in_store>1</show_in_store>
374
+ <depends>
375
+ <active>1</active>
376
+ <coupon>1</coupon>
377
+ </depends>
378
+ </coupon_mail_subject>
379
+ <coupon_template translate="label">
380
+ <label>Coupon Email Template</label>
381
+ <frontend_type>select</frontend_type>
382
+ <config_path>ebizmarts_autoresponder/review/coupon_template</config_path>
383
+ <source_model>adminhtml/system_config_source_email_template</source_model>
384
+ <sort_order>30</sort_order>
385
+ <show_in_default>1</show_in_default>
386
+ <show_in_website>1</show_in_website>
387
+ <show_in_store>1</show_in_store>
388
+ <depends>
389
+ <active>1</active>
390
+ </depends>
391
+ </coupon_template>
392
+ <coupon_counter translate="label comment">
393
+ <label>Coupon Counter</label>
394
+ <frontend_type>select</frontend_type>
395
+ <source_model>ebizmarts_autoresponder/system_config_couponcounter</source_model>
396
+ <sort_order>80</sort_order>
397
+ <show_in_default>1</show_in_default>
398
+ <show_in_website>1</show_in_website>
399
+ <show_in_store>1</show_in_store>
400
+ <comment><![CDATA[How do you want to count reviews<br>Keep in mind, <em>General</em> only work for registered customers]]></comment>
401
+ <depends>
402
+ <active>1</active>
403
+ <coupon>1</coupon>
404
+ </depends>
405
+ </coupon_counter>
406
+ <coupon_general_quantity trasnslate="label comment">
407
+ <label>Required Reviews qty</label>
408
+ <frontend_type>text</frontend_type>
409
+ <sort_order>90</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
+ <active>1</active>
415
+ <coupon>1</coupon>
416
+ <coupon_counter>2</coupon_counter>
417
+ </depends>
418
+ </coupon_general_quantity>
419
+ <coupon_general_type translate="label comment">
420
+ <label>How many coupons</label>
421
+ <frontend_type>select</frontend_type>
422
+ <source_model>ebizmarts_autoresponder/system_config_generaltype</source_model>
423
+ <sort_order>100</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
+ <comment><![CDATA[<em>Each</em>: every "Required Review qty" multiple is reached, a new coupon will be sent.<br><em>Only once</em>: a coupon is sent only the first time that "Required Review qty" is reached.<br><em>Specific</em>: same as <em>Each</em> but also defines a fixed qty of coupons to be sent.]]></comment>
428
+ <depends>
429
+ <active>1</active>
430
+ <coupon>1</coupon>
431
+ <coupon_counter>2</coupon_counter>
432
+ </depends>
433
+ </coupon_general_type>
434
+ <coupon_specific_quantity translate="lable comment">
435
+ <label>Specific coupons qty</label>
436
+ <frontend_type>text</frontend_type>
437
+ <sort_order>105</sort_order>
438
+ <show_in_default>1</show_in_default>
439
+ <show_in_website>1</show_in_website>
440
+ <show_in_store>1</show_in_store>
441
+ <depends>
442
+ <active>1</active>
443
+ <coupon>1</coupon>
444
+ <coupon_counter>2</coupon_counter>
445
+ <coupon_general_type>3</coupon_general_type>
446
+ </depends>
447
+ </coupon_specific_quantity>
448
+ <coupon_order_counter>
449
+ <label>Min. items reviewed per order</label>
450
+ <frontend_type>text</frontend_type>
451
+ <sort_order>90</sort_order>
452
+ <show_in_default>1</show_in_default>
453
+ <show_in_website>1</show_in_website>
454
+ <show_in_store>1</show_in_store>
455
+ <comment><![CDATA[How many items needs to be reviewed per order to win a coupon (0 means all items requires a review).]]></comment>
456
+ <depends>
457
+ <active>1</active>
458
+ <coupon>1</coupon>
459
+ <coupon_counter>1</coupon_counter>
460
+ </depends>
461
+ </coupon_order_counter>
462
+ <coupon_order_almost translate="label comment">
463
+ <label>Min. item qty in Order</label>
464
+ <frontend_type>text</frontend_type>
465
+ <sort_order>100</sort_order>
466
+ <show_in_default>1</show_in_default>
467
+ <show_in_website>1</show_in_website>
468
+ <show_in_store>1</show_in_store>
469
+ <comment><![CDATA[Order needs to have at least this quantity of items to apply for a coupon (0 means all Orders applies, no matter how many items were ordered).]]></comment>
470
+ <depends>
471
+ <active>1</active>
472
+ <coupon>1</coupon>
473
+ <coupon_counter>1</coupon_counter>
474
+ </depends>
475
+ </coupon_order_almost>
476
+ <coupon_order_max translate="label comment">
477
+ <label>Max. coupons for Customer</label>
478
+ <frontend_type>text</frontend_type>
479
+ <sort_order>105</sort_order>
480
+ <show_in_default>1</show_in_default>
481
+ <show_in_website>1</show_in_website>
482
+ <show_in_store>1</show_in_store>
483
+ <comment><![CDATA[0 means there's no limit of coupons that a Customer can win.]]></comment>
484
+ <depends>
485
+ <active>1</active>
486
+ <coupon>1</coupon>
487
+ <coupon_counter>1</coupon_counter>
488
+ </depends>
489
+ </coupon_order_max>
490
+ <customer_coupon translate="label comment">
491
+ <label>Customer Groups for coupon</label>
492
+ <frontend_type>multiselect</frontend_type>
493
+ <source_model>ebizmarts_autoresponder/system_config_customergroup</source_model>
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[]]></comment>
500
+ <depends>
501
+ <active>1</active>
502
+ <coupon>1</coupon>
503
+ </depends>
504
+ </customer_coupon>
505
+ <automatic translate="label">
506
+ <label>Option</label>
507
+ <frontend_type>select</frontend_type>
508
+ <source_model>ebizmarts_autoresponder/system_config_automatic</source_model>
509
+ <sort_order>115</sort_order>
510
+ <show_in_default>1</show_in_default>
511
+ <show_in_website>1</show_in_website>
512
+ <show_in_store>1</show_in_store>
513
+ <depends>
514
+ <active>1</active>
515
+ <coupon>1</coupon>
516
+ </depends>
517
+ </automatic>
518
+ <coupon_code>
519
+ <label>Coupon Code</label>
520
+ <frontend_type>text</frontend_type>
521
+ <sort_order>120</sort_order>
522
+ <show_in_default>1</show_in_default>
523
+ <show_in_website>1</show_in_website>
524
+ <show_in_store>1</show_in_store>
525
+ <can_be_empty>0</can_be_empty>
526
+ <comment><![CDATA[Existing coupon code.]]></comment>
527
+ <depends>
528
+ <active>1</active>
529
+ <coupon>1</coupon>
530
+ <automatic>1</automatic>
531
+ </depends>
532
+ </coupon_code>
533
+ <expire>
534
+ <label>Expires on</label>
535
+ <frontend_type>text</frontend_type>
536
+ <sort_order>120</sort_order>
537
+ <show_in_default>1</show_in_default>
538
+ <show_in_website>1</show_in_website>
539
+ <show_in_store>1</show_in_store>
540
+ <can_be_empty>0</can_be_empty>
541
+ <comment><![CDATA[Coupon expiration in days.]]></comment>
542
+ <depends>
543
+ <active>1</active>
544
+ <coupon>1</coupon>
545
+ <automatic>2</automatic>
546
+ </depends>
547
+ </expire>
548
+ <length>
549
+ <label>Coupon length</label>
550
+ <frontend_type>text</frontend_type>
551
+ <sort_order>130</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>0</can_be_empty>
556
+ <depends>
557
+ <active>1</active>
558
+ <coupon>1</coupon>
559
+ <automatic>2</automatic>
560
+ </depends>
561
+ </length>
562
+ <discounttype>
563
+ <label>Discount type</label>
564
+ <frontend_type>select</frontend_type>
565
+ <source_model>ebizmarts_autoresponder/system_config_discounttype</source_model>
566
+ <sort_order>140</sort_order>
567
+ <show_in_default>1</show_in_default>
568
+ <show_in_website>1</show_in_website>
569
+ <show_in_store>1</show_in_store>
570
+ <can_be_empty>0</can_be_empty>
571
+ <comment><![CDATA[Select percentage or fixed discount.]]></comment>
572
+ <depends>
573
+ <active>1</active>
574
+ <coupon>1</coupon>
575
+ <automatic>2</automatic>
576
+ </depends>
577
+ </discounttype>
578
+ <discount>
579
+ <label>Discount amount</label>
580
+ <frontend_type>text</frontend_type>
581
+ <sort_order>150</sort_order>
582
+ <show_in_default>1</show_in_default>
583
+ <show_in_website>1</show_in_website>
584
+ <show_in_store>1</show_in_store>
585
+ <can_be_empty>0</can_be_empty>
586
+ <comment><![CDATA[Amount]]></comment>
587
+ <depends>
588
+ <active>1</active>
589
+ <coupon>1</coupon>
590
+ <automatic>2</automatic>
591
+ </depends>
592
+ </discount>
593
+ <couponlabel>
594
+ <label>Label for coupon</label>
595
+ <frontend_type>text</frontend_type>
596
+ <sort_order>160</sort_order>
597
+ <show_in_default>1</show_in_default>
598
+ <show_in_website>1</show_in_website>
599
+ <show_in_store>1</show_in_store>
600
+ <can_be_empty>0</can_be_empty>
601
+ <comment><![CDATA[]]></comment>
602
+ <depends>
603
+ <active>1</active>
604
+ <coupon>1</coupon>
605
+ <automatic>2</automatic>
606
+ </depends>
607
+ </couponlabel>
608
  </fields>
609
  </review>
610
  <birthday translate="label comment">
app/code/community/Ebizmarts/Autoresponder/sql/ebizmarts_autoresponder_setup/mysql4-upgrade-0.1.3-0.1.4.php CHANGED
@@ -40,7 +40,7 @@ $installer->addAttribute(
40
  'source' => 'eav/entity_attribute_source_boolean',
41
  'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_WEBSITE,
42
  'required' => false,
43
- 'user_defined' => false,
44
  'default' => '0',
45
  'searchable' => false,
46
  'filterable' => false,
40
  'source' => 'eav/entity_attribute_source_boolean',
41
  'global' => Mage_Catalog_Model_Resource_Eav_Attribute::SCOPE_WEBSITE,
42
  'required' => false,
43
+ 'user_defined' => true,
44
  'default' => '0',
45
  'searchable' => false,
46
  'filterable' => false,
app/code/community/Ebizmarts/Autoresponder/sql/ebizmarts_autoresponder_setup/mysql4-upgrade-0.1.4-0.1.5.php ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Created by Ebizmarts
4
+ * User: gonzalo@ebizmarts.com
5
+ * Date: 1/15/13
6
+ * Time: 3:42 PM
7
+ */
8
+ $installer = $this;
9
+
10
+ $installer->startSetup();
11
+
12
+ $installer->run("
13
+
14
+ CREATE TABLE IF NOT EXISTS `{$this->getTable('ebizmarts_autoresponder_review')}` (
15
+ `id` int(10) unsigned NOT NULL auto_increment,
16
+ `customer_id` int(10),
17
+ `store_id` smallint(5),
18
+ `items` smallint(5) default 0,
19
+ `counter` smallint(5) default 0,
20
+ `token` varchar(255) default null,
21
+ `order_id` int(10) unsigned not null,
22
+ PRIMARY KEY (`id`)
23
+ ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
24
+ ");
25
+
26
+ $installer->run("
27
+ ALTER TABLE `{$this->getTable('magemonkey_mails_sent')}`
28
+ CHANGE `mail_type` `mail_type` ENUM( 'abandoned cart', 'happy birthday', 'new order', 'related products', 'product review', 'no activity', 'wishlist', 'review coupon' )
29
+ CHARACTER SET utf8 NOT NULL;
30
+ ");
31
+
32
+ $installer->addAttribute(
33
+ 'customer',
34
+ 'ebizmarts_reviews_cntr_total',
35
+ array(
36
+ 'type' => 'int',
37
+ 'input' => 'hidden',
38
+ 'required' => 0,
39
+ 'default' => 0,
40
+ 'visible_on_front' => 0,
41
+ 'user_defined' => true,
42
+ )
43
+ );
44
+ $installer->addAttribute(
45
+ 'customer',
46
+ 'ebizmarts_reviews_coupon_total',
47
+ array(
48
+ 'type' => 'int',
49
+ 'input' => 'hidden',
50
+ 'required' => 0,
51
+ 'default' => 0,
52
+ 'visible_on_front' => 0,
53
+ 'user_defined' => true,
54
+ )
55
+ );
56
+
57
+ $installer->endSetup();
app/code/community/Ebizmarts/MageMonkey/Helper/Data.php CHANGED
@@ -504,13 +504,16 @@ class Ebizmarts_MageMonkey_Helper_Data extends Mage_Core_Helper_Abstract
504
  }
505
 
506
  //GUEST
507
- if( !$customer->getId() && (!$request->getPost('firstname') || !$request->getPost('lastname'))){
508
  $guestFirstName = $this->config('guest_name', $customer->getStoreId());
509
- $guestLastName = $this->config('guest_lastname', $customer->getStoreId());
510
 
511
  if($guestFirstName){
512
  $merge_vars['FNAME'] = $guestFirstName;
513
  }
 
 
 
 
514
  if($guestLastName){
515
  $merge_vars['LNAME'] = $guestLastName;
516
  }
504
  }
505
 
506
  //GUEST
507
+ if( !$customer->getId() && !$request->getPost('firstname') ){
508
  $guestFirstName = $this->config('guest_name', $customer->getStoreId());
 
509
 
510
  if($guestFirstName){
511
  $merge_vars['FNAME'] = $guestFirstName;
512
  }
513
+ }
514
+ if( !$customer->getId() && !$request->getPost('lastname') ){
515
+ $guestLastName = $this->config('guest_lastname', $customer->getStoreId());
516
+
517
  if($guestLastName){
518
  $merge_vars['LNAME'] = $guestLastName;
519
  }
app/code/community/Ebizmarts/Mandrill/Helper/Data.php CHANGED
@@ -59,7 +59,9 @@ class Ebizmarts_Mandrill_Helper_Data extends Mage_Core_Helper_Abstract {
59
  * @return Mage_Core_Model_Log_Adapter
60
  */
61
  public function log($data, $filename = 'Ebizmarts_Mandrill.log') {
62
- //return Mage::getModel('core/log_adapter', $filename)->log($data);
 
 
63
  }
64
 
65
  }
59
  * @return Mage_Core_Model_Log_Adapter
60
  */
61
  public function log($data, $filename = 'Ebizmarts_Mandrill.log') {
62
+ if(Mage::getStoreConfig($this->_configPath . "enable_log")) {
63
+ return Mage::getModel('core/log_adapter', $filename)->log($data);
64
+ }
65
  }
66
 
67
  }
app/code/community/Ebizmarts/Mandrill/Model/Email/Template.php CHANGED
@@ -74,7 +74,8 @@ class Ebizmarts_Mandrill_Model_Email_Template extends Mage_Core_Model_Email_Temp
74
  $emails = array_values((array)$email);
75
 
76
  if(count($this->_bcc) > 0){
77
- $bccEmail = $this->_bcc[0];
 
78
  }else{
79
  $bccEmail = '';
80
  }
74
  $emails = array_values((array)$email);
75
 
76
  if(count($this->_bcc) > 0){
77
+ // $bccEmail = $this->_bcc[0];
78
+ $bccEmail = $this->_bcc;
79
  }else{
80
  $bccEmail = '';
81
  }
app/code/community/Ebizmarts/Mandrill/etc/adminhtml.xml CHANGED
@@ -1,5 +1,5 @@
1
  <?xml version="1.0"?>
2
- <config>
3
  <menu>
4
  <system>
5
  <children>
@@ -11,14 +11,14 @@
11
  <users_senders translate="title" module="mandrill">
12
  <title>Senders</title>
13
  <action>adminhtml/mandrill_users/senders</action>
14
- </users_senders>
15
  </children>
16
  </mandrill>
17
  </children>
18
- </email_template>
19
  </children>
20
  </system>
21
- </menu>
22
  <acl>
23
  <resources>
24
  <admin>
@@ -27,7 +27,7 @@
27
  <children>
28
  <config>
29
  <children>
30
- <mandrill translate="title" module="monkey">
31
  <title>Mandrill Configuration</title>
32
  </mandrill>
33
  </children>
1
  <?xml version="1.0"?>
2
+ <config>
3
  <menu>
4
  <system>
5
  <children>
11
  <users_senders translate="title" module="mandrill">
12
  <title>Senders</title>
13
  <action>adminhtml/mandrill_users/senders</action>
14
+ </users_senders>
15
  </children>
16
  </mandrill>
17
  </children>
18
+ </email_template>
19
  </children>
20
  </system>
21
+ </menu>
22
  <acl>
23
  <resources>
24
  <admin>
27
  <children>
28
  <config>
29
  <children>
30
+ <mandrill translate="title" module="mandrill">
31
  <title>Mandrill Configuration</title>
32
  </mandrill>
33
  </children>
app/code/community/Ebizmarts/Mandrill/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Ebizmarts_Mandrill>
5
- <version>1.0.8</version>
6
  </Ebizmarts_Mandrill>
7
  </modules>
8
  <global>
2
  <config>
3
  <modules>
4
  <Ebizmarts_Mandrill>
5
+ <version>1.0.10</version>
6
  </Ebizmarts_Mandrill>
7
  </modules>
8
  <global>
app/code/community/Ebizmarts/Mandrill/etc/system.xml CHANGED
@@ -45,11 +45,21 @@
45
  <show_in_store>1</show_in_store>
46
  <comment><![CDATA[Your API Key]]></comment>
47
  </apikey>
 
 
 
 
 
 
 
 
 
 
48
  <user_info translate="label comment">
49
  <label>Account Info</label>
50
  <frontend_model>mandrill/adminhtml_system_config_userinfo</frontend_model>
51
  <source_model>mandrill/system_config_source_userinfo</source_model>
52
- <sort_order>30</sort_order>
53
  <show_in_default>1</show_in_default>
54
  <show_in_website>1</show_in_website>
55
  <show_in_store>1</show_in_store>
45
  <show_in_store>1</show_in_store>
46
  <comment><![CDATA[Your API Key]]></comment>
47
  </apikey>
48
+ <enable_log translate="label comment">
49
+ <label>Enable Log</label>
50
+ <frontend_type>select</frontend_type>
51
+ <source_model>adminhtml/system_config_source_yesno</source_model>
52
+ <sort_order>30</sort_order>
53
+ <show_in_default>1</show_in_default>
54
+ <show_in_website>0</show_in_website>
55
+ <show_in_store>1</show_in_store>
56
+ <comment>File is {{base_dir}}/var/log/Ebizmarts_Mandrill.log</comment>
57
+ </enable_log>
58
  <user_info translate="label comment">
59
  <label>Account Info</label>
60
  <frontend_model>mandrill/adminhtml_system_config_userinfo</frontend_model>
61
  <source_model>mandrill/system_config_source_userinfo</source_model>
62
+ <sort_order>40</sort_order>
63
  <show_in_default>1</show_in_default>
64
  <show_in_website>1</show_in_website>
65
  <show_in_store>1</show_in_store>
app/design/frontend/base/default/layout/ebizmarts/autoresponder.xml CHANGED
@@ -32,4 +32,32 @@
32
  <action method="addJs"><script>ebizmarts/autoresponders/visitedproducts.js</script></action>
33
  </reference>
34
  </catalog_product_view>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
  </layout>
32
  <action method="addJs"><script>ebizmarts/autoresponders/visitedproducts.js</script></action>
33
  </reference>
34
  </catalog_product_view>
35
+ <!--review_product_list>
36
+ <reference name="product.review.form">
37
+ <block type="ebizmarts_autoresponder/review_form" name="product.review.form" as="review_form">
38
+ <block type="page/html_wrapper" name="product.review.form.fields.before" as="form_fields_before"
39
+ translate="label">
40
+ <label>Review Form Fields Before</label>
41
+ <action method="setMayBeInvisible">
42
+ <value>1</value>
43
+ </action>
44
+ </block>
45
+ </block>
46
+ </reference>
47
+ </review_product_list-->
48
+
49
+ <review_product_list>
50
+ <reference name="product.info.product_additional_data">
51
+ <remove name="product.review.form"/>
52
+ <block type="ebizmarts_autoresponder/review_form" name="product.review.form.autoresponder" as="review_form"/>
53
+ <block type="page/html_wrapper" name="product.review.form.fields.before" as="form_fields_before" translate="label"/>
54
+ <label>Review Form Fields Before</label>
55
+ <action method="setMayBeInvisible">
56
+ <value>1</value>
57
+ </action>
58
+ </reference>
59
+ </review_product_list>
60
+ <!--review_product_list>
61
+ <update handle="ebizmarts_review_form"></update>
62
+ </review_product_list-->
63
  </layout>
app/design/frontend/base/default/template/ebizmarts/autoresponder/related/items.phtml CHANGED
@@ -2,8 +2,8 @@
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 $product->getName(); ?>" target="_blank"><img src="<?php echo $product->getThumbnailUrl();?>" alt="<?php echo $product->getName(); ?>"/></a></td>
6
- <td valign="top" align="left" style="padding:3px 9px"><p><?php echo $product->getName(); ?></p><?php echo $product->getShortDescription(); ?></td>
7
  </tr>
8
  <?php endforeach; ?>
9
  </table>
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; ?>
9
  </table>
app/design/frontend/base/default/template/ebizmarts/autoresponder/review/items.phtml CHANGED
@@ -1,4 +1,7 @@
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>
@@ -6,10 +9,13 @@
6
  if(isset($parentId[0])) {
7
  $product = Mage::getModel('catalog/product')->load($parentId[0]);
8
  }
 
 
 
 
9
  ?>
10
- <td valign="top" align="left" style="padding:3px 9px"><a href="<?php echo Mage::getUrl('review/product/list', array('id'=> $product->getId()));; ?>" alt="<?php echo $product->getName(); ?>" target="_blank"><img src="<?php echo $product->getThumbnailUrl();?>" alt="<?php echo $product->getName(); ?>"/></a></td>
11
- <td valign="top" align="left" style="padding:3px 9px"><p><h2><a href="<?php echo Mage::getUrl('review/product/list', array('id'=> $product->getId())); ?>"> Rate <?php echo $product->getName(); ?></a></h2></p><?php echo $product->getShortDescription(); ?></td>
12
-
13
  </tr>
14
  <?php endforeach; ?>
15
  </table>
1
+ <?php
2
+ $products = $this->getProducts();
3
+ $token = $this->getToken();
4
+ ?>
5
  <table cellspacing="0" cellpadding="0" border="0" width="650" style="border:1px solid #EAEAEA;">
6
  <?php foreach($products as $product): ?>
7
  <tr>
9
  if(isset($parentId[0])) {
10
  $product = Mage::getModel('catalog/product')->load($parentId[0]);
11
  }
12
+ $url = Mage::getUrl('review/product/list', array('id'=> $product->getId()));
13
+ if($token) {
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; ?>
21
  </table>
app/design/frontend/base/default/template/ebizmarts/autoresponder/wishlist/items.phtml CHANGED
@@ -2,8 +2,8 @@
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 $product->getName(); ?>" target="_blank"><img src="<?php echo $product->getThumbnailUrl();?>" alt="<?php echo $product->getName(); ?>"/></a></td>
6
- <td valign="top" align="left" style="padding:3px 9px"><p><h2><a href="<?php echo $product->getProductUrl(); ?>"> <?php echo $product->getName(); ?></a></h2></p><?php echo $product->getShortDescription(); ?></td>
7
  </tr>
8
  <?php endforeach; ?>
9
  </table>
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; ?>
9
  </table>
app/design/frontend/base/default/template/magemonkey/checkout/subscribe.phtml CHANGED
@@ -63,7 +63,7 @@ addElementToPost = function (element){
63
  <?php foreach($generalList['interest_groupings'] as $group): ?>
64
  <?php if($group['name'] != 'MAGE_CUSTOMER_GROUPS'): ?>
65
  <div class="grouping">
66
- <strong><?php echo $group['name']; ?></strong>
67
  <?php echo $this->renderGroup($group, $generalList); ?>
68
  </div>
69
  <?php endif; ?>
63
  <?php foreach($generalList['interest_groupings'] as $group): ?>
64
  <?php if($group['name'] != 'MAGE_CUSTOMER_GROUPS'): ?>
65
  <div class="grouping">
66
+ <?php if ($group['form_field'] != 'hidden'): ?><strong><?php echo $group['name']; ?></strong><?php endif; ?>
67
  <?php echo $this->renderGroup($group, $generalList); ?>
68
  </div>
69
  <?php endif; ?>
app/design/frontend/base/default/template/magemonkey/customer/account/lists.phtml DELETED
@@ -1,96 +0,0 @@
1
- <?php
2
-
3
- $lists = $this->getLists();
4
- $myLists = $this->getSubscribedLists();
5
- $generalList = $this->getGeneralList();
6
-
7
- ?>
8
- <div class="page-title">
9
- <h1><?php echo $this->__('Newsletter Subscription'); ?></h1>
10
- </div>
11
- <form action="<?php echo $this->getUrl('monkey/customer_account/saveadditional'); ?>" name="mailchimp_additional" id="mailchimp-additional" method="post">
12
- <div class="fieldset">
13
- <?php echo $this->getBlockHtml('formkey'); ?>
14
- <ul class="monkey-additional-lists">
15
-
16
- <!-- General Subscription -->
17
- <li class="listdata"><?php echo $this->listLabel($generalList); ?>
18
- <?php if(is_array($generalList['interest_groupings'])): ?>
19
- <div id="interest_groupings_<?php echo $generalList['id']; ?>" class="interest-groupings">
20
- <?php foreach($generalList['interest_groupings'] as $group): ?>
21
- <div class="grouping">
22
- <strong><?php echo $group['name']; ?></strong>
23
- <?php echo $this->renderGroup($group, $generalList); ?>
24
- </div>
25
- <?php endforeach; ?>
26
- </div>
27
-
28
- <?php endif; ?>
29
- </li>
30
- <!-- General Subscription -->
31
-
32
- <!-- Additional Lists -->
33
- <?php
34
- foreach($lists as $list):
35
- $igroups = $list['interest_groupings'];
36
- ?>
37
-
38
- <li class="listdata"><?php echo $this->listLabel($list); ?>
39
- <?php if(is_array($igroups)): ?>
40
- <div id="interest_groupings_<?php echo $list['id']; ?>" class="interest-groupings">
41
- <?php foreach($igroups as $group): ?>
42
- <div class="grouping">
43
- <strong><?php echo $group['name']; ?></strong>
44
- <?php echo $this->renderGroup($group, $list); ?>
45
- </div>
46
- <?php endforeach; ?>
47
- </div>
48
-
49
- <?php endif; ?>
50
- </li>
51
-
52
- <?php endforeach; ?>
53
- <!-- Additional Lists -->
54
-
55
- </ul>
56
- </div>
57
- <input type="hidden" name="state" value="" id="form-state" />
58
- <div class="buttons-set">
59
- <button type="submit" title="<?php echo $this->__('Save') ?>" class="button"><span><span><?php echo $this->__('Save') ?></span></span></button>
60
- </div>
61
- </form>
62
- <script type="text/javascript">
63
- document.observe("dom:loaded", function() {
64
-
65
- removeManageNewsletter();
66
-
67
- //Handle newsletter subscribe/unsubscribe checkbox events
68
- $$('input.monkey-list-subscriber').each(function(chk){
69
-
70
- if( !chk.checked ){
71
- var groupings = $('interest_groupings_'+chk.value);
72
- if(groupings){
73
- groupings.select('select', 'input').invoke('writeAttribute', 'disabled', 'disabled');
74
- }
75
- }
76
-
77
- chk.observe('change', function(){
78
-
79
- var groupings = $('interest_groupings_'+this.value);
80
- if(groupings){
81
- var elements = groupings.select('select', 'input');
82
- if(this.checked){
83
- elements.invoke('removeAttribute', 'disabled');
84
- }else{
85
- elements.invoke('writeAttribute', 'disabled', 'disabled');
86
- }
87
- }
88
-
89
- });
90
- });
91
-
92
- //Load viewstate on hidden field for later process
93
- $('form-state').writeAttribute('value', $('mailchimp-additional').serialize());
94
-
95
- });
96
- </script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/design/frontend/base/default/template/magemonkey/lists.phtml CHANGED
@@ -24,7 +24,7 @@ $canShowButton = $this->getCanShowButton();
24
  <?php foreach($generalList['interest_groupings'] as $group): ?>
25
  <?php if($group['name'] != 'MAGE_CUSTOMER_GROUPS'): ?>
26
  <div class="grouping">
27
- <strong><?php echo $group['name']; ?></strong>
28
  <?php echo $this->renderGroup($group, $generalList); ?>
29
  </div>
30
  <?php endif; ?>
24
  <?php foreach($generalList['interest_groupings'] as $group): ?>
25
  <?php if($group['name'] != 'MAGE_CUSTOMER_GROUPS'): ?>
26
  <div class="grouping">
27
+ <?php if ($group['form_field'] != 'hidden'): ?><strong><?php echo $group['name']; ?></strong><?php endif; ?>
28
  <?php echo $this->renderGroup($group, $generalList); ?>
29
  </div>
30
  <?php endif; ?>
app/locale/en_US/template/email/ebizmarts/autoresponder/review.html CHANGED
@@ -19,7 +19,7 @@
19
  </tr>
20
  <tr>
21
  <td>
22
- {{block type='ebizmarts_autoresponder/email_review_items' area='frontend' template='ebizmarts/autoresponder/review/items.phtml' products=$products}}
23
  </td>
24
  </tr>
25
  <tr>
19
  </tr>
20
  <tr>
21
  <td>
22
+ {{block type='ebizmarts_autoresponder/email_review_items' area='frontend' template='ebizmarts/autoresponder/review/items.phtml' products=$products token=$token}}
23
  </td>
24
  </tr>
25
  <tr>
app/locale/en_US/template/email/ebizmarts/autoresponder/reviewcoupon.html ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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="{{skin url="images/logo_email.gif" _area='frontend'}}" alt="{{var store.getFrontendName()}}" 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;"">Hello, {{htmlescape var=$name}}</h1>
15
+ <p style="font-size:12px; line-height:16px; margin:0;">
16
+
17
+ On behalf of {{var store.getFrontendName()}}, we really thanks about your reviews on our site.
18
+ {{depend couponcode}}
19
+ <br>We have the pleasure of giving a coupon with code <b>{{var couponcode}}</b>
20
+ {{/depend}}
21
+ {{depend discount}}
22
+ and obtain a discount of {{var discount}} only until {{var todate}}
23
+ {{/depend}}
24
+ </p>
25
+ </tr>
26
+ <tr>
27
+ <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>
28
+ </tr>
29
+ </table>
30
+ </td>
31
+ </tr>
32
+ </table>
33
+ </div>
34
+ </body>
js/ebizmarts/autoresponders/visitedproducts.js CHANGED
@@ -6,7 +6,7 @@ function markVisited(productID) {
6
  (function() {
7
  var cb = function() {
8
  var productID = $$('input[name^=product]').first().value;
9
- new Ajax.Request('../index.php/ebizautoresponder/autoresponder/getVisitedProductsConfig?product_id='+productID, { method:'get', onSuccess: function(transport){
10
  if(transport.responseJSON.time > -1) {
11
  markVisited.delay(transport.responseJSON.time,productID);
12
  }
6
  (function() {
7
  var cb = function() {
8
  var productID = $$('input[name^=product]').first().value;
9
+ new Ajax.Request('/ebizautoresponder/autoresponder/getVisitedProductsConfig?product_id='+productID, { method:'get', onSuccess: function(transport){
10
  if(transport.responseJSON.time > -1) {
11
  markVisited.delay(transport.responseJSON.time,productID);
12
  }
lib/Mandrill/API.php CHANGED
@@ -166,9 +166,22 @@ class Mandrill_API {
166
  foreach($message['to_email'] as $pos => $email){
167
  $to []= array(
168
  'email' => $email,
169
- 'name' => $message['to_name'][$pos]
 
170
  );
171
  }
 
 
 
 
 
 
 
 
 
 
 
 
172
  if(count($this->_attachments)) {
173
  $message['attachments'] = $this->_attachments;
174
  }
@@ -284,8 +297,8 @@ class Mandrill_API {
284
 
285
  $url = $this->apiUrl . $method . '.' . $this->_output;
286
 
287
- Mage::helper('mandrill')->log($url, 'MageMonkey_ApiCall.log');
288
- Mage::helper('mandrill')->log($params, 'MageMonkey_ApiCall.log');
289
 
290
  $curlSession = curl_init();
291
 
@@ -322,7 +335,7 @@ class Mandrill_API {
322
 
323
  $resultObject = json_decode($result);
324
 
325
- Mage::helper('mandrill')->log($resultObject, 'MageMonkey_ApiCall.log');
326
 
327
  //You can consider any non-200 HTTP response code an error
328
  //the returned data will contain more detailed information
166
  foreach($message['to_email'] as $pos => $email){
167
  $to []= array(
168
  'email' => $email,
169
+ 'name' => $message['to_name'][$pos],
170
+ 'type' => 'to'
171
  );
172
  }
173
+
174
+ if(isset($message['bcc_address']) && !empty($message['bcc_address'])) {
175
+ foreach($message['bcc_address'] as $bccmail) {
176
+ $to []= array(
177
+ 'email' => $bccmail,
178
+ 'type' => 'bcc'
179
+ );
180
+
181
+ }
182
+ }
183
+
184
+ unset($message['bcc_address']);
185
  if(count($this->_attachments)) {
186
  $message['attachments'] = $this->_attachments;
187
  }
297
 
298
  $url = $this->apiUrl . $method . '.' . $this->_output;
299
 
300
+ Mage::helper('mandrill')->log($url, 'Ebizmarts_Mandrill.log');
301
+ Mage::helper('mandrill')->log($params, 'Ebizmarts_Mandrill.log');
302
 
303
  $curlSession = curl_init();
304
 
335
 
336
  $resultObject = json_decode($result);
337
 
338
+ Mage::helper('mandrill')->log($resultObject, 'Ebizmarts_Mandrill.log');
339
 
340
  //You can consider any non-200 HTTP response code an error
341
  //the returned data will contain more detailed information
package.xml CHANGED
@@ -1,14 +1,28 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Ebizmarts_MageMonkey</name>
4
- <version>1.1.19</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>-- version 1.1.19 stable&#xD;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  - add browsed products autoresponder&#xD;
13
  &#xD;
14
  -- version 1.1.18 stable&#xD;
@@ -193,9 +207,9 @@ Don't display additional lists newsletter block on checkout when there are no ad
193
  &#xD;
194
  First public release 0.0.9, January 2012</notes>
195
  <authors><author><name>Ebizmarts Development Team</name><user>auto-converted</user><email>info@ebizmarts.com</email></author></authors>
196
- <date>2013-08-21</date>
197
- <time>05:21:09</time>
198
- <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="494b043f37b3e50b64ebcdf839404bcd"/></dir><dir name="Import"><file name="Form.php" hash="876d2d4779f6cab94efcf875e9f91124"/></dir><dir name="Queue"><file name="Grid.php" hash="390dd759c2817044c44a0871819517b1"/></dir><dir name="QueueExport"><file name="Grid.php" hash="9f813bb7c6cc57a4dc2c4b40dbd0de0c"/></dir><dir name="QueueImport"><file name="Grid.php" hash="75363f7b616236e0d0b61625cb47b034"/></dir><file name="Export.php" hash="839406dcc6fdc21eafcc2a4482c409d9"/><file name="Import.php" hash="ffd9954540eb34e843924bf883ad96a9"/><file name="Queue.php" hash="cb98b0a44474e0c73f8e2deadfe040d5"/><file name="QueueExport.php" hash="c265f7173b88cdccf86c95d7189a8b7a"/><file name="QueueImport.php" hash="1ab842ed0d21fdcef5c1a03395036754"/></dir><dir name="Customer"><dir name="Edit"><dir name="Tab"><file name="Memberactivity.php" hash="b36206aff7545c2daeaecae13c09ccc0"/></dir></dir></dir><dir name="Ecommerce"><file name="Grid.php" hash="d5a96878c984ea0b83c3eaca3c5112f3"/></dir><dir name="Ecommerceapi"><dir name="Renderer"><file name="Items.php" hash="e1d1f0fa96a0fc43e4cf13de1e919fbf"/></dir><file name="Grid.php" hash="4082405d6e7d83b1b08fcaf56c5b2ffd"/></dir><dir name="Memberactivity"><file name="Grid.php" hash="35efc93f57716c24970fb404d0c085b6"/></dir><dir name="Renderer"><file name="Date.php" hash="d49c78b64451be697c8618b8d0359594"/><file name="Importypes.php" hash="c701400787cf5030c9443985ff71d641"/><file name="Lists.php" hash="941bc98f92c814efe2889b978ed478f8"/><file name="Progress.php" hash="a0a1c6e7820779f9816bc2573c498480"/><file name="Yesno.php" hash="dfa6a63276fc013759f1624bf5b4b011"/></dir><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Hint.php" hash="9b80747920f4e807f9965e9e220df7f0"/></dir><dir name="Form"><dir name="Field"><file name="Mapfields.php" hash="2a842a1af2cf5c77811e2278af24c8ad"/></dir></dir><file name="Account.php" hash="da002554cad88eb8a2c88db03911ecbe"/><file name="OauthWizard.php" hash="5e7284770d5a5861a9c208b0bb1af400"/></dir></dir><dir name="Transactionalemail"><dir name="Mandrill"><file name="Grid.php" hash="9bdba2256861d7b2b956eebdf5f74810"/></dir><dir name="Newemail"><file name="Form.php" hash="2dc7e08b4ac6db0a8feaeb8edcac298b"/></dir><dir name="Sts"><file name="Grid.php" hash="f676f809fb853345f2cb4024c8439b18"/></dir><file name="Mandrill.php" hash="2b61e9227eacf5cf9f63c2a6636a122a"/><file name="Newemail.php" hash="ff60f1428e93cd85ff433b8c8991914c"/><file name="Sts.php" hash="3e11110c89e687a76e0b5eb16382cbf3"/></dir><file name="Ecommerce.php" hash="23466d320d6cf639262ea45295ca7fad"/><file name="Ecommerceapi.php" hash="2362186beb28cea702c720ddaca6ff59"/></dir><dir name="Checkout"><file name="Subscribe.php" hash="5e998c988af48b0b2288351a46d242cb"/></dir><dir name="Customer"><dir name="Account"><file name="Lists.php" hash="10e67b8fb610eeb26f53f9975a0777e0"/></dir></dir><file name="Lists.php" hash="30c23403376a9ba62303917b81bf53a4"/><file name="Signup.php" hash="381f59bcb8076de6e4cc4a58ec1749de"/></dir><dir name="Helper"><file name="Cache.php" hash="461d2b77aff5eb4bad80a52b65978f0d"/><file name="Data.php" hash="fef3f23399a7c48450a0bc96458d0bf1"/><file name="Export.php" hash="bb36cff9864f8d53570200b371d84148"/><file name="Oauth2.php" hash="96e747768b4a0f2197ca1dda34e718cd"/></dir><dir name="Model"><dir name="Custom"><file name="Collection.php" hash="0ef74aaaac158aea31f90f6968ad651d"/></dir><dir name="Email"><file name="Template.php" hash="15e22e333d3ea8ed4cca2a5d8ecbfd0f"/></dir><dir name="Feed"><file name="Updates.php" hash="4ea3720b6e409ad396803a8203528e0a"/></dir><dir name="Mysql4"><dir name="Apidebug"><file name="Collection.php" hash="bda066b79c0d02744517bdedcecc0f63"/></dir><dir name="Bulksync"><dir name="Export"><file name="Collection.php" hash="8867a8e938fdbe6ea2727d5a47394a88"/></dir><dir name="Import"><file name="Collection.php" hash="2cb299ac506584ac4ab7baa61523fe55"/></dir><file name="Export.php" hash="257ebb74a4098a5c871e333139f46030"/><file name="Import.php" hash="8a69917cdcc660f0c907f5047301064e"/></dir><dir name="Ecommerce"><file name="Collection.php" hash="249fc8232239f7b6caeb3637ab3563dc"/></dir><file name="Apidebug.php" hash="97ca435168f87996cc6ec28c8416f6a5"/><file name="Ecommerce.php" hash="aab9408ea22072c8f64b253d53a2b0c5"/></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="Account.php" hash="cfe2a819e278a6316dada4f1e8a5f0b8"/><file name="BulksyncDatasource.php" hash="0e60006bd0f9d621efed121a51764942"/><file name="BulksyncStatus.php" hash="0d8aec39d675d1f1e182ebf9e6521036"/><file name="Checkoutsubscribe.php" hash="1354dc01bc7f2ae34345a6a326f441b0"/><file name="CronProcessLimit.php" hash="d5ea4bcf96d89161746bf668f3c08caa"/><file name="Ecommerce360.php" hash="9d52d037f9c1e1354454bbc4e6d4862d"/><file name="List.php" hash="b7e3facaa5ee55753c065bae06f7d490"/><file name="OrderStatus.php" hash="fcffa29f07dbd3193a161430d70ae7d2"/><file name="Status.php" hash="dfb9f8702682ec6b7493e56bf995d40f"/><file name="TransactionalEmails.php" hash="8268078df511548abbc2dfa2730eb466"/><file name="WebhookDelete.php" hash="31a3456d1917da0d36fc1602aad90dab"/></dir></dir></dir><dir name="TransactionalEmail"><file name="Adapter.php" hash="48c9343c6a83f76dbf9ca5f111631f4a"/><file name="MANDRILL.php" hash="e9c9ade76a71d4feb9f78636ab9dbc4b"/><file name="STS.php" hash="3475e766d22ad464559b4e5b5a9cf03d"/></dir><file name="Api.php" hash="ff4937f6725ac342db5e9cb32827b233"/><file name="Apidebug.php" hash="c12fdbbcc042b5c00105fa27927da2f2"/><file name="BulksyncExport.php" hash="4ac2dffdfdbeb613ec662ff3cea3de45"/><file name="BulksyncImport.php" hash="2584cba71ec74d00304fb0c17258a3c6"/><file name="Cache.php" hash="8cd79a8368972846ce4197d9c7f975cc"/><file name="Cron.php" hash="229d10cd3e799b3ed1c44c8ecf1715ca"/><file name="Ecommerce.php" hash="ac3cda4fa10edce879e4c685ac405db1"/><file name="Ecommerce360.php" hash="b85e399ba0ed54a7fc1bd310faad5aa8"/><file name="MCAPI.php" hash="e0069816d5254a6d865412e0ce7246bc"/><file name="MCEXPORTAPI.php" hash="a559121e56448f22c58470635fb5f9ff"/><file name="Monkey.php" hash="eb5fe1633c912ac24992125329807dd2"/><file name="Observer.php" hash="9fe3120b2ebf9a4bb7f5a61b49700fe1"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="BulksyncController.php" hash="d1be92d5ba05fd106bfe0e1f9ddcf622"/><file name="EcommerceController.php" hash="6c4d1285022e2b03f08b27cfb57b7578"/><file name="TransactionalemailController.php" hash="1af1861fa74ddc0e917c8ea7f66c4843"/></dir><dir name="Customer"><file name="AccountController.php" hash="62b34054aa3b72a18570cf1b7fde48d1"/></dir><file name="SignupController.php" hash="e4d83eec491e96aada17e248c84a33fe"/><file name="WebhookController.php" hash="525f7e7657ab0353783eaa341fb2a714"/></dir><dir name="etc"><file name="adminhtml.xml" hash="95fef632f0e0eda69d6717d7231749bd"/><file name="config.xml" hash="1e1fb15a2f2cc721f1a9403ed87b45b2"/><file name="system.xml" hash="cef6a7882f43aa04c7e47c34847c273f"/></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.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="e74ee5dac57de8157c1b22499fc3cc17"/></dir><file name="Userinfo.php" hash="5f4bb5e8b314ecd2662eb428a89eb6ab"/></dir></dir><dir name="Users"><dir name="Senders"><file name="Grid.php" hash="b6edb098f54daad0ccc046e37407f56f"/></dir><file name="Senders.php" hash="65406b23588d5ac1681c2767676f8634"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="9e9664511acf4d9a5895da88a4587568"/></dir><dir name="Model"><dir name="Email"><file name="Template.php" hash="91a60f843bc3da655940189adb66748f"/></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="Userinfo.php" hash="b7ebed36a640a389cad61faddd62d30f"/></dir></dir></dir><file name="Customcollection.php" hash="6cf600e84ff59c89be519171c0df22e3"/></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Mandrill"><file name="UsersController.php" hash="e7f1cb19d1bb424a873797844768bbbf"/></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="af71f4a3a16c40e2b6862061ddad0a19"/><file name="config.xml" hash="255447d64089fd25db41fde836171f00"/><file name="system.xml" hash="1196617c7e63720eefcb76b06181c8c6"/></dir></dir><dir name="AbandonedCart"><dir name="Block"><dir name="Adminhtml"><dir name="Abandonedmails"><file name="Grid.php" hash="ab7e9c98b2e81084b699f0671c3e4cde"/></dir><dir name="Abandonedorder"><file name="Grid.php" hash="5ce2c2ce64f31770de9366e48c0a1574"/></dir><dir name="Dashboard"><file name="Sales.php" hash="16abf05ddd0c40a2c5ddbd3d41ea0d33"/><file name="Totals.php" hash="d85af3df9878c5fa263060a36e4c26b2"/></dir><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Hint.php" hash="4c885ae5c0bc9dfe81f1230277d254d9"/></dir><file name="Date.php" hash="3d6d093a0a8b78323940dcb7c3af503c"/></dir></dir><file name="Abandonedmails.php" hash="481f6ad7621a0ad22e6cc4ca5b134f4f"/><file name="Abandonedorder.php" hash="432ab1613ce56bf05d588220981c55f2"/><file name="Dashboard.php" hash="3b21c7594c0b197e184e6c3a4981324d"/></dir><dir name="Email"><dir name="Order"><file name="Items.php" hash="8df49873c836d2fa3ef270730ddc32e6"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="7f1d1e8c82f761c40102f521bd8e83a3"/></dir><dir name="Model"><dir name="Resource"><dir name="Mailssent"><file name="Collection.php" hash="e6c0f3aebc086a50661e8b1851698d04"/></dir><dir name="Order"><file name="Collection.php" hash="d89b12a08d926abe27d56579e920d66f"/></dir><file name="Mailssent.php" hash="680224fabede906f58f70afe3873203b"/></dir><dir name="System"><dir name="Config"><file name="Automatic.php" hash="04110625fa0be42905ccd21be919b46b"/><file name="Cmspage.php" hash="30c24459f4070408bc0c84cf8903e5d2"/><file name="Customergroup.php" hash="394ebe1114d7a08fb9a4d6f4b5b3d9df"/><file name="Discounttype.php" hash="6f647fbfc3a7ecff05bb0c7ad85a0272"/><file name="Unit.php" hash="d22875d2d2e5206e243031bba727cbe3"/></dir></dir><file name="Config.php" hash="4a1dcdabd84f652d14b3eb8b22e68ed0"/><file name="Cron.php" hash="2fd8c8dde8b6462c57b7afd33be8621b"/><file name="EventObserver.php" hash="ef83d3cb356c0b3423f3ec5aa319fd97"/><file name="Mailssent.php" hash="bd816e03345495f6becc5a14b84c9ce1"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="AbandonedmailsController.php" hash="960493d95b9dcc22a492eb26a54b5ff6"/><file name="AbandonedorderController.php" hash="9fcb3223357dfb9281a689232b28c6e0"/></dir><file name="AbandonedController.php" hash="135e3ed6203f372e9c35a235197d7285"/></dir><dir name="etc"><file name="adminhtml.xml" hash="c2a82d9e46d715f3d10a5ae40f457c89"/><file name="config.xml" hash="6962c05b0ffc0965b1f90d7d6a38ac3c"/><file name="system.xml" hash="a3953826ed66b82c7f8088c4f5d0244c"/></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="Birthday"><dir name="Fieldset"><file name="Hint.php" hash="9ad466f965604828a2467ccc54d151b8"/></dir></dir><dir name="Fieldset"><file name="Hint.php" hash="349238311cdf09fc7637cdb294526f61"/></dir><dir name="Review"><dir name="Fieldset"><file name="Hint.php" hash="53d9fabcf8fd265df6b1344d9417bfce"/></dir></dir><dir name="Wishlist"><dir name="Fieldset"><file name="Hint.php" hash="8d3023646bf0bb4a0f3bd7dc7409c88f"/></dir></dir></dir></dir></dir><dir name="Customer"><dir name="Account"><file name="List.php" hash="88f17bfd4caaee22084db1f586932906"/></dir></dir><dir name="Email"><dir name="Related"><file name="Items.php" hash="fb3a41724e89de1a8dfaf2faa3e4f74d"/></dir><dir name="Review"><file name="Items.php" hash="9b80bad72b7f3ecc415a44c0ac96cf93"/></dir><dir name="Wishlist"><file name="Items.php" hash="12bd1d249aac41ba862fb501fc062be1"/></dir></dir><file name="Unsubscribe.php" hash="f67ee7f28b010a87b378a07629c92ac6"/></dir><dir name="Helper"><file name="Data.php" hash="cff844f2ef576bf51770b4d7afeb3f02"/></dir><dir name="Model"><dir name="Resource"><dir name="Unsubscribe"><file name="Collection.php" hash="e6179ce956137d9af5521f10af34f5cf"/></dir><dir name="Visited"><file name="Collection.php" hash="f945f8a90042995b9fd9b8066f300ae3"/></dir><file name="Unsubscribe.php" hash="2e0ea91653872a32f8276e4f4c403d0f"/><file name="Visited.php" hash="3aba82fd9bac48334bcd84a677afcb97"/></dir><dir name="System"><dir name="Config"><file name="Automatic.php" hash="1996bb3baf00288e313cc034ef5c0195"/><file name="Customergroup.php" hash="0756189e811c962ca77df0154289273f"/><file name="Discounttype.php" hash="225a09b80efedb8a37a6b799d2405129"/><file name="Time.php" hash="54a4783fe88b23017b6bc5a085222c37"/></dir></dir><file name="Config.php" hash="4ce878142894bee80c75bd9bc9a15d56"/><file name="Cron.php" hash="db020d37239712ae1463cadc29f6c0f6"/><file name="EventObserver.php" hash="41f922a7bbd33aa671848afdaea59cf5"/><file name="Unsubscribe.php" hash="ca9037bc1037e27e9c66d6eca9d7c0c2"/><file name="Visited.php" hash="d46e2dd0d0f69d8be707356f6183a98c"/></dir><dir name="controllers"><file name="AutoresponderController.php" hash="b07ce648f8de71d10b934a81fd8011a2"/></dir><dir name="etc"><file name="adminhtml.xml" hash="59a240f12b496566f1a2b1de5f053e96"/><file name="config.xml" hash="006f87fc5093df5c990daa180a6f4dbf"/><file name="system.xml" hash="65c3bb615d6ef7c0a16c0b32ea393cb1"/></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="f623b6cb20dc56206a4a5fb395a9b960"/></dir></dir></dir></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="72945454a4d24ef8d1718bf177272ffe"/><file name="autoresponder.xml" hash="c928c3da9382d31b281fc2b98467b12d"/></dir><file name="magemonkey.xml" hash="f86c4a1e77468bf497bbc31f00d379c9"/></dir><dir name="template"><dir name="magemonkey"><dir name="checkout"><file name="subscribe.phtml" hash="ef3abc11470c016626a7470e29908a14"/></dir><dir name="customer"><dir name="account"><file name="lists.phtml" hash="9a81bc227a165994ac08ea615e5d8c3e"/></dir></dir><file name="lists.phtml" hash="f56a99e2b7337325de495b7b72c13634"/></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="cd81265b83dc2df835301b5fafb70f8f"/></dir></dir></dir><dir name="ebizmarts"><dir name="autoresponder"><dir name="customer"><file name="list.phtml" hash="be9cd36a644a39e3569c9ae0ded2087d"/></dir><dir name="related"><file name="items.phtml" hash="c0bd5d0624f882a9fefaca5e41bf5ee7"/></dir><dir name="review"><file name="items.phtml" hash="6e2cf411fa131aa3f57e9be73c7ffee4"/></dir><dir name="wishlist"><file name="items.phtml" hash="9a1cd60c87c038696821ed6c1e5879f9"/></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="abandonedcart.xml" hash="56b2ca552b73a976207cd33afbcfb299"/></dir><file name="magemonkey.xml" hash="613e5cd38048dedadb96434b9c3cc704"/><file name="mandrill.xml" hash="a79308bc32db35d45b151c01041be72d"/></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"/></dir></dir></dir><dir name="mandrill"><dir name="system"><dir name="config"><dir name="fieldset"><file name="hint.phtml" hash="d4025820e90c8e20bc8c6664984a78a1"/></dir></dir></dir></dir><dir name="ebizmarts"><dir name="abandonedcart"><dir name="dashboard"><file name="index.phtml" hash="180d73784745e0c1d5b37b0d435a2cc0"/><file name="salebar.phtml" hash="50a0c2645e2f651da9ba72fd875986cb"/><file name="totalbar.phtml" hash="2652c0ab80efd0acceaf827964fe24c3"/></dir><dir name="system"><dir name="config"><dir name="fieldset"><file name="hint.phtml" hash="769a7167480f7dd4e46a5cc99e88af20"/></dir></dir></dir></dir><dir name="autoresponder"><dir name="system"><dir name="config"><dir name="birthday"><dir name="fieldset"><file name="hint.phtml" hash="577162540f6f45b822d7784463c31456"/></dir></dir><dir name="fieldset"><file name="hint.phtml" hash="4dc3f6561861ae893eda757221ca8027"/></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="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="magelocale"><dir name="en_US"><dir name="template"><dir name="email"><dir name="sales"><file name="abandoned_cart.html" hash="98e069b6316232dc155408326162c3aa"/></dir><dir name="ebizmarts"><dir name="autoresponder"><file name="birthday.html" hash="80c07ab41e13f953bac72f6164a8e9b1"/><file name="neworder.html" hash="c5f7af81d02baa3b4c851f327640c9d0"/><file name="noactivity.html" hash="9dfb99e8cea787a37e552c1e7ecdc961"/><file name="relatedproducts.html" hash="68a2b450dfeff78b4aefd77c1b6000b3"/><file name="review.html" hash="daf05d3208d1897426d6dbdcea280ce8"/><file name="visitedproducts.html" hash="39eb203e97a10dc3944a57f07103b340"/><file name="wishlist.html" hash="f8dc86167dd0df3100f8821b8db77285"/></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"/></dir></target><target name="mageskin"><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><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="mandrill"><file name="mandrill-tab.png" hash="d7eaf9deef355e4b8b55a96070b90ffe"/><file name="mandrill.css" hash="9ae16c108e7077daee12fcd81e267e66"/></dir><dir name="magemonkey"><file name="magemonkey.css" hash="c89300bb9c69634d562bc9acbb12c1a5"/><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></dir></dir></target><target name="mage"><dir name="lib"><dir name="Mandrill"><file name="API.php" hash="a3cfc2fbc1f2a309512a6f2fc415124c"/></dir></dir><dir name="js"><dir name="ebizmarts"><dir name="autoresponders"><file name="visitedproducts.js" hash="187789b18c33f48ad5eeb3f2dcc2267a"/></dir></dir></dir></target></contents>
199
  <compatible/>
200
  <dependencies/>
201
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Ebizmarts_MageMonkey</name>
4
+ <version>1.1.20</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>-- version 1.1.20 stable&#xD;
12
+ - Fix visited product javascript issue&#xD;
13
+ - Fix for template design in multistore website&#xD;
14
+ - Add Order State attribute in product review autoresponder&#xD;
15
+ - Add Order State attribute in product related autoresponder &#xD;
16
+ - Fix ebizmarts_mark_visited product attribute (make it user_defined)&#xD;
17
+ - Fix for es wrong default store&#xD;
18
+ - Fix for product name and description in autoresponders templates&#xD;
19
+ - New facility, coupons for reviews&#xD;
20
+ - Fix to hide Header title of hidden groups&#xD;
21
+ - Changed mergeVars() validation for firstname/lastname. Now are evaluated separately.&#xD;
22
+ - Fix $email variable for related products. it was not retrieving and validating isSubscribed&#xD;
23
+ - Mandrill fix for allow multiple bcc&#xD;
24
+ &#xD;
25
+ -- version 1.1.19 stable&#xD;
26
  - add browsed products autoresponder&#xD;
27
  &#xD;
28
  -- version 1.1.18 stable&#xD;
207
  &#xD;
208
  First public release 0.0.9, January 2012</notes>
209
  <authors><author><name>Ebizmarts Development Team</name><user>auto-converted</user><email>info@ebizmarts.com</email></author></authors>
210
+ <date>2013-11-19</date>
211
+ <time>18:46:07</time>
212
+ <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="494b043f37b3e50b64ebcdf839404bcd"/></dir><dir name="Import"><file name="Form.php" hash="876d2d4779f6cab94efcf875e9f91124"/></dir><dir name="Queue"><file name="Grid.php" hash="390dd759c2817044c44a0871819517b1"/></dir><dir name="QueueExport"><file name="Grid.php" hash="9f813bb7c6cc57a4dc2c4b40dbd0de0c"/></dir><dir name="QueueImport"><file name="Grid.php" hash="75363f7b616236e0d0b61625cb47b034"/></dir><file name="Export.php" hash="839406dcc6fdc21eafcc2a4482c409d9"/><file name="Import.php" hash="ffd9954540eb34e843924bf883ad96a9"/><file name="Queue.php" hash="cb98b0a44474e0c73f8e2deadfe040d5"/><file name="QueueExport.php" hash="c265f7173b88cdccf86c95d7189a8b7a"/><file name="QueueImport.php" hash="1ab842ed0d21fdcef5c1a03395036754"/></dir><dir name="Customer"><dir name="Edit"><dir name="Tab"><file name="Memberactivity.php" hash="b36206aff7545c2daeaecae13c09ccc0"/></dir></dir></dir><dir name="Ecommerce"><file name="Grid.php" hash="d5a96878c984ea0b83c3eaca3c5112f3"/></dir><dir name="Ecommerceapi"><dir name="Renderer"><file name="Items.php" hash="e1d1f0fa96a0fc43e4cf13de1e919fbf"/></dir><file name="Grid.php" hash="4082405d6e7d83b1b08fcaf56c5b2ffd"/></dir><dir name="Memberactivity"><file name="Grid.php" hash="35efc93f57716c24970fb404d0c085b6"/></dir><dir name="Renderer"><file name="Date.php" hash="d49c78b64451be697c8618b8d0359594"/><file name="Importypes.php" hash="c701400787cf5030c9443985ff71d641"/><file name="Lists.php" hash="941bc98f92c814efe2889b978ed478f8"/><file name="Progress.php" hash="a0a1c6e7820779f9816bc2573c498480"/><file name="Yesno.php" hash="dfa6a63276fc013759f1624bf5b4b011"/></dir><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Hint.php" hash="9b80747920f4e807f9965e9e220df7f0"/></dir><dir name="Form"><dir name="Field"><file name="Mapfields.php" hash="2a842a1af2cf5c77811e2278af24c8ad"/></dir></dir><file name="Account.php" hash="da002554cad88eb8a2c88db03911ecbe"/><file name="OauthWizard.php" hash="5e7284770d5a5861a9c208b0bb1af400"/></dir></dir><dir name="Transactionalemail"><dir name="Mandrill"><file name="Grid.php" hash="9bdba2256861d7b2b956eebdf5f74810"/></dir><dir name="Newemail"><file name="Form.php" hash="2dc7e08b4ac6db0a8feaeb8edcac298b"/></dir><dir name="Sts"><file name="Grid.php" hash="f676f809fb853345f2cb4024c8439b18"/></dir><file name="Mandrill.php" hash="2b61e9227eacf5cf9f63c2a6636a122a"/><file name="Newemail.php" hash="ff60f1428e93cd85ff433b8c8991914c"/><file name="Sts.php" hash="3e11110c89e687a76e0b5eb16382cbf3"/></dir><file name="Ecommerce.php" hash="23466d320d6cf639262ea45295ca7fad"/><file name="Ecommerceapi.php" hash="2362186beb28cea702c720ddaca6ff59"/></dir><dir name="Checkout"><file name="Subscribe.php" hash="5e998c988af48b0b2288351a46d242cb"/></dir><dir name="Customer"><dir name="Account"><file name="Lists.php" hash="10e67b8fb610eeb26f53f9975a0777e0"/></dir></dir><file name="Lists.php" hash="30c23403376a9ba62303917b81bf53a4"/><file name="Signup.php" hash="381f59bcb8076de6e4cc4a58ec1749de"/></dir><dir name="Helper"><file name="Cache.php" hash="461d2b77aff5eb4bad80a52b65978f0d"/><file name="Data.php" hash="f23f05f50144e5d6153ff674eebc39ad"/><file name="Export.php" hash="bb36cff9864f8d53570200b371d84148"/><file name="Oauth2.php" hash="96e747768b4a0f2197ca1dda34e718cd"/></dir><dir name="Model"><dir name="Custom"><file name="Collection.php" hash="0ef74aaaac158aea31f90f6968ad651d"/></dir><dir name="Email"><file name="Template.php" hash="15e22e333d3ea8ed4cca2a5d8ecbfd0f"/></dir><dir name="Feed"><file name="Updates.php" hash="4ea3720b6e409ad396803a8203528e0a"/></dir><dir name="Mysql4"><dir name="Apidebug"><file name="Collection.php" hash="bda066b79c0d02744517bdedcecc0f63"/></dir><dir name="Bulksync"><dir name="Export"><file name="Collection.php" hash="8867a8e938fdbe6ea2727d5a47394a88"/></dir><dir name="Import"><file name="Collection.php" hash="2cb299ac506584ac4ab7baa61523fe55"/></dir><file name="Export.php" hash="257ebb74a4098a5c871e333139f46030"/><file name="Import.php" hash="8a69917cdcc660f0c907f5047301064e"/></dir><dir name="Ecommerce"><file name="Collection.php" hash="249fc8232239f7b6caeb3637ab3563dc"/></dir><file name="Apidebug.php" hash="97ca435168f87996cc6ec28c8416f6a5"/><file name="Ecommerce.php" hash="aab9408ea22072c8f64b253d53a2b0c5"/></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="Account.php" hash="cfe2a819e278a6316dada4f1e8a5f0b8"/><file name="BulksyncDatasource.php" hash="0e60006bd0f9d621efed121a51764942"/><file name="BulksyncStatus.php" hash="0d8aec39d675d1f1e182ebf9e6521036"/><file name="Checkoutsubscribe.php" hash="1354dc01bc7f2ae34345a6a326f441b0"/><file name="CronProcessLimit.php" hash="d5ea4bcf96d89161746bf668f3c08caa"/><file name="Ecommerce360.php" hash="9d52d037f9c1e1354454bbc4e6d4862d"/><file name="List.php" hash="b7e3facaa5ee55753c065bae06f7d490"/><file name="OrderStatus.php" hash="fcffa29f07dbd3193a161430d70ae7d2"/><file name="Status.php" hash="dfb9f8702682ec6b7493e56bf995d40f"/><file name="TransactionalEmails.php" hash="8268078df511548abbc2dfa2730eb466"/><file name="WebhookDelete.php" hash="31a3456d1917da0d36fc1602aad90dab"/></dir></dir></dir><dir name="TransactionalEmail"><file name="Adapter.php" hash="48c9343c6a83f76dbf9ca5f111631f4a"/><file name="MANDRILL.php" hash="e9c9ade76a71d4feb9f78636ab9dbc4b"/><file name="STS.php" hash="3475e766d22ad464559b4e5b5a9cf03d"/></dir><file name="Api.php" hash="ff4937f6725ac342db5e9cb32827b233"/><file name="Apidebug.php" hash="c12fdbbcc042b5c00105fa27927da2f2"/><file name="BulksyncExport.php" hash="4ac2dffdfdbeb613ec662ff3cea3de45"/><file name="BulksyncImport.php" hash="2584cba71ec74d00304fb0c17258a3c6"/><file name="Cache.php" hash="8cd79a8368972846ce4197d9c7f975cc"/><file name="Cron.php" hash="229d10cd3e799b3ed1c44c8ecf1715ca"/><file name="Ecommerce.php" hash="ac3cda4fa10edce879e4c685ac405db1"/><file name="Ecommerce360.php" hash="b85e399ba0ed54a7fc1bd310faad5aa8"/><file name="MCAPI.php" hash="e0069816d5254a6d865412e0ce7246bc"/><file name="MCEXPORTAPI.php" hash="a559121e56448f22c58470635fb5f9ff"/><file name="Monkey.php" hash="eb5fe1633c912ac24992125329807dd2"/><file name="Observer.php" hash="9fe3120b2ebf9a4bb7f5a61b49700fe1"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="BulksyncController.php" hash="d1be92d5ba05fd106bfe0e1f9ddcf622"/><file name="EcommerceController.php" hash="6c4d1285022e2b03f08b27cfb57b7578"/><file name="TransactionalemailController.php" hash="1af1861fa74ddc0e917c8ea7f66c4843"/></dir><dir name="Customer"><file name="AccountController.php" hash="62b34054aa3b72a18570cf1b7fde48d1"/></dir><file name="SignupController.php" hash="e4d83eec491e96aada17e248c84a33fe"/><file name="WebhookController.php" hash="525f7e7657ab0353783eaa341fb2a714"/></dir><dir name="etc"><file name="adminhtml.xml" hash="95fef632f0e0eda69d6717d7231749bd"/><file name="config.xml" hash="1e1fb15a2f2cc721f1a9403ed87b45b2"/><file name="system.xml" hash="cef6a7882f43aa04c7e47c34847c273f"/></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.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="e74ee5dac57de8157c1b22499fc3cc17"/></dir><file name="Userinfo.php" hash="5f4bb5e8b314ecd2662eb428a89eb6ab"/></dir></dir><dir name="Users"><dir name="Senders"><file name="Grid.php" hash="b6edb098f54daad0ccc046e37407f56f"/></dir><file name="Senders.php" hash="65406b23588d5ac1681c2767676f8634"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="b71bc11b8749b9c7def82e81e32455db"/></dir><dir name="Model"><dir name="Email"><file name="Template.php" hash="21a82b01e7dc92d24e231d516fd3c487"/></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="Userinfo.php" hash="b7ebed36a640a389cad61faddd62d30f"/></dir></dir></dir><file name="Customcollection.php" hash="6cf600e84ff59c89be519171c0df22e3"/></dir><dir name="controllers"><dir name="Adminhtml"><dir name="Mandrill"><file name="UsersController.php" hash="e7f1cb19d1bb424a873797844768bbbf"/></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="07d9aad815062f4d1630ba757c2e0544"/><file name="config.xml" hash="0aba10bd3f65b1c6e8c738a75e2906e2"/><file name="system.xml" hash="82a53c22cd2f57706fbde69c6cf4e603"/></dir></dir><dir name="AbandonedCart"><dir name="Block"><dir name="Adminhtml"><dir name="Abandonedmails"><file name="Grid.php" hash="3c243d2dc78e73c9f9beb3a6ff2f7620"/></dir><dir name="Abandonedorder"><file name="Grid.php" hash="5ce2c2ce64f31770de9366e48c0a1574"/></dir><dir name="Dashboard"><file name="Sales.php" hash="16abf05ddd0c40a2c5ddbd3d41ea0d33"/><file name="Totals.php" hash="d85af3df9878c5fa263060a36e4c26b2"/></dir><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Hint.php" hash="4c885ae5c0bc9dfe81f1230277d254d9"/></dir><file name="Date.php" hash="3d6d093a0a8b78323940dcb7c3af503c"/></dir></dir><file name="Abandonedmails.php" hash="481f6ad7621a0ad22e6cc4ca5b134f4f"/><file name="Abandonedorder.php" hash="432ab1613ce56bf05d588220981c55f2"/><file name="Dashboard.php" hash="3b21c7594c0b197e184e6c3a4981324d"/></dir><dir name="Email"><dir name="Order"><file name="Items.php" hash="8df49873c836d2fa3ef270730ddc32e6"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="7f1d1e8c82f761c40102f521bd8e83a3"/></dir><dir name="Model"><dir name="Resource"><dir name="Mailssent"><file name="Collection.php" hash="e6c0f3aebc086a50661e8b1851698d04"/></dir><dir name="Order"><file name="Collection.php" hash="d89b12a08d926abe27d56579e920d66f"/></dir><file name="Mailssent.php" hash="680224fabede906f58f70afe3873203b"/></dir><dir name="System"><dir name="Config"><file name="Automatic.php" hash="04110625fa0be42905ccd21be919b46b"/><file name="Cmspage.php" hash="30c24459f4070408bc0c84cf8903e5d2"/><file name="Customergroup.php" hash="394ebe1114d7a08fb9a4d6f4b5b3d9df"/><file name="Discounttype.php" hash="6f647fbfc3a7ecff05bb0c7ad85a0272"/><file name="Unit.php" hash="d22875d2d2e5206e243031bba727cbe3"/></dir></dir><file name="Config.php" hash="4a1dcdabd84f652d14b3eb8b22e68ed0"/><file name="Cron.php" hash="a17392b51b2f2cf539a6cd3c1f9bfbda"/><file name="EventObserver.php" hash="e2f81d6fa712249e22594b43d62eb239"/><file name="Mailssent.php" hash="bd816e03345495f6becc5a14b84c9ce1"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="AbandonedmailsController.php" hash="960493d95b9dcc22a492eb26a54b5ff6"/><file name="AbandonedorderController.php" hash="9fcb3223357dfb9281a689232b28c6e0"/></dir><file name="AbandonedController.php" hash="135e3ed6203f372e9c35a235197d7285"/></dir><dir name="etc"><file name="adminhtml.xml" hash="c2a82d9e46d715f3d10a5ae40f457c89"/><file name="config.xml" hash="61e2418b6625ff3299a5cd6d492525cc"/><file name="system.xml" hash="0e801b45b32054340c2f2030c9e02354"/></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="Birthday"><dir name="Fieldset"><file name="Hint.php" hash="9ad466f965604828a2467ccc54d151b8"/></dir></dir><dir name="Fieldset"><file name="Hint.php" hash="349238311cdf09fc7637cdb294526f61"/></dir><dir name="Review"><dir name="Fieldset"><file name="Hint.php" hash="53d9fabcf8fd265df6b1344d9417bfce"/></dir></dir><dir name="Wishlist"><dir name="Fieldset"><file name="Hint.php" hash="8d3023646bf0bb4a0f3bd7dc7409c88f"/></dir></dir></dir></dir></dir><dir name="Customer"><dir name="Account"><file name="List.php" hash="88f17bfd4caaee22084db1f586932906"/></dir></dir><dir name="Email"><dir name="Related"><file name="Items.php" hash="fb3a41724e89de1a8dfaf2faa3e4f74d"/></dir><dir name="Review"><file name="Items.php" hash="9b80bad72b7f3ecc415a44c0ac96cf93"/></dir><dir name="Wishlist"><file name="Items.php" hash="12bd1d249aac41ba862fb501fc062be1"/></dir></dir><dir name="Review"><file name="Form.php" hash="d9c57580bc74341b5eb16260ce98e731"/></dir><file name="Unsubscribe.php" hash="f67ee7f28b010a87b378a07629c92ac6"/></dir><dir name="Helper"><file name="Data.php" hash="cff844f2ef576bf51770b4d7afeb3f02"/></dir><dir name="Model"><dir name="Resource"><dir name="Review"><file name="Collection.php" hash="3e1544f254eef17885fdb5f606227e22"/></dir><dir name="Unsubscribe"><file name="Collection.php" hash="e6179ce956137d9af5521f10af34f5cf"/></dir><dir name="Visited"><file name="Collection.php" hash="f945f8a90042995b9fd9b8066f300ae3"/></dir><file name="Review.php" hash="04fffdddb414e38134a063def9d8c101"/><file name="Unsubscribe.php" hash="2e0ea91653872a32f8276e4f4c403d0f"/><file name="Visited.php" hash="3aba82fd9bac48334bcd84a677afcb97"/></dir><dir name="System"><dir name="Config"><file name="Automatic.php" hash="1996bb3baf00288e313cc034ef5c0195"/><file name="Couponcounter.php" hash="51101a5a49e5b59c1dae486323a16b95"/><file name="Customergroup.php" hash="0756189e811c962ca77df0154289273f"/><file name="Discounttype.php" hash="225a09b80efedb8a37a6b799d2405129"/><file name="Generaltype.php" hash="4df1a268f0641852795f23c9c5c6fdb3"/><file name="Time.php" hash="54a4783fe88b23017b6bc5a085222c37"/></dir></dir><file name="Config.php" hash="05219e8c19ae27933f9379b4ae15d11e"/><file name="Cron.php" hash="25d021fdc23a6fa71cba930b4234739a"/><file name="EventObserver.php" hash="a64eb99539e4359f5c269f0cad15150c"/><file name="Review.php" hash="e2529d4f09dc8722fd2fab9a034e49ea"/><file name="Unsubscribe.php" hash="ca9037bc1037e27e9c66d6eca9d7c0c2"/><file name="Visited.php" hash="d46e2dd0d0f69d8be707356f6183a98c"/></dir><dir name="controllers"><file name="AutoresponderController.php" hash="b07ce648f8de71d10b934a81fd8011a2"/></dir><dir name="etc"><file name="adminhtml.xml" hash="59a240f12b496566f1a2b1de5f053e96"/><file name="config.xml" hash="843ae53ce95dbe1d4d5206b2b13a3acc"/><file name="system.xml" hash="5d348d587583d0ceb03fae704c957f09"/></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"/></dir></dir></dir></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="72945454a4d24ef8d1718bf177272ffe"/><file name="autoresponder.xml" hash="d8eca3df02e02d5e42a36cc35e308cdd"/></dir><file name="magemonkey.xml" hash="f86c4a1e77468bf497bbc31f00d379c9"/></dir><dir name="template"><dir name="magemonkey"><dir name="checkout"><file name="subscribe.phtml" hash="e6fc1193e1416db374f17783084f384e"/></dir><file name="lists.phtml" hash="8fdb435eb979aa15372076629503640b"/></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="cd81265b83dc2df835301b5fafb70f8f"/></dir></dir></dir><dir name="ebizmarts"><dir name="autoresponder"><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="abandonedcart.xml" hash="56b2ca552b73a976207cd33afbcfb299"/></dir><file name="magemonkey.xml" hash="613e5cd38048dedadb96434b9c3cc704"/><file name="mandrill.xml" hash="a79308bc32db35d45b151c01041be72d"/></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"/></dir></dir></dir><dir name="mandrill"><dir name="system"><dir name="config"><dir name="fieldset"><file name="hint.phtml" hash="d4025820e90c8e20bc8c6664984a78a1"/></dir></dir></dir></dir><dir name="ebizmarts"><dir name="abandonedcart"><dir name="dashboard"><file name="index.phtml" hash="180d73784745e0c1d5b37b0d435a2cc0"/><file name="salebar.phtml" hash="50a0c2645e2f651da9ba72fd875986cb"/><file name="totalbar.phtml" hash="2652c0ab80efd0acceaf827964fe24c3"/></dir><dir name="system"><dir name="config"><dir name="fieldset"><file name="hint.phtml" hash="769a7167480f7dd4e46a5cc99e88af20"/></dir></dir></dir></dir><dir name="autoresponder"><dir name="system"><dir name="config"><dir name="birthday"><dir name="fieldset"><file name="hint.phtml" hash="577162540f6f45b822d7784463c31456"/></dir></dir><dir name="fieldset"><file name="hint.phtml" hash="4dc3f6561861ae893eda757221ca8027"/></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="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="magelocale"><dir name="en_US"><dir name="template"><dir name="email"><dir name="sales"><file name="abandoned_cart.html" hash="98e069b6316232dc155408326162c3aa"/></dir><dir name="ebizmarts"><dir name="autoresponder"><file name="birthday.html" hash="80c07ab41e13f953bac72f6164a8e9b1"/><file name="neworder.html" hash="c5f7af81d02baa3b4c851f327640c9d0"/><file name="noactivity.html" hash="9dfb99e8cea787a37e552c1e7ecdc961"/><file name="relatedproducts.html" hash="68a2b450dfeff78b4aefd77c1b6000b3"/><file name="review.html" hash="4fbb9589e1b1b7d6a356a59baa7382cb"/><file name="reviewcoupon.html" hash="a169187b1d057bb62f2b154c7c1589fc"/><file name="visitedproducts.html" hash="39eb203e97a10dc3944a57f07103b340"/><file name="wishlist.html" hash="f8dc86167dd0df3100f8821b8db77285"/></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"/></dir></target><target name="mageskin"><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><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="mandrill"><file name="mandrill-tab.png" hash="d7eaf9deef355e4b8b55a96070b90ffe"/><file name="mandrill.css" hash="37a538f63b82a486c364b337420ca8ad"/></dir><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></dir></dir></target><target name="mage"><dir name="lib"><dir name="Mandrill"><file name="API.php" hash="a7b2153852b0a7f65c8869d4c2d56005"/></dir></dir><dir name="js"><dir name="ebizmarts"><dir name="autoresponders"><file name="visitedproducts.js" hash="f2cf78d04c0033f61978b477d9c28e13"/></dir></dir></dir></target></contents>
213
  <compatible/>
214
  <dependencies/>
215
  </package>
skin/adminhtml/default/default/magemonkey/magemonkey.css CHANGED
@@ -2,7 +2,7 @@ ul.tabs a.monkey-section:hover { background-color:#D8E6E6; background-image:url(
2
  ul.tabs a.monkey-section {border-bottom: 1px; border-bottom-style: dotted;text-indent:-9999px;}
3
  ul.tabs a.monkey-section:hover { border-bottom: 1px; border-bottom-style: dotted;text-indent:-9999px;}
4
  ul.tabs a.monkey-section span,
5
- ul.tabs a.monkey-section:hover span { background:url(mailchimp-tab.png) no-repeat 20px 0; overflow:hidden; padding-left:20px;; width:120px; height:22px;}
6
  ul.tabs a.monkey-section.active, ul.tabs a.monkey-section.active:hover { background:white; border-bottom-color: #8BA5A5;}
7
  h3.mailchimp-header { background:url(mailchimp-tab.png) no-repeat 0 0; height: 22px; overflow:hidden; padding-left:20px;; width:120px; text-indent:-9999px; }
8
  fieldset#monkey_general p.note a {background:url(mailchimp-ico.png) no-repeat left top; padding-left:18px; padding-bottom: 4px;}
2
  ul.tabs a.monkey-section {border-bottom: 1px; border-bottom-style: dotted;text-indent:-9999px;}
3
  ul.tabs a.monkey-section:hover { border-bottom: 1px; border-bottom-style: dotted;text-indent:-9999px;}
4
  ul.tabs a.monkey-section span,
5
+ ul.tabs a.monkey-section:hover span { background:url(mailchimp-tab.png) no-repeat 18px 3px; overflow:hidden; padding-left:20px; width:120px; height:18px; }
6
  ul.tabs a.monkey-section.active, ul.tabs a.monkey-section.active:hover { background:white; border-bottom-color: #8BA5A5;}
7
  h3.mailchimp-header { background:url(mailchimp-tab.png) no-repeat 0 0; height: 22px; overflow:hidden; padding-left:20px;; width:120px; text-indent:-9999px; }
8
  fieldset#monkey_general p.note a {background:url(mailchimp-ico.png) no-repeat left top; padding-left:18px; padding-bottom: 4px;}
skin/adminhtml/default/default/mandrill/mandrill.css CHANGED
@@ -2,7 +2,7 @@ ul.tabs a.mandrill-section:hover { background-color:#D8E6E6; background-image:ur
2
  ul.tabs a.mandrill-section {border-bottom: 1px; border-bottom-style: dotted;}
3
  ul.tabs a.mandrill-section:hover {border-bottom: 1px; border-bottom-style: dotted;}
4
  ul.tabs a.mandrill-section span,
5
- ul.tabs a.mandrill-section:hover span { background:url(mandrill-tab.png) no-repeat 20px 0; overflow:hidden; padding:0; padding-left:45px; width:120px; height:22px;}
6
  ul.tabs a.mandrill-section.active, ul.tabs a.mandrill-section.active:hover {background-color: white;border-bottom-color: #8BA5A5;}
7
 
8
  small { font-size: 9px; }
2
  ul.tabs a.mandrill-section {border-bottom: 1px; border-bottom-style: dotted;}
3
  ul.tabs a.mandrill-section:hover {border-bottom: 1px; border-bottom-style: dotted;}
4
  ul.tabs a.mandrill-section span,
5
+ ul.tabs a.mandrill-section:hover span { background:url(mandrill-tab.png) no-repeat 17px 3px; overflow:hidden; padding:0; padding-left:43px; width:120px; height:24px; line-height:24px; }
6
  ul.tabs a.mandrill-section.active, ul.tabs a.mandrill-section.active:hover {background-color: white;border-bottom-color: #8BA5A5;}
7
 
8
  small { font-size: 9px; }