MailUp - Version 2.1.3

Version Notes

Changelog:


  • timezones are now correctly handled by the whole extention

  • users in "waiting for confirmation email" state are now correctly handled

  • Magento's backend menu has was reorganized

  • a console url validation check was added upon system configuration save

  • upon loggin to the Magento's backend (or system configuration save) a configuration check is done, if MailUp isn't completely configured (system configurations and fields mapping) than an alert message is shown

  • Magento's category multilevel hierarchy is now fully supported

  • if an error occour during the connection to the MailUp console a warning is shown (a timeout was also added)

  • PHP short tags were completely removed

  • better and more complete translations (English and Italian)

Download this release

Release Info

Developer Sevenlike
Extension MailUp
Version 2.1.3
Comparing to
See all releases


Code changes from version 2.1.2 to 2.1.3

app/code/local/SevenLike/MailUp/Helper/Data.php CHANGED
@@ -191,17 +191,6 @@ class SevenLike_MailUp_Helper_Data extends Mage_Core_Helper_Abstract
191
  return $toSend;
192
  }
193
 
194
- private static function _formatPrice($price) {
195
- return number_format($price, 2, ',', '');
196
- }
197
-
198
- private static function _retriveDateFromDatetime($datetime) {
199
- if ($datetime && !empty($datetime)) {
200
- return date("d/m/Y", strtotime($datetime));
201
- }
202
- return '';
203
- }
204
-
205
  public function generateAndSendCustomers($mailupCustomerIds, $post = null)
206
  {
207
  $MailUpWsSend = Mage::getModel('mailup/wssend');
@@ -260,6 +249,11 @@ class SevenLike_MailUp_Helper_Data extends Mage_Core_Helper_Abstract
260
  foreach ($mailupCustomerIds as $customerId) {
261
  $tmp = array();
262
  $subscriber = $customersData[$customerId['email']];
 
 
 
 
 
263
  $xmlData .= '<subscriber email="'.$subscriber['email'].'" Number="" Name="">';
264
 
265
  if (@$fields_mapping["Name"]) $tmp[$fields_mapping["Name"]] = '<campo'.$fields_mapping["Name"].'>'. ((!empty($subscriber['nome'])) ? $subscriber['nome'] : '') .'</campo'.$fields_mapping["Name"].'>';
@@ -349,4 +343,34 @@ class SevenLike_MailUp_Helper_Data extends Mage_Core_Helper_Abstract
349
 
350
  $wsImport->startProcess($process);
351
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
352
  }
191
  return $toSend;
192
  }
193
 
 
 
 
 
 
 
 
 
 
 
 
194
  public function generateAndSendCustomers($mailupCustomerIds, $post = null)
195
  {
196
  $MailUpWsSend = Mage::getModel('mailup/wssend');
249
  foreach ($mailupCustomerIds as $customerId) {
250
  $tmp = array();
251
  $subscriber = $customersData[$customerId['email']];
252
+ $subscriber["DataCarrelloAbbandonato"] = self::_convertUTCToStoreTimezoneAndFormatForMailup($subscriber["DataCarrelloAbbandonato"]);
253
+ $subscriber["DataUltimoOrdineSpedito"] = self::_convertUTCToStoreTimezoneAndFormatForMailup($subscriber["DataUltimoOrdineSpedito"]);
254
+ $subscriber["registeredDate"] = self::_convertUTCToStoreTimezoneAndFormatForMailup($subscriber["registeredDate"]);
255
+ $subscriber["DataUltimoOrdine"] = self::_convertUTCToStoreTimezoneAndFormatForMailup($subscriber["DataUltimoOrdine"]);
256
+
257
  $xmlData .= '<subscriber email="'.$subscriber['email'].'" Number="" Name="">';
258
 
259
  if (@$fields_mapping["Name"]) $tmp[$fields_mapping["Name"]] = '<campo'.$fields_mapping["Name"].'>'. ((!empty($subscriber['nome'])) ? $subscriber['nome'] : '') .'</campo'.$fields_mapping["Name"].'>';
343
 
344
  $wsImport->startProcess($process);
345
  }
346
+
347
+ private static function _formatPrice($price) {
348
+ return number_format($price, 2, ',', '');
349
+ }
350
+
351
+ private static function _retriveDateFromDatetime($datetime) {
352
+ if (empty($datetime)) return "";
353
+ return date("Y-m-d H:i:s", strtotime($datetime));
354
+ }
355
+
356
+ public static function _convertUTCToStoreTimezone($datetime)
357
+ {
358
+ if (empty($datetime)) return "";
359
+
360
+ $TIMEZONE_STORE = new DateTimeZone(Mage::getStoreConfig("general/locale/timezone"));
361
+ $TIMEZONE_UTC = new DateTimeZone("UTC");
362
+
363
+ $datetime = new DateTime($datetime, $TIMEZONE_UTC);
364
+ $datetime->setTimezone($TIMEZONE_STORE);
365
+ $datetime = (string)$datetime->format("Y-m-d H:i:s");
366
+
367
+ return $datetime;
368
+ }
369
+
370
+ public static function _convertUTCToStoreTimezoneAndFormatForMailup($datetime)
371
+ {
372
+ if (empty($datetime)) return "";
373
+ $datetime = self::_convertUTCToStoreTimezone($datetime);
374
+ return date("d/m/Y", strtotime($datetime));
375
+ }
376
  }
app/code/local/SevenLike/MailUp/Model/Consoleurlvalidator.php ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class SevenLike_MailUp_Model_Consoleurlvalidator extends Mage_Core_Model_Config_Data
4
+ {
5
+ public function save()
6
+ {
7
+ $value = $this->getValue();
8
+ if (strlen($value) == 0) {
9
+ Mage::throwException(Mage::helper("mailup")->__("Please fill the admin console URL"));
10
+ }
11
+
12
+ $validator = new Zend_Validate_Hostname();
13
+ if (!$validator->isValid($value)) {
14
+ Mage::throwException(Mage::helper("mailup")->__("Admin console URL is not in the right format"));
15
+ }
16
+
17
+ return parent::save();
18
+ }
19
+ }
app/code/local/SevenLike/MailUp/Model/Observer.php CHANGED
@@ -20,6 +20,8 @@ class SevenLike_MailUp_Model_Observer
20
  ->setPath(self::CRON_STRING_PATH)
21
  ->save();
22
  Mage::app()->cleanCache();
 
 
23
  }
24
 
25
  /**
@@ -61,7 +63,7 @@ class SevenLike_MailUp_Model_Observer
61
  $password = Mage::getStoreConfig('newsletter/mailup/password_ws');
62
  $headers = array('User' => $user, 'Password' => $password);
63
  $header = new SOAPHeader("http://ws.mailupnet.it/", 'Authentication', $headers);
64
- $soapclient = new SoapClient($WSDLUrl, array('trace' => 1, 'exceptions' => 0));
65
  $soapclient->__setSoapHeaders($header);
66
 
67
  $loginData = array ('user' => Mage::getStoreConfig('newsletter/mailup/username_ws'),
@@ -85,14 +87,19 @@ class SevenLike_MailUp_Model_Observer
85
  $stato_registrazione = (string)$xml->Canali->Email;
86
  Mage::log("stato registrazione: " . $stato_registrazione);
87
  if ($stato_registrazione) {
88
- if ($stato_registrazione == "Iscritto") {
89
- Mage::getModel('newsletter/subscriber')->loadByEmail($model->getEmail())->setStatus(Mage_Newsletter_Model_Subscriber::STATUS_SUBSCRIBED)->save();
90
- $model->setIsSubscribed(1);
91
- $model->save();
92
- } else {
93
- Mage::getModel('newsletter/subscriber')->loadByEmail($model->getEmail())->setStatus(Mage_Newsletter_Model_Subscriber::STATUS_UNSUBSCRIBED)->save();
94
- $model->setIsSubscribed(0);
95
- $model->save();
 
 
 
 
 
96
  }
97
  }
98
 
@@ -120,7 +127,7 @@ class SevenLike_MailUp_Model_Observer
120
  if (!$status) {
121
  //leggo l'utente da mailup
122
  $this->leggiUtente($observer);
123
- //rileggo lo status perch� potrebbe essere stato modificato dalla precedente chiamata
124
  $status = Mage::getModel('newsletter/subscriber')->loadByEmail($model->getEmail())->getStatus();
125
  // se non sono iscritto nemmeno lato mailup allora posso evitare di andare oltre
126
  if (!$status) return $this;
@@ -168,4 +175,35 @@ class SevenLike_MailUp_Model_Observer
168
 
169
  return $this;
170
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
171
  }
20
  ->setPath(self::CRON_STRING_PATH)
21
  ->save();
22
  Mage::app()->cleanCache();
23
+
24
+ $this->configCheck();
25
  }
26
 
27
  /**
63
  $password = Mage::getStoreConfig('newsletter/mailup/password_ws');
64
  $headers = array('User' => $user, 'Password' => $password);
65
  $header = new SOAPHeader("http://ws.mailupnet.it/", 'Authentication', $headers);
66
+ $soapclient = new SoapClient($WSDLUrl, array('trace' => 1, 'exceptions' => 1, 'connection_timeout' => 10));
67
  $soapclient->__setSoapHeaders($header);
68
 
69
  $loginData = array ('user' => Mage::getStoreConfig('newsletter/mailup/username_ws'),
87
  $stato_registrazione = (string)$xml->Canali->Email;
88
  Mage::log("stato registrazione: " . $stato_registrazione);
89
  if ($stato_registrazione) {
90
+ switch (strtolower($stato_registrazione)) {
91
+ case "iscritto":
92
+ Mage::getModel('newsletter/subscriber')->loadByEmail($model->getEmail())->setStatus(Mage_Newsletter_Model_Subscriber::STATUS_SUBSCRIBED)->save();
93
+ $model->setIsSubscribed(1);
94
+ $model->save();
95
+ break;
96
+ case "in attesa":
97
+ Mage::getSingleton('core/session')->addNotice(Mage::helper("mailup")->__("Your subscription is waiting for confirmation"));
98
+ break;
99
+ default:
100
+ Mage::getModel('newsletter/subscriber')->loadByEmail($model->getEmail())->setStatus(Mage_Newsletter_Model_Subscriber::STATUS_UNSUBSCRIBED)->save();
101
+ $model->setIsSubscribed(0);
102
+ $model->save();
103
  }
104
  }
105
 
127
  if (!$status) {
128
  //leggo l'utente da mailup
129
  $this->leggiUtente($observer);
130
+ //rileggo lo status perché potrebbe essere stato modificato dalla precedente chiamata
131
  $status = Mage::getModel('newsletter/subscriber')->loadByEmail($model->getEmail())->getStatus();
132
  // se non sono iscritto nemmeno lato mailup allora posso evitare di andare oltre
133
  if (!$status) return $this;
175
 
176
  return $this;
177
  }
178
+
179
+ public function configCheck()
180
+ {
181
+ $url_console = Mage::getStoreConfig('newsletter/mailup/url_console');
182
+ $user = Mage::getStoreConfig('newsletter/mailup/username_ws');
183
+ $password = Mage::getStoreConfig('newsletter/mailup/password_ws');
184
+ $list = Mage::getStoreConfig('newsletter/mailup/list');
185
+
186
+ if (!strlen($url_console) or !strlen($user) or !strlen($password) or !strlen($list)) {
187
+ $url = Mage::getModel('adminhtml/url');
188
+ $url = $url->getUrl("adminhtml/system_config/edit", array(
189
+ "section" => "newsletter"
190
+ ));
191
+ $message = Mage::helper("mailup")->__('MailUp configuration is not complete');
192
+ $message = str_replace("href=''", "href='$url'", $message);
193
+ Mage::getSingleton('adminhtml/session')->addWarning($message);
194
+ return;
195
+ }
196
+
197
+ require_once dirname(__FILE__) . "/Ws.php";
198
+ $wsimport = new MailUpWsImport();
199
+ $mapping = $wsimport->getFieldsMapping();
200
+ if (empty($mapping)) {
201
+ $url = Mage::getModel('adminhtml/url');
202
+ $url = $url->getUrl("mailup/adminhtml_fieldsmapping");
203
+ $message = Mage::helper("mailup")->__('MailUp fields mapping is not complete');
204
+ $message = str_replace("href=''", "href='$url'", $message);
205
+ Mage::getSingleton('adminhtml/session')->addWarning($message);
206
+ return;
207
+ }
208
+ }
209
  }
app/code/local/SevenLike/MailUp/Model/Webserviceusernamevalidator.php ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class SevenLike_MailUp_Model_Webserviceusernamevalidator extends Mage_Core_Model_Config_Data
4
+ {
5
+ public function save()
6
+ {
7
+ $value = $this->getValue();
8
+ if (strlen($value) == 0) {
9
+ Mage::throwException(Mage::helper("mailup")->__("Please fill the web service username"));
10
+ }
11
+
12
+ if (!preg_match("/a[0-9]+/", $value)) {
13
+ Mage::throwException(Mage::helper("mailup")->__("Web service username is not in the right format"));
14
+ }
15
+
16
+ return parent::save();
17
+ }
18
+ }
app/code/local/SevenLike/MailUp/Model/Ws.php CHANGED
@@ -18,8 +18,13 @@ class MailUpWsImport
18
  $password = Mage::getStoreConfig('newsletter/mailup/password_ws');
19
  $headers = array('User' => $user, 'Password' => $password);
20
  $this->header = new SOAPHeader($this->ns, 'Authentication', $headers);
21
- $this->soapClient = new SoapClient($WSDLUrl, array('trace' => 1, 'exceptions' => 0));
22
- $this->soapClient->__setSoapHeaders($this->header);
 
 
 
 
 
23
  }
24
 
25
  function __destruct() {
@@ -31,76 +36,84 @@ class MailUpWsImport
31
  }
32
 
33
  public function creaGruppo($newGroup) {
 
34
  try {
35
  $this->soapClient->CreateGroup($newGroup);
36
  $this-> printLastRequest();
37
  $this->printLastResponse();
38
  return $this->readReturnCode('CreateGroup', 'ReturnCode');
39
  } catch (SoapFault $soapFault) {
40
- Mage::log('SOAP error', 0);
41
- Mage::log($soapFault, 0);
42
  }
43
- }
44
 
45
  public function GetNlList() {
 
46
  try {
47
  $this->soapClient->GetNlLists();
48
  $this->printLastRequest();
49
  $this->printLastResponse();
50
- $result = $this->soapClient->__getLastResponse();
51
- Mage::log($result, 0);
52
- return $result;
53
  } catch (SoapFault $soapFault) {
54
- Mage::log('SOAP error', 0);
55
  Mage::log($soapFault, 0);
56
  }
57
  }
58
 
59
  public function newImportProcess($importProcessData) {
 
60
  try {
61
  $this->soapClient->NewImportProcess($importProcessData);
62
  return $this->readReturnCode('NewImportProcess', 'ReturnCode');
63
  } catch (SoapFault $soapFault) {
64
- Mage::log('SOAP error', 0);
65
- Mage::log($soapFault, 0);
66
  }
67
  }
68
 
69
  public function startProcess($processData) {
 
70
  try {
71
  $this->soapClient->StartProcess($processData);
72
  //echo "<br />ReturnCode: ". $this->readReturnCode("StartProcess","ReturnCode")."<br />";
73
  } catch (SoapFault $soapFault) {
74
- Mage::log('SOAP error', 0);
75
- Mage::log($soapFault, 0);
76
  }
77
  }
78
 
79
  public function getProcessDetail($processData) {
 
80
  try {
81
  Mage::log($this->soapClient->GetProcessDetails($processData), 0);
82
  //echo "<br />ReturnCode: ". $this->readReturnCode("GetProcessDetails","ReturnCode")."<br />";
83
  //echo "<br />IsRunning: ". $this->readReturnCode("GetProcessDetails","IsRunning")."<br />";
84
  //echo "<br />StartDate: ". $this->readReturnCode("GetProcessDetails","StartDate")."<br />";
85
  } catch (SoapFault $soapFault) {
86
- Mage::log('SOAP error', 0);
87
- Mage::log($soapFault, 0);
88
  }
89
  }
90
 
91
  public function startImportProcesses($processData) {
 
92
  try {
93
  $this->soapClient->StartImportProcesses($processData);
94
  $this-> printLastRequest();
95
  $this->printLastResponse();
96
  //echo "<br />ReturnCode: ". $this->readReturnCode("StartImportProcesses","ReturnCode")."<br />";
97
  } catch (SoapFault $soapFault) {
98
- Mage::log('SOAP error', 0);
99
- Mage::log($soapFault, 0);
100
  }
101
  }
102
 
103
  private function readReturnCode($func, $param) {
 
 
104
  static $func_in = ''; //static variable to test xmlResponse update
105
  if ($func_in != $func) {//(!isset($this->xmlResponse))
106
  $func_in = $func;
@@ -127,9 +140,12 @@ class MailUpWsImport
127
  }
128
 
129
  public function getCustomersFiltered($request) {
 
 
 
130
  //inizializzo l'array dei clienti
131
  $customersFiltered = array();
132
-
133
  if (!$request->getRequest()->getParam('mailupCustomerFilteredMod')) {
134
  //ottengo la collection con tutti i clienti
135
  $customerCollection = Mage::getModel('customer/customer')
@@ -259,21 +275,14 @@ class MailUpWsImport
259
  $items = $orderData->getAllItems();
260
  $cat_ids = array();
261
  foreach ($items as $product) {
262
- $cat_ids[] = Mage::getResourceSingleton('catalog/product')->getCategoryIds($product);
263
- }
264
-
265
- if (in_array($request->getRequest()->getParam('mailupCategoryId'), $cat_ids)) {
266
- $purchasedCategory = 1;
267
  }
268
  }
269
- //aggiungo il cliente ad un determinato array in base a se ha ordinato o meno
270
- if ($purchasedCategory == 1) {
271
- $tempCategory[] = $result[$count];
272
- }
273
-
274
- //unsetto la variabile
275
- unset($orders); //->unsetData();
276
 
 
277
  $count++;
278
  }
279
 
@@ -356,8 +365,10 @@ class MailUpWsImport
356
 
357
  if ($request->getRequest()->getParam('mailupCustomerStartDate') || $request->getRequest()->getParam('mailupCustomerEndDate') ) {
358
  foreach ($customersFiltered as $customer) {
359
- //trasformo tutte le date in aaaammgg
360
- $createdAt = substr(str_replace('-', '', $customer['created_at']), 0, 8);
 
 
361
  $filterStart = '';
362
  $filterEnd = '';
363
 
@@ -365,17 +376,17 @@ class MailUpWsImport
365
  $date = Zend_Locale_Format::getDate($request->getRequest()->getParam('mailupCustomerStartDate'), array('locale'=>Mage::app()->getLocale()->getLocale(), 'date_format'=>Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT), 'fix_date'=>true));
366
  $date['month'] = str_pad($date['month'], 2, 0, STR_PAD_LEFT);
367
  $date['day'] = str_pad($date['day'], 2, 0, STR_PAD_LEFT);
368
- $filterStart = "{$date['year']}{$date['month']}{$date['day']}";
369
  }
370
  if ($request->getRequest()->getParam('mailupCustomerEndDate')) {
371
  $date = Zend_Locale_Format::getDate($request->getRequest()->getParam('mailupCustomerEndDate'), array('locale'=>Mage::app()->getLocale()->getLocale(), 'date_format'=>Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT), 'fix_date'=>true));
372
  $date['month'] = str_pad($date['month'], 2, 0, STR_PAD_LEFT);
373
  $date['day'] = str_pad($date['day'], 2, 0, STR_PAD_LEFT);
374
- $filterEnd = "{$date['year']}{$date['month']}{$date['day']}";
375
  }
376
  if ($filterStart && $filterEnd) {
377
  //compreso tra start e end date
378
- if ($createdAt >= $filterStart && $createdAt <= $filterEnd) {
379
  $tempDate[] = $customer;
380
  }
381
  } elseif ($filterStart) {
@@ -455,8 +466,10 @@ class MailUpWsImport
455
 
456
  foreach ($orders->getData() as $order) {
457
  if (!in_array($order["status"], array("closed", "complete", "processing"))) continue;
458
- $createdAt = substr(str_replace('-', '', $order['created_at']), 0, 8);
459
-
 
 
460
  $filterStart = '';
461
  $filterEnd = '';
462
 
@@ -464,17 +477,18 @@ class MailUpWsImport
464
  $date = Zend_Locale_Format::getDate($request->getRequest()->getParam('mailupOrderStartDate'), array('locale'=>Mage::app()->getLocale()->getLocale(), 'date_format'=>Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT), 'fix_date'=>true));
465
  $date['month'] = str_pad($date['month'], 2, 0, STR_PAD_LEFT);
466
  $date['day'] = str_pad($date['day'], 2, 0, STR_PAD_LEFT);
467
- $filterStart = "{$date['year']}{$date['month']}{$date['day']}";
468
  }
469
  if ($request->getRequest()->getParam('mailupOrderEndDate')) {
470
  $date = Zend_Locale_Format::getDate($request->getRequest()->getParam('mailupOrderEndDate'), array('locale'=>Mage::app()->getLocale()->getLocale(), 'date_format'=>Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT), 'fix_date'=>true));
471
  $date['month'] = str_pad($date['month'], 2, 0, STR_PAD_LEFT);
472
  $date['day'] = str_pad($date['day'], 2, 0, STR_PAD_LEFT);
473
- $filterEnd = "{$date['year']}{$date['month']}{$date['day']}";
474
  }
475
- if ($filterStart && $filterEnd) {
 
476
  //compreso tra start e end date
477
- if ($createdAt >= $filterStart && $createdAt <= $filterEnd) {
478
  $orderedDate = 1;
479
  }
480
  } elseif ($filterStart) {
18
  $password = Mage::getStoreConfig('newsletter/mailup/password_ws');
19
  $headers = array('User' => $user, 'Password' => $password);
20
  $this->header = new SOAPHeader($this->ns, 'Authentication', $headers);
21
+
22
+ try {
23
+ $this->soapClient = new SoapClient($WSDLUrl, array('trace' => 1, 'exceptions' => 1, 'connection_timeout' => 10));
24
+ $this->soapClient->__setSoapHeaders($this->header);
25
+ } catch (Exception $e) {
26
+ Mage::getSingleton('adminhtml/session')->addError(Mage::helper("mailup")->__("Unable to connect to MailUp console"));
27
+ }
28
  }
29
 
30
  function __destruct() {
36
  }
37
 
38
  public function creaGruppo($newGroup) {
39
+ if (!is_object($this->soapClient)) return false;
40
  try {
41
  $this->soapClient->CreateGroup($newGroup);
42
  $this-> printLastRequest();
43
  $this->printLastResponse();
44
  return $this->readReturnCode('CreateGroup', 'ReturnCode');
45
  } catch (SoapFault $soapFault) {
46
+ Mage::log('SOAP error', 0);
47
+ Mage::log($soapFault, 0);
48
  }
49
+ }
50
 
51
  public function GetNlList() {
52
+ if (!is_object($this->soapClient)) return false;
53
  try {
54
  $this->soapClient->GetNlLists();
55
  $this->printLastRequest();
56
  $this->printLastResponse();
57
+ $result = $this->soapClient->__getLastResponse();
58
+ Mage::log($result, 0);
59
+ return $result;
60
  } catch (SoapFault $soapFault) {
61
+ Mage::log('SOAP error', 0);
62
  Mage::log($soapFault, 0);
63
  }
64
  }
65
 
66
  public function newImportProcess($importProcessData) {
67
+ if (!is_object($this->soapClient)) return false;
68
  try {
69
  $this->soapClient->NewImportProcess($importProcessData);
70
  return $this->readReturnCode('NewImportProcess', 'ReturnCode');
71
  } catch (SoapFault $soapFault) {
72
+ Mage::log('SOAP error', 0);
73
+ Mage::log($soapFault, 0);
74
  }
75
  }
76
 
77
  public function startProcess($processData) {
78
+ if (!is_object($this->soapClient)) return false;
79
  try {
80
  $this->soapClient->StartProcess($processData);
81
  //echo "<br />ReturnCode: ". $this->readReturnCode("StartProcess","ReturnCode")."<br />";
82
  } catch (SoapFault $soapFault) {
83
+ Mage::log('SOAP error', 0);
84
+ Mage::log($soapFault, 0);
85
  }
86
  }
87
 
88
  public function getProcessDetail($processData) {
89
+ if (!is_object($this->soapClient)) return false;
90
  try {
91
  Mage::log($this->soapClient->GetProcessDetails($processData), 0);
92
  //echo "<br />ReturnCode: ". $this->readReturnCode("GetProcessDetails","ReturnCode")."<br />";
93
  //echo "<br />IsRunning: ". $this->readReturnCode("GetProcessDetails","IsRunning")."<br />";
94
  //echo "<br />StartDate: ". $this->readReturnCode("GetProcessDetails","StartDate")."<br />";
95
  } catch (SoapFault $soapFault) {
96
+ Mage::log('SOAP error', 0);
97
+ Mage::log($soapFault, 0);
98
  }
99
  }
100
 
101
  public function startImportProcesses($processData) {
102
+ if (!is_object($this->soapClient)) return false;
103
  try {
104
  $this->soapClient->StartImportProcesses($processData);
105
  $this-> printLastRequest();
106
  $this->printLastResponse();
107
  //echo "<br />ReturnCode: ". $this->readReturnCode("StartImportProcesses","ReturnCode")."<br />";
108
  } catch (SoapFault $soapFault) {
109
+ Mage::log('SOAP error', 0);
110
+ Mage::log($soapFault, 0);
111
  }
112
  }
113
 
114
  private function readReturnCode($func, $param) {
115
+ if (!is_object($this->soapClient)) return false;
116
+
117
  static $func_in = ''; //static variable to test xmlResponse update
118
  if ($func_in != $func) {//(!isset($this->xmlResponse))
119
  $func_in = $func;
140
  }
141
 
142
  public function getCustomersFiltered($request) {
143
+ $TIMEZONE_STORE = new DateTimeZone(Mage::getStoreConfig("general/locale/timezone"));
144
+ $TIMEZONE_UTC = new DateTimeZone("UTC");
145
+
146
  //inizializzo l'array dei clienti
147
  $customersFiltered = array();
148
+
149
  if (!$request->getRequest()->getParam('mailupCustomerFilteredMod')) {
150
  //ottengo la collection con tutti i clienti
151
  $customerCollection = Mage::getModel('customer/customer')
275
  $items = $orderData->getAllItems();
276
  $cat_ids = array();
277
  foreach ($items as $product) {
278
+ if (in_array($request->getRequest()->getParam('mailupCategoryId'), Mage::getResourceSingleton('catalog/product')->getCategoryIds($product))) {
279
+ $tempCategory[] = $result[$count];
280
+ break 2;
281
+ }
 
282
  }
283
  }
 
 
 
 
 
 
 
284
 
285
+ unset($orders);
286
  $count++;
287
  }
288
 
365
 
366
  if ($request->getRequest()->getParam('mailupCustomerStartDate') || $request->getRequest()->getParam('mailupCustomerEndDate') ) {
367
  foreach ($customersFiltered as $customer) {
368
+ $createdAt = $customer['created_at'];
369
+ $createdAt = new DateTime($createdAt, $TIMEZONE_UTC);
370
+ $createdAt->setTimezone($TIMEZONE_STORE);
371
+ $createdAt = (string)$createdAt->format("Y-m-d H:i:s");
372
  $filterStart = '';
373
  $filterEnd = '';
374
 
376
  $date = Zend_Locale_Format::getDate($request->getRequest()->getParam('mailupCustomerStartDate'), array('locale'=>Mage::app()->getLocale()->getLocale(), 'date_format'=>Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT), 'fix_date'=>true));
377
  $date['month'] = str_pad($date['month'], 2, 0, STR_PAD_LEFT);
378
  $date['day'] = str_pad($date['day'], 2, 0, STR_PAD_LEFT);
379
+ $filterStart = "{$date['year']}-{$date['month']}-{$date['day']} 00:00:00";
380
  }
381
  if ($request->getRequest()->getParam('mailupCustomerEndDate')) {
382
  $date = Zend_Locale_Format::getDate($request->getRequest()->getParam('mailupCustomerEndDate'), array('locale'=>Mage::app()->getLocale()->getLocale(), 'date_format'=>Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT), 'fix_date'=>true));
383
  $date['month'] = str_pad($date['month'], 2, 0, STR_PAD_LEFT);
384
  $date['day'] = str_pad($date['day'], 2, 0, STR_PAD_LEFT);
385
+ $filterEnd = "{$date['year']}-{$date['month']}-{$date['day']} 23:59:59";
386
  }
387
  if ($filterStart && $filterEnd) {
388
  //compreso tra start e end date
389
+ if ($createdAt >= $filterStart and $createdAt <= $filterEnd) {
390
  $tempDate[] = $customer;
391
  }
392
  } elseif ($filterStart) {
466
 
467
  foreach ($orders->getData() as $order) {
468
  if (!in_array($order["status"], array("closed", "complete", "processing"))) continue;
469
+ $createdAt = $order['created_at'];
470
+ $createdAt = new DateTime($createdAt, $TIMEZONE_UTC);
471
+ $createdAt->setTimezone($TIMEZONE_STORE);
472
+ $createdAt = (string)$createdAt->format("Y-m-d H:i:s");
473
  $filterStart = '';
474
  $filterEnd = '';
475
 
477
  $date = Zend_Locale_Format::getDate($request->getRequest()->getParam('mailupOrderStartDate'), array('locale'=>Mage::app()->getLocale()->getLocale(), 'date_format'=>Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT), 'fix_date'=>true));
478
  $date['month'] = str_pad($date['month'], 2, 0, STR_PAD_LEFT);
479
  $date['day'] = str_pad($date['day'], 2, 0, STR_PAD_LEFT);
480
+ $filterStart = "{$date['year']}-{$date['month']}-{$date['day']} 00:00:00";
481
  }
482
  if ($request->getRequest()->getParam('mailupOrderEndDate')) {
483
  $date = Zend_Locale_Format::getDate($request->getRequest()->getParam('mailupOrderEndDate'), array('locale'=>Mage::app()->getLocale()->getLocale(), 'date_format'=>Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT), 'fix_date'=>true));
484
  $date['month'] = str_pad($date['month'], 2, 0, STR_PAD_LEFT);
485
  $date['day'] = str_pad($date['day'], 2, 0, STR_PAD_LEFT);
486
+ $filterEnd = "{$date['year']}-{$date['month']}-{$date['day']} 23:59:59";
487
  }
488
+
489
+ if ($filterStart and $filterEnd) {
490
  //compreso tra start e end date
491
+ if ($createdAt >= $filterStart and $createdAt <= $filterEnd) {
492
  $orderedDate = 1;
493
  }
494
  } elseif ($filterStart) {
app/code/local/SevenLike/MailUp/Model/Wssend.php CHANGED
@@ -8,7 +8,7 @@ class MailUpWsSend
8
  protected $domResult;
9
 
10
  function __construct() {
11
- $this->soapClient = new SoapClient($this->WSDLUrl, array('trace' => 1, 'exceptions' => 0));
12
  }
13
 
14
  function __destruct() {
@@ -301,7 +301,7 @@ class MailUpWsSend
301
  }
302
 
303
  public function testSoap() {
304
- $client = new SoapClient('http://soapclient.com/xml/soapresponder.wsdl');
305
  //print_r($client->__getFunctions());
306
  return $client->Method1('x12qaq','c56tf3');
307
  }
8
  protected $domResult;
9
 
10
  function __construct() {
11
+ $this->soapClient = new SoapClient($this->WSDLUrl, array('trace' => 1, 'exceptions' => 1, 'connection_timeout' => 10));
12
  }
13
 
14
  function __destruct() {
301
  }
302
 
303
  public function testSoap() {
304
+ $client = new SoapClient('http://soapclient.com/xml/soapresponder.wsdl', array('trace' => 1, 'exceptions' => 1, 'connection_timeout' => 10));
305
  //print_r($client->__getFunctions());
306
  return $client->Method1('x12qaq','c56tf3');
307
  }
app/code/local/SevenLike/MailUp/controllers/Adminhtml/ConfigurationController.php ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class SevenLike_MailUp_Adminhtml_ConfigurationController extends Mage_Adminhtml_Controller_Action
4
+ {
5
+ public function indexAction() {
6
+
7
+ $url = Mage::getModel('adminhtml/url');
8
+ $url = $url->getUrl("adminhtml/system_config/edit", array(
9
+ "section" => "newsletter"
10
+ ));
11
+ Mage::app()->getResponse()->setRedirect($url);
12
+ }
13
+ }
app/code/local/SevenLike/MailUp/controllers/Adminhtml/FieldsmappingController.php CHANGED
@@ -18,6 +18,9 @@ class SevenLike_MailUp_Adminhtml_FieldsMappingController extends Mage_Adminhtml_
18
  Mage::getSingleton('adminhtml/session')->addError($errorMessage);
19
  }
20
 
 
 
 
21
  $this->_redirect('*/*');
22
  }
23
  }
18
  Mage::getSingleton('adminhtml/session')->addError($errorMessage);
19
  }
20
 
21
+ $observer = Mage::getModel("mailup/observer");
22
+ $observer->configCheck();
23
+
24
  $this->_redirect('*/*');
25
  }
26
  }
app/code/local/SevenLike/MailUp/etc/config.xml CHANGED
@@ -3,7 +3,7 @@
3
  <config>
4
  <modules>
5
  <SevenLike_MailUp>
6
- <version>2.1.2</version>
7
  </SevenLike_MailUp>
8
  </modules>
9
 
@@ -19,9 +19,9 @@
19
  </mailup>
20
  </blocks>
21
  <helpers>
22
- <sintax>
23
  <class>SevenLike_MailUp_Helper</class>
24
- </sintax>
25
  </helpers>
26
  <resources>
27
  <mailup_setup>
@@ -71,6 +71,15 @@
71
  </mailupconfigsave_observer>
72
  </observers>
73
  </controller_action_postdispatch_adminhtml_system_config_save>
 
 
 
 
 
 
 
 
 
74
  </events>
75
  </global>
76
 
@@ -101,15 +110,20 @@
101
  <mailup translate="title">
102
  <title>MailUp</title>
103
  <children>
 
 
 
 
 
104
  <mailup_filters translate="title">
105
  <title>Filters</title>
106
  <action>mailup/adminhtml_filter</action>
107
- <sort_order>0</sort_order>
108
  </mailup_filters>
109
  <mailup_fieldsmapping translate="title">
110
  <title>Fields mapping</title>
111
  <action>mailup/adminhtml_fieldsmapping</action>
112
- <sort_order>5</sort_order>
113
  </mailup_fieldsmapping>
114
  </children>
115
  </mailup>
@@ -159,6 +173,17 @@
159
  </modules>
160
  </translate>
161
  </adminhtml>
 
 
 
 
 
 
 
 
 
 
 
162
 
163
  <crontab>
164
  <jobs>
3
  <config>
4
  <modules>
5
  <SevenLike_MailUp>
6
+ <version>2.1.3</version>
7
  </SevenLike_MailUp>
8
  </modules>
9
 
19
  </mailup>
20
  </blocks>
21
  <helpers>
22
+ <mailup>
23
  <class>SevenLike_MailUp_Helper</class>
24
+ </mailup>
25
  </helpers>
26
  <resources>
27
  <mailup_setup>
71
  </mailupconfigsave_observer>
72
  </observers>
73
  </controller_action_postdispatch_adminhtml_system_config_save>
74
+ <admin_session_user_login_success>
75
+ <observers>
76
+ <mailupconfigtest_observer>
77
+ <type>singleton</type>
78
+ <class>SevenLike_MailUp_Model_Observer</class>
79
+ <method>configCheck</method>
80
+ </mailupconfigtest_observer>
81
+ </observers>
82
+ </admin_session_user_login_success>
83
  </events>
84
  </global>
85
 
110
  <mailup translate="title">
111
  <title>MailUp</title>
112
  <children>
113
+ <mailup_configuration translate="title">
114
+ <title>Connect to MailUp</title>
115
+ <action>mailup/adminhtml_configuration</action>
116
+ <sort_order>100</sort_order>
117
+ </mailup_configuration>
118
  <mailup_filters translate="title">
119
  <title>Filters</title>
120
  <action>mailup/adminhtml_filter</action>
121
+ <sort_order>200</sort_order>
122
  </mailup_filters>
123
  <mailup_fieldsmapping translate="title">
124
  <title>Fields mapping</title>
125
  <action>mailup/adminhtml_fieldsmapping</action>
126
+ <sort_order>300</sort_order>
127
  </mailup_fieldsmapping>
128
  </children>
129
  </mailup>
173
  </modules>
174
  </translate>
175
  </adminhtml>
176
+ <frontend>
177
+ <translate>
178
+ <modules>
179
+ <mailup>
180
+ <files>
181
+ <default>SevenLike_MailUp.csv</default>
182
+ </files>
183
+ </mailup>
184
+ </modules>
185
+ </translate>
186
+ </frontend>
187
 
188
  <crontab>
189
  <jobs>
app/code/local/SevenLike/MailUp/etc/system.xml CHANGED
@@ -16,19 +16,21 @@
16
  <sort_order>10</sort_order>
17
  <show_in_default>1</show_in_default>
18
  <comment>It's the domain portion of the browser address field when you using the MailUp Admin console (e.g. g4a0.s03.it)</comment>
 
19
  </url_console>
20
  <username_ws translate="comment">
21
  <label>Web Service Username</label>
22
  <frontend_type>text</frontend_type>
23
  <sort_order>20</sort_order>
24
  <show_in_default>1</show_in_default>
 
25
  </username_ws>
26
  <password_ws translate="comment">
27
  <label>Web Service Password</label>
28
  <frontend_type>password</frontend_type>
29
  <sort_order>40</sort_order>
30
  <show_in_default>1</show_in_default>
31
- <comment>You can set it in your console (Manage->Web Services), then type it here</comment>
32
  </password_ws>
33
  <list translate="label comment">
34
  <label>List</label>
16
  <sort_order>10</sort_order>
17
  <show_in_default>1</show_in_default>
18
  <comment>It's the domain portion of the browser address field when you using the MailUp Admin console (e.g. g4a0.s03.it)</comment>
19
+ <backend_model>mailup/consoleurlvalidator</backend_model>
20
  </url_console>
21
  <username_ws translate="comment">
22
  <label>Web Service Username</label>
23
  <frontend_type>text</frontend_type>
24
  <sort_order>20</sort_order>
25
  <show_in_default>1</show_in_default>
26
+ <backend_model>mailup/webserviceusernamevalidator</backend_model>
27
  </username_ws>
28
  <password_ws translate="comment">
29
  <label>Web Service Password</label>
30
  <frontend_type>password</frontend_type>
31
  <sort_order>40</sort_order>
32
  <show_in_default>1</show_in_default>
33
+ <comment>For assistance visit help.mailup.com and search for "API credentials"</comment>
34
  </password_ws>
35
  <list translate="label comment">
36
  <label>List</label>
app/design/adminhtml/default/default/template/sevenlike/mailup/confirm.phtml CHANGED
@@ -68,10 +68,10 @@ $xml = simplexml_load_string($xmlLists);
68
  <div class="content-header">
69
  <table cellspacing="0" class="grid-header">
70
  <tr>
71
- <td><h3><?=$this->__('MailUp')?></h3></td>
72
  <td class="a-right">
73
- <button onclick="back_form.submit()" class="scalable back" type="button"><span><?=$this->__('Reset filters')?></span></button>
74
- <button onclick="editForm.submit()" class="scalable save" type="button"><span><?=$this->__('Send to MailUp')?></span></button>
75
  </td>
76
  </tr>
77
  </table>
@@ -87,19 +87,19 @@ $xml = simplexml_load_string($xmlLists);
87
  }
88
  }
89
  ?>
90
- <form id="edit_form" name="edit_form" method="post" action="<?=$this->getUrl('*/*/post')?>">
91
  <input name="form_key" type="hidden" value="<?php echo Mage::getSingleton('core/session')->getFormKey() ?>" />
92
  <input name="mailupIdList" type="hidden" value="<?php echo $idList; ?>" />
93
  <input name="mailupListGUID" type="hidden" value="<?php echo $listGUID; ?>" />
94
 
95
- <h4><span id="spantitle3"><?=$this->__('Confirm filtered customers and select MailUp group')?></span></h4>
96
  <fieldset id="my-fieldset">
97
  <table cellspacing="0" class="form-list">
98
  <tr>
99
- <td colspan="2"><h4><?=$this->__('Were found')?> <strong><?php echo $countPost; ?></strong> <?=$this->__('records')?></h4></td>
100
  </tr>
101
  <tr>
102
- <td><?=$this->__('Filtered customers')?>:</td>
103
  </tr>
104
  <tr>
105
  <td>
@@ -113,7 +113,7 @@ $xml = simplexml_load_string($xmlLists);
113
  </tr>
114
  <tr>
115
  <td colspan="2">
116
- <?=$this->__('Selected list')?>: <strong>
117
  <?php echo $listName; ?><br /><br /><br />
118
  </strong></td>
119
  </tr>
@@ -122,17 +122,17 @@ $xml = simplexml_load_string($xmlLists);
122
  <table>
123
  <tr>
124
  <td>
125
- <h4><?=$this->__('Next Step')?></h4>
126
  </td>
127
  </tr>
128
  <tr>
129
  <td class="label">
130
- <p class="slgrp1"><?=$this->__('Select group')?> <input type="radio" name="mailupNewGroup" value="0" checked="checked" /></p>
131
  </td>
132
  </tr>
133
  <tr>
134
  <td class="input-ele">
135
- <p class="istrz1"><?=$this->__('Select an existing group')?>:</p>
136
  <select class="required-entry slctpg1" name="mailupGroupId">
137
  <?php
138
  $groups = array();
@@ -154,17 +154,17 @@ $xml = simplexml_load_string($xmlLists);
154
  </tr>
155
  <tr>
156
  <td>
157
- <p class="istrz2"><?=$this->__('or')?></p>
158
  </td>
159
  </tr>
160
  <tr>
161
  <td class="label">
162
- <p class="slgrp1"><?=$this->__('Create new customer group')?> <input type="radio" name="mailupNewGroup" value="1" /></p>
163
  </td>
164
  </tr>
165
  <tr>
166
  <td>
167
- <p class="istrz1"><?=$this->__('Group name')?>:</p>
168
  </td>
169
  </tr>
170
  <tr>
@@ -177,14 +177,14 @@ $xml = simplexml_load_string($xmlLists);
177
  </form>
178
 
179
  <?php //form per la modifica manuale delle email ?>
180
- <form id="manual_form" name="manual_form" method="post" action="<?=$this->getUrl('*/*/confirm')?>">
181
  <input name="form_key" type="hidden" value="<?php echo Mage::getSingleton('core/session')->getFormKey() ?>" />
182
- <h4><span id="spantitle4"><?=$this->__('Add a new e-mail address or select adresses to be removed from list')?></span></h4>
183
  <fieldset id="my-fieldset">
184
  <table cellspacing="5" class="form-list">
185
  <tr>
186
  <td>
187
- <?=$this->__('Change members list: please add one email adress per row')?>
188
  </td>
189
  <td>
190
  <textarea name="mailupCustomerFilteredMod" rows="20" cols="50" class="txtar1"><?php echo $textArea;?></textarea>
@@ -193,7 +193,7 @@ $xml = simplexml_load_string($xmlLists);
193
  <tr>
194
  <td>&nbsp;</td>
195
  <td>
196
- <button onclick="manual_form.submit()" class="scalable save" type="button"><span><?=$this->__('Save changes')?></span></button><!-- <input type="submit" value="Applica modifiche"> -->
197
  </td>
198
  </tr>
199
  </table>
68
  <div class="content-header">
69
  <table cellspacing="0" class="grid-header">
70
  <tr>
71
+ <td><h3><?php echo $this->__('MailUp')?></h3></td>
72
  <td class="a-right">
73
+ <button onclick="back_form.submit()" class="scalable back" type="button"><span><?php echo $this->__('Reset filters')?></span></button>
74
+ <button onclick="editForm.submit()" class="scalable save" type="button"><span><?php echo $this->__('Send to MailUp')?></span></button>
75
  </td>
76
  </tr>
77
  </table>
87
  }
88
  }
89
  ?>
90
+ <form id="edit_form" name="edit_form" method="post" action="<?php echo $this->getUrl('*/*/post')?>">
91
  <input name="form_key" type="hidden" value="<?php echo Mage::getSingleton('core/session')->getFormKey() ?>" />
92
  <input name="mailupIdList" type="hidden" value="<?php echo $idList; ?>" />
93
  <input name="mailupListGUID" type="hidden" value="<?php echo $listGUID; ?>" />
94
 
95
+ <h4><span id="spantitle3"><?php echo $this->__('Confirm filtered customers and select MailUp group')?></span></h4>
96
  <fieldset id="my-fieldset">
97
  <table cellspacing="0" class="form-list">
98
  <tr>
99
+ <td colspan="2"><h4><?php echo $this->__('Were found')?> <strong><?php echo $countPost; ?></strong> <?php echo $this->__('records')?></h4></td>
100
  </tr>
101
  <tr>
102
+ <td><?php echo $this->__('Filtered customers')?>:</td>
103
  </tr>
104
  <tr>
105
  <td>
113
  </tr>
114
  <tr>
115
  <td colspan="2">
116
+ <?php echo $this->__('Selected list')?>: <strong>
117
  <?php echo $listName; ?><br /><br /><br />
118
  </strong></td>
119
  </tr>
122
  <table>
123
  <tr>
124
  <td>
125
+ <h4><?php echo $this->__('Next Step')?></h4>
126
  </td>
127
  </tr>
128
  <tr>
129
  <td class="label">
130
+ <p class="slgrp1"><?php echo $this->__('Select group')?> <input type="radio" name="mailupNewGroup" value="0" checked="checked" /></p>
131
  </td>
132
  </tr>
133
  <tr>
134
  <td class="input-ele">
135
+ <p class="istrz1"><?php echo $this->__('Select an existing group')?>:</p>
136
  <select class="required-entry slctpg1" name="mailupGroupId">
137
  <?php
138
  $groups = array();
154
  </tr>
155
  <tr>
156
  <td>
157
+ <p class="istrz2"><?php echo $this->__('or')?></p>
158
  </td>
159
  </tr>
160
  <tr>
161
  <td class="label">
162
+ <p class="slgrp1"><?php echo $this->__('Create new customer group')?> <input type="radio" name="mailupNewGroup" value="1" /></p>
163
  </td>
164
  </tr>
165
  <tr>
166
  <td>
167
+ <p class="istrz1"><?php echo $this->__('Group name')?>:</p>
168
  </td>
169
  </tr>
170
  <tr>
177
  </form>
178
 
179
  <?php //form per la modifica manuale delle email ?>
180
+ <form id="manual_form" name="manual_form" method="post" action="<?php echo $this->getUrl('*/*/confirm')?>">
181
  <input name="form_key" type="hidden" value="<?php echo Mage::getSingleton('core/session')->getFormKey() ?>" />
182
+ <h4><span id="spantitle4"><?php echo $this->__('Add a new e-mail address or select adresses to be removed from list')?></span></h4>
183
  <fieldset id="my-fieldset">
184
  <table cellspacing="5" class="form-list">
185
  <tr>
186
  <td>
187
+ <?php echo $this->__('Change members list: please add one email adress per row')?>
188
  </td>
189
  <td>
190
  <textarea name="mailupCustomerFilteredMod" rows="20" cols="50" class="txtar1"><?php echo $textArea;?></textarea>
193
  <tr>
194
  <td>&nbsp;</td>
195
  <td>
196
+ <button onclick="manual_form.submit()" class="scalable save" type="button"><span><?php echo $this->__('Save changes')?></span></button><!-- <input type="submit" value="Applica modifiche"> -->
197
  </td>
198
  </tr>
199
  </table>
app/design/adminhtml/default/default/template/sevenlike/mailup/fieldsmapping.phtml CHANGED
@@ -22,10 +22,10 @@ if ($accessKey === false) {
22
  <table cellspacing="0" class="grid-header">
23
  <tr>
24
  <td>
25
- <h3><?=$this->__('Fields mapping')?></h3>
26
  </td>
27
  <td class="a-right">
28
- <button onclick="document.forms.saveFieldsMappingForm.submit()" class="scalable save" type="button"><span><?=$this->__('Save configuration')?></span></button>
29
  </td>
30
  </tr>
31
  </table>
22
  <table cellspacing="0" class="grid-header">
23
  <tr>
24
  <td>
25
+ <h3><?php echo $this->__('Fields mapping')?></h3>
26
  </td>
27
  <td class="a-right">
28
+ <button onclick="document.forms.saveFieldsMappingForm.submit()" class="scalable save" type="button"><span><?php echo $this->__('Save configuration')?></span></button>
29
  </td>
30
  </tr>
31
  </table>
app/design/adminhtml/default/default/template/sevenlike/mailup/filter.phtml CHANGED
@@ -76,53 +76,52 @@ if ($accessKey === false || strlen(Mage::getStoreConfig('newsletter/mailup/list'
76
  <table cellspacing="0" class="grid-header">
77
  <tr>
78
  <td>
79
- <h3><?=$this->__('MailUp')?></h3>
80
  </td>
81
  <td class="a-right">
82
- <button onclick="editForm.submit()" class="scalable save" type="button"><span><?=$this->__('Apply filter')?></span></button>
83
  </td>
84
  </tr>
85
  </table>
86
  </div>
87
 
88
  <div class="entry-edit">
89
- <form id="edit_form" name="edit_form" method="post" action="<?=$this->getUrl('*/*/confirm')?>">
90
  <input name="form_key" type="hidden" value="<?php echo Mage::getSingleton('core/session')->getFormKey() ?>" />
91
 
92
  <input name="filter_name" id="filter_name" type="hidden" value="" />
93
 
94
- <h4><span id="spantitle2"><?=$this->__('Filter customers')?></span><span id="spansugger"><a href="#ottsugg"><?=$this->__('Get hints')?> &rArr;</a></span></h4>
95
- <div style="clear: both;"></div>
96
  <fieldset id="my-fieldset">
97
  <table cellspacing="0" class="form-list">
98
  <tr>
99
- <td colspan="3"><?=$this->__('By this plugin you can import contacts registered in your eCommerce in the MailUp platform.')?></td>
100
  </tr>
101
  <tr>
102
  <td colspan="3">&nbsp;</td>
103
  </tr>
104
  <tr>
105
  <td colspan="3">
106
- <strong><?=$this->__('Sold products')?></strong>
107
  </td>
108
  </tr>
109
  <?php //imposto il filtro per clienti: 0 = tutti, 1 = che hanno acquistato, 2 = che non hanno mai acquistato ?>
110
  <tr>
111
  <td class="input-ele spdnpg1">
112
- <input type="radio" name="mailupCustomers" id="mailupCustomersAll" value="0" <?php if (isset($mailupCustomers) && $mailupCustomers == 0) { echo 'checked="checked"'; } ?> onclick="customerDependentFilters(false);" />&nbsp;<label for="mailupCustomersAll"><?=$this->__('All customers')?></label>
113
  </td>
114
 
115
  <td class="input-ele spdnpg1">
116
- <input type="radio" name="mailupCustomers" id="mailupCustomersWhoHaveBought" value="1" <?php if (isset($mailupCustomers) && $mailupCustomers == 1) { echo 'checked="checked"'; } ?> onclick="customerDependentFilters(false);" />&nbsp;<label for="mailupCustomersWhoHaveBought"><?=$this->__('Customers who have purchased')?></label>
117
  </td>
118
 
119
  <td class="input-ele spdnpg1">
120
- <input type="radio" name="mailupCustomers" id="mailupCustomersWhoHaventBought" value="2" <?php if (isset($mailupCustomers) && $mailupCustomers == 2) { echo 'checked="checked"'; } ?> onclick="customerDependentFilters(true);" />&nbsp;<label for="mailupCustomersWhoHaventBought"><?=$this->__("Customers who have not purchased")?></label>
121
  </td>
122
  </tr>
123
  <tr>
124
  <td colspan="3">
125
- <strong><?=$this->__('Opt-in Status')?></strong>
126
  </td>
127
  </tr>
128
  <tr>
@@ -130,7 +129,7 @@ if ($accessKey === false || strlen(Mage::getStoreConfig('newsletter/mailup/list'
130
  <input type="radio" name="mailupSubscribed" id="mailupSubscribedOptIn" value="1" <?php if (isset($mailupSubscribed) && $mailupSubscribed == 1) { echo 'checked="checked"'; } ?> />&nbsp;<label for="mailupSubscribedOptIn"><?php echo $this->__("Opted-in Only"); ?></label>
131
  </td>
132
  <td colspan="2">
133
- <input type="radio" name="mailupSubscribed" id="mailupSubscribedAllCustomers" value="0" <?php if (isset($mailupCustomers) && $mailupCustomers == 0) { echo 'checked="checked"'; } ?> />&nbsp;<label for="mailupSubscribedAllCustomers"><?=$this->__("All customers")?></label>
134
  </td>
135
  </tr>
136
  </table>
@@ -140,11 +139,11 @@ if ($accessKey === false || strlen(Mage::getStoreConfig('newsletter/mailup/list'
140
  <table cellspacing="0" class="form-list">
141
  <tr>
142
  <td colspan="2">
143
- <strong><?=$this->__('Groups')?></strong>
144
  </td>
145
  </tr>
146
  <tr>
147
- <td class="labelpg1"><?=$this->__('Select customer group')?></td>
148
  <td class="input-ele">
149
  <select name="mailupCustomerGroupId" class="slctpg1">
150
  <?php
@@ -159,7 +158,7 @@ if ($accessKey === false || strlen(Mage::getStoreConfig('newsletter/mailup/list'
159
  }
160
  ?>
161
 
162
- <option value="0">-- <?=$this->__('Any')?> --</option>
163
 
164
  <?php
165
  foreach ($customerGroups as $customerGroup) {
@@ -172,11 +171,11 @@ if ($accessKey === false || strlen(Mage::getStoreConfig('newsletter/mailup/list'
172
 
173
  <tr>
174
  <td colspan="2">
175
- <br /><br /><strong><?=$this->__('Location')?></strong>
176
  </td>
177
  </tr>
178
  <tr>
179
- <td class="labelpg1"><?=$this->__('Select country')?></td>
180
  <td class="input-ele">
181
  <select name="mailupCountry" class="slctpg1">
182
  <?php
@@ -192,7 +191,7 @@ if ($accessKey === false || strlen(Mage::getStoreConfig('newsletter/mailup/list'
192
  }
193
  ?>
194
 
195
- <option value="0">-- <?=$this->__('Any')?> --</option>
196
 
197
  <?php
198
  foreach ($countries as $country) {
@@ -203,9 +202,9 @@ if ($accessKey === false || strlen(Mage::getStoreConfig('newsletter/mailup/list'
203
  </td>
204
  </tr>
205
  <tr>
206
- <td class="labelpg1"><?=$this->__('Zip code')?></td>
207
  <td class="input-ele">
208
- <input type="text" class="inptptx1" name="mailupPostCode" size="10" value="<?php echo $mailupPostCode; ?>" /> <span class="tip">(<?=$this->__('e.g.')?> 12345)</span>
209
  </td>
210
  </tr>
211
  </table>
@@ -213,20 +212,20 @@ if ($accessKey === false || strlen(Mage::getStoreConfig('newsletter/mailup/list'
213
  <table cellspacing="0" class="form-list" id="customerDependentContainer">
214
  <tr>
215
  <td colspan="2">
216
- <br /><br /><strong><?=$this->__('Products and categories')?></strong>
217
  </td>
218
  </tr>
219
 
220
  <?php //select con tutti i prodotti ?>
221
  <tr>
222
- <td class="labelpg1"><?=$this->__('Insert product SKU')?></td>
223
  <td class="input-ele">
224
- <input type="text" class="inptptx1 customerDependent" name="mailupProductSku" size="20" value="<?php echo $mailupProductSku; ?>" /> <span class="tip">(<?=$this->__('e.g.')?> MYSKU123)</span>
225
  </td>
226
  </tr>
227
  <?php //select con tutte le categorie ?>
228
  <tr>
229
- <td class="labelpg1"><?=$this->__('Select category')?></td>
230
  <td class="input-ele">
231
  <?php
232
  $categoriesCollection = Mage::getModel('catalog/category')->getCollection();
@@ -241,7 +240,7 @@ if ($accessKey === false || strlen(Mage::getStoreConfig('newsletter/mailup/list'
241
  }
242
  ?>
243
 
244
- <option value="0">-- <?=$this->__('Any')?> --</option>
245
 
246
  <?php
247
  foreach ($categoriesCollection as $category) {
@@ -256,11 +255,11 @@ if ($accessKey === false || strlen(Mage::getStoreConfig('newsletter/mailup/list'
256
 
257
  <tr>
258
  <td colspan="2">
259
- <br /><br /><strong><?=$this->__('Subscription date')?></strong>
260
  </td>
261
  </tr>
262
  <tr>
263
- <td class="labelpg1"><?=$this->__('From')?></td>
264
  <td class="input-ele">
265
  <input type="text" class="inptptx1 customerDependent" name="mailupCustomerStartDate" id="mailupCustomerStartDate" size="20" value="<?php echo $mailupCustomerStartDate; ?>" /><img id="mailupCustomerStartDateTrig" class="v-middle" alt="" src="/skin/adminhtml/default/default/images/grid-cal.gif"> <span class="tip">(<?php echo Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT) ?>)</span>
266
  <script type="text/javascript">
@@ -276,7 +275,7 @@ if ($accessKey === false || strlen(Mage::getStoreConfig('newsletter/mailup/list'
276
  </td>
277
  </tr>
278
  <tr>
279
- <td class="labelpg1"><?=$this->__('To')?></td>
280
  <td class="input-ele">
281
  <input type="text" class="inptptx1 customerDependent" name="mailupCustomerEndDate" id="mailupCustomerEndDate" size="20" value="<?php echo $mailupCustomerEndDate; ?>" /><img id="mailupCustomerEndDateTrig" class="v-middle" alt="" src="/skin/adminhtml/default/default/images/grid-cal.gif"> <span class="tip">(<?php echo Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT) ?>)</span>
282
  <script type="text/javascript">
@@ -293,11 +292,11 @@ if ($accessKey === false || strlen(Mage::getStoreConfig('newsletter/mailup/list'
293
  </tr>
294
  <tr>
295
  <td colspan="2">
296
- <br /><br /><strong><?=$this->__('Total purchased amount')?></strong>
297
  </td>
298
  </tr>
299
  <tr>
300
- <td class="labelpg1"><?=$this->__('Order total')?></td>
301
  <td class="input-ele">
302
  <select id="mailupTotalAmountCond" name="mailupTotalAmountCond" class="slctpg2 customerDependent">
303
  <?php
@@ -309,24 +308,24 @@ if ($accessKey === false || strlen(Mage::getStoreConfig('newsletter/mailup/list'
309
  }
310
  }
311
  ?>
312
- <option value="gt"> <?=$this->__('more than')?> </option>
313
- <option value="lt"> <?=$this->__('less than')?> </option>
314
- <option value="eq"> <?=$this->__('same as')?> </option>
315
  </select>
316
 
317
- <!--label for="mailupTotalAmountValue" class="lbl1"><?=$this->__('Specify amount')?></label-->&nbsp;
318
- <input type="text" class="inptptx1 customerDependent" id="mailupTotalAmountValue" name="mailupTotalAmountValue" size="20" value="<?php echo $mailupTotalAmountValue; ?>" /> <span class="tip">(<?=$this->__('e.g.')?> 50)</span>
319
  </td>
320
  </tr>
321
 
322
  <tr>
323
  <td colspan="2">
324
- <br /><br /><strong><?=$this->__('Date of purchase')?></strong>
325
  </td>
326
  </tr>
327
 
328
  <tr>
329
- <td><?=$this->__('Show customers who'); ?></td>
330
  <td>
331
  <select name="mailupOrderYesNo" class="slctpg2 customerDependent">
332
  <?php
@@ -334,14 +333,14 @@ if ($accessKey === false || strlen(Mage::getStoreConfig('newsletter/mailup/list'
334
  echo '<option value="no">'.$this->__("Haven't purchased").'</option>';
335
  }
336
  ?>
337
- <option value="yes"> <?=$this->__('Have purchased'); ?> </option>
338
- <option value="no"> <?=$this->__("Haven't purchased"); ?> </option>
339
  </select>
340
  </td>
341
  </tr>
342
 
343
  <tr>
344
- <td class="labelpg1"><?=$this->__('From')?></td>
345
  <td class="input-ele">
346
  <input type="text" class="inptptx1 customerDependent" name="mailupOrderStartDate" id="mailupOrderStartDate" size="20" value="<?php echo $mailupOrderStartDate; ?>" /><img id="mailupOrderStartDateTrig" class="v-middle" alt="" src="/skin/adminhtml/default/default/images/grid-cal.gif"> <span class="tip">(<?php echo Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT) ?>)</span>
347
  <script type="text/javascript">
@@ -357,7 +356,7 @@ if ($accessKey === false || strlen(Mage::getStoreConfig('newsletter/mailup/list'
357
  </td>
358
  </tr>
359
  <tr>
360
- <td class="labelpg1"><?=$this->__('To')?></td>
361
  <td class="input-ele">
362
  <input type="text" class="inptptx1 customerDependent" name="mailupOrderEndDate" id="mailupOrderEndDate" size="20" value="<?php echo $mailupOrderEndDate; ?>" /><img id="mailupOrderEndDateTrig" class="v-middle" alt="" src="/skin/adminhtml/default/default/images/grid-cal.gif"> <span class="tip">(<?php echo Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT) ?>)</span>
363
  <script type="text/javascript">
@@ -376,23 +375,23 @@ if ($accessKey === false || strlen(Mage::getStoreConfig('newsletter/mailup/list'
376
  </fieldset>
377
  </form>
378
 
379
- <h4><span id="spantitle3"><a name="saveFilter"><?=$this->__('Save current filters as hint')?></a></span></h4>
380
  <fieldset id="my-fieldset3">
381
  <table>
382
  <tr>
383
  <td>
384
  <input name="filter_name_text" id="filter_name_text" type="text" value="" maxlength="100" size="50" />
385
- <input class="form-button" type="submit" onclick="saveFilterHint();return false;" value="<?=$this->__('Save hint')?>" />
386
  </td>
387
  </tr>
388
  </table>
389
  </fieldset>
390
 
391
- <h4><span id="spantitle1"><a name="ottsugg"><?=$this->__('Filter hints')?></a></span></h4>
392
  <fieldset id="my-fieldset2">
393
  <table cellspacing="0" class="form-list">
394
  <tr>
395
- <td><?=$this->__('Set and customize one of the following filters:')?></td>
396
  </tr>
397
  <tr>
398
  <td>
@@ -400,8 +399,8 @@ if ($accessKey === false || strlen(Mage::getStoreConfig('newsletter/mailup/list'
400
  <input name="form_key" type="hidden" value="<?php echo Mage::getSingleton('core/session')->getFormKey() ?>" />
401
  <input name="mailupCustomers" type="hidden" value="2" />
402
  <input name="mailupCustomerGroupId" type="hidden" value="2" />
403
- <p class="parscefil"><?=$this->__("All wholesale customers who haven't purchased yet")?> &raquo;</p>
404
- <input class="form-button" type="submit" value="<?=$this->__('Set hint')?>" />
405
  </form>
406
  </td>
407
  </tr>
@@ -412,8 +411,8 @@ if ($accessKey === false || strlen(Mage::getStoreConfig('newsletter/mailup/list'
412
  <input name="mailupCustomers" type="hidden" value="1" />
413
  <input name="mailupTotalAmountCond" type="hidden" value="gt" />
414
  <input name="mailupTotalAmountValue" type="hidden" value="50" />
415
- <p class="parscefil"><?=$this->__('More than 50 Euros orders')?> &raquo;</p>
416
- <input class="form-button" type="submit" value="<?=$this->__('Set hint')?>" />
417
  </form>
418
  </td>
419
  </tr>
@@ -424,8 +423,8 @@ if ($accessKey === false || strlen(Mage::getStoreConfig('newsletter/mailup/list'
424
  <input name="mailupCustomers" type="hidden" value="0" />
425
  <input name="mailupOrderYesNo" type="hidden" value="no" />
426
  <input name="mailupOrderStartDate" type="hidden" value="01/01/<?php echo date('Y'); ?>" />
427
- <p class="parscefil"><?=$this->__('Members with no purchase in')?> <?php echo date('Y'); ?> &raquo;</p>
428
- <input class="form-button" type="submit" value="<?=$this->__('Set hint')?>" />
429
  </form>
430
 
431
  </td>
@@ -436,7 +435,7 @@ if ($accessKey === false || strlen(Mage::getStoreConfig('newsletter/mailup/list'
436
  <td>&nbsp;</td>
437
  </tr>
438
  <tr>
439
- <td><?=$this->__('Or choose one of those you saved:')?></td>
440
  </tr>
441
  <?php } ?>
442
 
@@ -466,8 +465,8 @@ if ($accessKey === false || strlen(Mage::getStoreConfig('newsletter/mailup/list'
466
  </table>
467
  </fieldset>
468
 
469
- <!--<a href="<?=$this->getUrl('*/*/testCron')?>">TEST CRON</a>
470
- <a href="<?=$this->getUrl('*/*/testFields')?>">TEST GETFIELDS</a>-->
471
  </div>
472
  <script type="text/javascript">
473
  var editForm = new varienForm('edit_form');
@@ -500,10 +499,10 @@ if ($accessKey === false || strlen(Mage::getStoreConfig('newsletter/mailup/list'
500
 
501
  function saveFilterHint() {
502
  if (document.getElementById('filter_name_text').value=='') {
503
- alert('<?=$this->__('Please, give your new hint a name.')?>');
504
  } else {
505
  document.getElementById('filter_name').value = document.getElementById('filter_name_text').value;
506
- document.getElementById('edit_form').action = '<?=$this->getUrl('*/*/saveFilterHint')?>';
507
  document.getElementById('edit_form').submit();
508
  }
509
  return false;
76
  <table cellspacing="0" class="grid-header">
77
  <tr>
78
  <td>
79
+ <h3><?php echo $this->__('Filters')?></h3>
80
  </td>
81
  <td class="a-right">
82
+ <button onclick="editForm.submit()" class="scalable save" type="button"><span><?php echo $this->__('Apply filter')?></span></button>
83
  </td>
84
  </tr>
85
  </table>
86
  </div>
87
 
88
  <div class="entry-edit">
89
+ <form id="edit_form" name="edit_form" method="post" action="<?php echo $this->getUrl('*/*/confirm')?>">
90
  <input name="form_key" type="hidden" value="<?php echo Mage::getSingleton('core/session')->getFormKey() ?>" />
91
 
92
  <input name="filter_name" id="filter_name" type="hidden" value="" />
93
 
94
+ <p id="spansugger"><a href="#ottsugg"><?php echo $this->__('Get hints')?> &rArr;</a></p>
 
95
  <fieldset id="my-fieldset">
96
  <table cellspacing="0" class="form-list">
97
  <tr>
98
+ <td colspan="3"><?php echo $this->__('By this plugin you can import contacts registered in your eCommerce in the MailUp platform.')?></td>
99
  </tr>
100
  <tr>
101
  <td colspan="3">&nbsp;</td>
102
  </tr>
103
  <tr>
104
  <td colspan="3">
105
+ <strong><?php echo $this->__('Sold products')?></strong>
106
  </td>
107
  </tr>
108
  <?php //imposto il filtro per clienti: 0 = tutti, 1 = che hanno acquistato, 2 = che non hanno mai acquistato ?>
109
  <tr>
110
  <td class="input-ele spdnpg1">
111
+ <input type="radio" name="mailupCustomers" id="mailupCustomersAll" value="0" <?php if (isset($mailupCustomers) && $mailupCustomers == 0) { echo 'checked="checked"'; } ?> onclick="customerDependentFilters(false);" />&nbsp;<label for="mailupCustomersAll"><?php echo $this->__('All customers')?></label>
112
  </td>
113
 
114
  <td class="input-ele spdnpg1">
115
+ <input type="radio" name="mailupCustomers" id="mailupCustomersWhoHaveBought" value="1" <?php if (isset($mailupCustomers) && $mailupCustomers == 1) { echo 'checked="checked"'; } ?> onclick="customerDependentFilters(false);" />&nbsp;<label for="mailupCustomersWhoHaveBought"><?php echo $this->__('Customers who have purchased')?></label>
116
  </td>
117
 
118
  <td class="input-ele spdnpg1">
119
+ <input type="radio" name="mailupCustomers" id="mailupCustomersWhoHaventBought" value="2" <?php if (isset($mailupCustomers) && $mailupCustomers == 2) { echo 'checked="checked"'; } ?> onclick="customerDependentFilters(true);" />&nbsp;<label for="mailupCustomersWhoHaventBought"><?php echo $this->__("Customers who have not purchased")?></label>
120
  </td>
121
  </tr>
122
  <tr>
123
  <td colspan="3">
124
+ <strong><?php echo $this->__('Opt-in Status')?></strong>
125
  </td>
126
  </tr>
127
  <tr>
129
  <input type="radio" name="mailupSubscribed" id="mailupSubscribedOptIn" value="1" <?php if (isset($mailupSubscribed) && $mailupSubscribed == 1) { echo 'checked="checked"'; } ?> />&nbsp;<label for="mailupSubscribedOptIn"><?php echo $this->__("Opted-in Only"); ?></label>
130
  </td>
131
  <td colspan="2">
132
+ <input type="radio" name="mailupSubscribed" id="mailupSubscribedAllCustomers" value="0" <?php if (isset($mailupCustomers) && $mailupCustomers == 0) { echo 'checked="checked"'; } ?> />&nbsp;<label for="mailupSubscribedAllCustomers"><?php echo $this->__("All customers")?></label>
133
  </td>
134
  </tr>
135
  </table>
139
  <table cellspacing="0" class="form-list">
140
  <tr>
141
  <td colspan="2">
142
+ <strong><?php echo $this->__('Groups')?></strong>
143
  </td>
144
  </tr>
145
  <tr>
146
+ <td class="labelpg1"><?php echo $this->__('Select customer group')?></td>
147
  <td class="input-ele">
148
  <select name="mailupCustomerGroupId" class="slctpg1">
149
  <?php
158
  }
159
  ?>
160
 
161
+ <option value="0">-- <?php echo $this->__('Any')?> --</option>
162
 
163
  <?php
164
  foreach ($customerGroups as $customerGroup) {
171
 
172
  <tr>
173
  <td colspan="2">
174
+ <br /><br /><strong><?php echo $this->__('Location')?></strong>
175
  </td>
176
  </tr>
177
  <tr>
178
+ <td class="labelpg1"><?php echo $this->__('Select country')?></td>
179
  <td class="input-ele">
180
  <select name="mailupCountry" class="slctpg1">
181
  <?php
191
  }
192
  ?>
193
 
194
+ <option value="0">-- <?php echo $this->__('Any')?> --</option>
195
 
196
  <?php
197
  foreach ($countries as $country) {
202
  </td>
203
  </tr>
204
  <tr>
205
+ <td class="labelpg1"><?php echo $this->__('Zip code')?></td>
206
  <td class="input-ele">
207
+ <input type="text" class="inptptx1" name="mailupPostCode" size="10" value="<?php echo $mailupPostCode; ?>" /> <span class="tip">(<?php echo $this->__('e.g.')?> 12345)</span>
208
  </td>
209
  </tr>
210
  </table>
212
  <table cellspacing="0" class="form-list" id="customerDependentContainer">
213
  <tr>
214
  <td colspan="2">
215
+ <br /><br /><strong><?php echo $this->__('Products and categories')?></strong>
216
  </td>
217
  </tr>
218
 
219
  <?php //select con tutti i prodotti ?>
220
  <tr>
221
+ <td class="labelpg1"><?php echo $this->__('Insert product SKU')?></td>
222
  <td class="input-ele">
223
+ <input type="text" class="inptptx1 customerDependent" name="mailupProductSku" size="20" value="<?php echo $mailupProductSku; ?>" /> <span class="tip">(<?php echo $this->__('e.g.')?> MYSKU123)</span>
224
  </td>
225
  </tr>
226
  <?php //select con tutte le categorie ?>
227
  <tr>
228
+ <td class="labelpg1"><?php echo $this->__('Select category')?></td>
229
  <td class="input-ele">
230
  <?php
231
  $categoriesCollection = Mage::getModel('catalog/category')->getCollection();
240
  }
241
  ?>
242
 
243
+ <option value="0">-- <?php echo $this->__('Any')?> --</option>
244
 
245
  <?php
246
  foreach ($categoriesCollection as $category) {
255
 
256
  <tr>
257
  <td colspan="2">
258
+ <br /><br /><strong><?php echo $this->__('Subscription date')?></strong>
259
  </td>
260
  </tr>
261
  <tr>
262
+ <td class="labelpg1"><?php echo $this->__('From')?></td>
263
  <td class="input-ele">
264
  <input type="text" class="inptptx1 customerDependent" name="mailupCustomerStartDate" id="mailupCustomerStartDate" size="20" value="<?php echo $mailupCustomerStartDate; ?>" /><img id="mailupCustomerStartDateTrig" class="v-middle" alt="" src="/skin/adminhtml/default/default/images/grid-cal.gif"> <span class="tip">(<?php echo Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT) ?>)</span>
265
  <script type="text/javascript">
275
  </td>
276
  </tr>
277
  <tr>
278
+ <td class="labelpg1"><?php echo $this->__('To')?></td>
279
  <td class="input-ele">
280
  <input type="text" class="inptptx1 customerDependent" name="mailupCustomerEndDate" id="mailupCustomerEndDate" size="20" value="<?php echo $mailupCustomerEndDate; ?>" /><img id="mailupCustomerEndDateTrig" class="v-middle" alt="" src="/skin/adminhtml/default/default/images/grid-cal.gif"> <span class="tip">(<?php echo Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT) ?>)</span>
281
  <script type="text/javascript">
292
  </tr>
293
  <tr>
294
  <td colspan="2">
295
+ <br /><br /><strong><?php echo $this->__('Total purchased amount')?></strong>
296
  </td>
297
  </tr>
298
  <tr>
299
+ <td class="labelpg1"><?php echo $this->__('Order total')?></td>
300
  <td class="input-ele">
301
  <select id="mailupTotalAmountCond" name="mailupTotalAmountCond" class="slctpg2 customerDependent">
302
  <?php
308
  }
309
  }
310
  ?>
311
+ <option value="gt"> <?php echo $this->__('more than')?> </option>
312
+ <option value="lt"> <?php echo $this->__('less than')?> </option>
313
+ <option value="eq"> <?php echo $this->__('same as')?> </option>
314
  </select>
315
 
316
+ <!--label for="mailupTotalAmountValue" class="lbl1"><?php echo $this->__('Specify amount')?></label-->&nbsp;
317
+ <input type="text" class="inptptx1 customerDependent" id="mailupTotalAmountValue" name="mailupTotalAmountValue" size="20" value="<?php echo $mailupTotalAmountValue; ?>" /> <span class="tip">(<?php echo $this->__('e.g.')?> 50)</span>
318
  </td>
319
  </tr>
320
 
321
  <tr>
322
  <td colspan="2">
323
+ <br /><br /><strong><?php echo $this->__('Date of purchase')?></strong>
324
  </td>
325
  </tr>
326
 
327
  <tr>
328
+ <td><?php echo $this->__('Show customers who'); ?></td>
329
  <td>
330
  <select name="mailupOrderYesNo" class="slctpg2 customerDependent">
331
  <?php
333
  echo '<option value="no">'.$this->__("Haven't purchased").'</option>';
334
  }
335
  ?>
336
+ <option value="yes"> <?php echo $this->__('Have purchased'); ?> </option>
337
+ <option value="no"> <?php echo $this->__("Haven't purchased"); ?> </option>
338
  </select>
339
  </td>
340
  </tr>
341
 
342
  <tr>
343
+ <td class="labelpg1"><?php echo $this->__('From')?></td>
344
  <td class="input-ele">
345
  <input type="text" class="inptptx1 customerDependent" name="mailupOrderStartDate" id="mailupOrderStartDate" size="20" value="<?php echo $mailupOrderStartDate; ?>" /><img id="mailupOrderStartDateTrig" class="v-middle" alt="" src="/skin/adminhtml/default/default/images/grid-cal.gif"> <span class="tip">(<?php echo Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT) ?>)</span>
346
  <script type="text/javascript">
356
  </td>
357
  </tr>
358
  <tr>
359
+ <td class="labelpg1"><?php echo $this->__('To')?></td>
360
  <td class="input-ele">
361
  <input type="text" class="inptptx1 customerDependent" name="mailupOrderEndDate" id="mailupOrderEndDate" size="20" value="<?php echo $mailupOrderEndDate; ?>" /><img id="mailupOrderEndDateTrig" class="v-middle" alt="" src="/skin/adminhtml/default/default/images/grid-cal.gif"> <span class="tip">(<?php echo Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT) ?>)</span>
362
  <script type="text/javascript">
375
  </fieldset>
376
  </form>
377
 
378
+ <h4><span id="spantitle3"><a name="saveFilter"><?php echo $this->__('Save current filters as hint')?></a></span></h4>
379
  <fieldset id="my-fieldset3">
380
  <table>
381
  <tr>
382
  <td>
383
  <input name="filter_name_text" id="filter_name_text" type="text" value="" maxlength="100" size="50" />
384
+ <input class="form-button" type="submit" onclick="saveFilterHint();return false;" value="<?php echo $this->__('Save hint')?>" />
385
  </td>
386
  </tr>
387
  </table>
388
  </fieldset>
389
 
390
+ <h4><span id="spantitle1"><a name="ottsugg"><?php echo $this->__('Filter hints')?></a></span></h4>
391
  <fieldset id="my-fieldset2">
392
  <table cellspacing="0" class="form-list">
393
  <tr>
394
+ <td><?php echo $this->__('Set and customize one of the following filters:')?></td>
395
  </tr>
396
  <tr>
397
  <td>
399
  <input name="form_key" type="hidden" value="<?php echo Mage::getSingleton('core/session')->getFormKey() ?>" />
400
  <input name="mailupCustomers" type="hidden" value="2" />
401
  <input name="mailupCustomerGroupId" type="hidden" value="2" />
402
+ <p class="parscefil"><?php echo $this->__("All wholesale customers who haven't purchased yet")?> &raquo;</p>
403
+ <input class="form-button" type="submit" value="<?php echo $this->__('Set hint')?>" />
404
  </form>
405
  </td>
406
  </tr>
411
  <input name="mailupCustomers" type="hidden" value="1" />
412
  <input name="mailupTotalAmountCond" type="hidden" value="gt" />
413
  <input name="mailupTotalAmountValue" type="hidden" value="50" />
414
+ <p class="parscefil"><?php echo $this->__('More than 50 Euros orders')?> &raquo;</p>
415
+ <input class="form-button" type="submit" value="<?php echo $this->__('Set hint')?>" />
416
  </form>
417
  </td>
418
  </tr>
423
  <input name="mailupCustomers" type="hidden" value="0" />
424
  <input name="mailupOrderYesNo" type="hidden" value="no" />
425
  <input name="mailupOrderStartDate" type="hidden" value="01/01/<?php echo date('Y'); ?>" />
426
+ <p class="parscefil"><?php echo $this->__('Members with no purchase in')?> <?php echo date('Y'); ?> &raquo;</p>
427
+ <input class="form-button" type="submit" value="<?php echo $this->__('Set hint')?>" />
428
  </form>
429
 
430
  </td>
435
  <td>&nbsp;</td>
436
  </tr>
437
  <tr>
438
+ <td><?php echo $this->__('Or choose one of those you saved:')?></td>
439
  </tr>
440
  <?php } ?>
441
 
465
  </table>
466
  </fieldset>
467
 
468
+ <!--<a href="<?php echo $this->getUrl('*/*/testCron')?>">TEST CRON</a>
469
+ <a href="<?php echo $this->getUrl('*/*/testFields')?>">TEST GETFIELDS</a>-->
470
  </div>
471
  <script type="text/javascript">
472
  var editForm = new varienForm('edit_form');
499
 
500
  function saveFilterHint() {
501
  if (document.getElementById('filter_name_text').value=='') {
502
+ alert('<?php echo $this->__('Please, give your new hint a name.')?>');
503
  } else {
504
  document.getElementById('filter_name').value = document.getElementById('filter_name_text').value;
505
+ document.getElementById('edit_form').action = '<?php echo $this->getUrl('*/*/saveFilterHint')?>';
506
  document.getElementById('edit_form').submit();
507
  }
508
  return false;
app/locale/en_US/SevenLike_MailUp.csv CHANGED
@@ -28,7 +28,7 @@ Show customers who,Show customers who
28
  Haven't purchased,did not purchase
29
  Have purchased,purchased
30
  In this period,In this period
31
- Filter hints,Saved Filters
32
  All wholesale customers who haven't purchased yet,All wholesale customers who haven't purchased yet
33
  Set filter,Set filter
34
  More than 50 Euros orders,Customer who purchased over $50
@@ -50,7 +50,6 @@ Group name,Group name
50
  Add a new e-mail address or select adresses to be removed from list,Add new email addresses or select addresses to be removed from list
51
  Change members list: please add one email adress per row,Edit customers list: add one email address per row
52
  Save changes,Save changes
53
- By this plugin you can import contacts registered in your eCommerce to the MailUp platform.,By using this tool you can export targeted groups of customers to MailUp and send them a message from within your MailUp admin console.
54
  Set and customize one of the following filters:,Set and customize one of the following filters:
55
  Filter customers,Filter customers
56
  You can find it on your browser url bar (e.g. g4a0.s03.it),Shown in your browser address field when you use MailUp (e.g. g4a0.s03.it)
@@ -72,4 +71,14 @@ dd/mm/yyyy,dd/mm/yyyy
72
  e.g.,e.g.
73
  Opt-in Status,Opt-in Status
74
  "Magento fields","Magento fields"
75
- "Mailup fields","Mailup fields"
 
 
 
 
 
 
 
 
 
 
28
  Haven't purchased,did not purchase
29
  Have purchased,purchased
30
  In this period,In this period
31
+ Filter hints,Saved filters
32
  All wholesale customers who haven't purchased yet,All wholesale customers who haven't purchased yet
33
  Set filter,Set filter
34
  More than 50 Euros orders,Customer who purchased over $50
50
  Add a new e-mail address or select adresses to be removed from list,Add new email addresses or select addresses to be removed from list
51
  Change members list: please add one email adress per row,Edit customers list: add one email address per row
52
  Save changes,Save changes
 
53
  Set and customize one of the following filters:,Set and customize one of the following filters:
54
  Filter customers,Filter customers
55
  You can find it on your browser url bar (e.g. g4a0.s03.it),Shown in your browser address field when you use MailUp (e.g. g4a0.s03.it)
71
  e.g.,e.g.
72
  Opt-in Status,Opt-in Status
73
  "Magento fields","Magento fields"
74
+ "Mailup fields","Mailup fields"
75
+ "Fields mapping","Map Fields"
76
+ Filters,"Segment Customers"
77
+ "By this plugin you can import contacts registered in your eCommerce in the MailUp platform.","Create custom segments using the filters below and easily transfer them to a new or existing Group in your MailUp account."
78
+ "Web service username is not in the right format","Web service username is not in the right format, it should be the a letter followed by some numbers (eg: a12345)"
79
+ "Please fill the admin console URL","Please fill the admin console URL"
80
+ "Admin console URL is not in the right format","Admin console URL is not in the right format, a valid URL example is abc123.s00.it"
81
+ "Unable to connect to MailUp console","Unable to connect to your MailUp account"
82
+ "Your subscription is waiting for confirmation","Your subscription to the newsletter is waiting for confirmation, please check your email and click the confirmation link"
83
+ "MailUp configuration is not complete", "MailUp configuration is not complete, please <a href=''>click here</a> to fill the missing information"
84
+ "MailUp fields mapping is not complete","MailUp fields mapping is not complete, please <a href=''>click here</a> to fill the missing information"
app/locale/it_IT/SevenLike_MailUp.csv CHANGED
@@ -28,7 +28,7 @@
28
  "Haven't purchased","Non hanno effettuato un ordine"
29
  "Have purchased","Hanno effettuato un ordine"
30
  "In this period","Nel periodo"
31
- "Filter hints","Filtri suggeriti"
32
  "All wholesale customers who haven't purchased yet","Tutti i clienti all'ingrosso che non hanno mai acquistato"
33
  "Set filter","imposta filtro"
34
  "More than 50 Euros orders","Tutti i clienti che hanno acquistato per oltre 50 Euro"
@@ -50,7 +50,6 @@
50
  "Add a new e-mail address or select adresses to be removed from list","Aggiungi o rimuovi manualmente gli indirizzi email dalla lista"
51
  "Change members list: please add one email adress per row","Modifica manualmente l'elenco degli iscritti, scrivere un solo indirizzo email per ogni riga"
52
  "Save changes","Applica modifiche"
53
- "By this plugin you can import contacts registered in your eCommerce in the MailUp platform.","Tramite questo plugin potete importare nella piattaforma MailUp i nominativi registrati nel vostro eCommerce."
54
  "Set and customize one of the following filters:","Imposta e personalizza uno dei seguenti filtri:"
55
  "Filter customers","Filtra i clienti"
56
  "You can find it on your browser url bar (e.g. g4a0.s03.it)","Si trova nella barra degli indirizzi del tuo browser (es. g4a0.s03.it)"
@@ -72,8 +71,8 @@
72
  "e.g.","es."
73
  "Opt-in Status","Iscrizione alla newsletter"
74
  "Associate all Magento fields with MailUp ones","Associa i campi Magento con quelli MailUp"
75
- "Fields mapping","Mappatura campi"
76
- "Filters","Filtri"
77
  "It's the domain portion of the browser address field when you using the MailUp Admin console (e.g. g4a0.s03.it)","E' il solo nome di dominio, visualizzato nella barra degli indirizzi del browser mentre stai navigando la console di mailup (es: g4a0.s03.it)"
78
  "Export Frequency","Frequenza di esportazione"
79
  "Enable Automatic Data Export to MailUp","Abilita l'export automatico dei dati verso MailUp"
@@ -85,4 +84,15 @@
85
  "Error: unable to save current filter","Errore: impossibile salvare il filtro corrente"
86
  "Error: unable to delete the filter","Errore: impossibile eliminare il filtro selezionato"
87
  "Magento fields","Campi Magento"
88
- "Mailup fields","Campi Mailup"
 
 
 
 
 
 
 
 
 
 
 
28
  "Haven't purchased","Non hanno effettuato un ordine"
29
  "Have purchased","Hanno effettuato un ordine"
30
  "In this period","Nel periodo"
31
+ "Filter hints","Filtri salvati"
32
  "All wholesale customers who haven't purchased yet","Tutti i clienti all'ingrosso che non hanno mai acquistato"
33
  "Set filter","imposta filtro"
34
  "More than 50 Euros orders","Tutti i clienti che hanno acquistato per oltre 50 Euro"
50
  "Add a new e-mail address or select adresses to be removed from list","Aggiungi o rimuovi manualmente gli indirizzi email dalla lista"
51
  "Change members list: please add one email adress per row","Modifica manualmente l'elenco degli iscritti, scrivere un solo indirizzo email per ogni riga"
52
  "Save changes","Applica modifiche"
 
53
  "Set and customize one of the following filters:","Imposta e personalizza uno dei seguenti filtri:"
54
  "Filter customers","Filtra i clienti"
55
  "You can find it on your browser url bar (e.g. g4a0.s03.it)","Si trova nella barra degli indirizzi del tuo browser (es. g4a0.s03.it)"
71
  "e.g.","es."
72
  "Opt-in Status","Iscrizione alla newsletter"
73
  "Associate all Magento fields with MailUp ones","Associa i campi Magento con quelli MailUp"
74
+ "Fields mapping","Mappa campi"
75
+ "Filters","Segmenta clienti"
76
  "It's the domain portion of the browser address field when you using the MailUp Admin console (e.g. g4a0.s03.it)","E' il solo nome di dominio, visualizzato nella barra degli indirizzi del browser mentre stai navigando la console di mailup (es: g4a0.s03.it)"
77
  "Export Frequency","Frequenza di esportazione"
78
  "Enable Automatic Data Export to MailUp","Abilita l'export automatico dei dati verso MailUp"
84
  "Error: unable to save current filter","Errore: impossibile salvare il filtro corrente"
85
  "Error: unable to delete the filter","Errore: impossibile eliminare il filtro selezionato"
86
  "Magento fields","Campi Magento"
87
+ "Mailup fields","Campi Mailup"
88
+ "By this plugin you can import contacts registered in your eCommerce in the MailUp platform.","Crea segmenti personalizzati usando i filtri sottostanti e trasferiscili facilmente in un gruppo esistente (o nuovo) del tuo account MailUp."
89
+ "Please fill the web service username","Compila il campo Username dei web service"
90
+ "Web service username is not in the right format","Il campo Username dei web service non è nel formato corretto, dovrebbe essere formato dalla lettera a seguita da alcuni numeri (es: a12345)"
91
+ "Please fill the admin console URL","Compila il campo URL della console di amministrazione"
92
+ "Admin console URL is not in the right format","Il campo URL della console di amministrazione non è nel formato corretto, un esempio di URL valida è abc123.s00.it"
93
+ "Unable to connect to MailUp console","Impossibile connettersi alla console di MailUp"
94
+ "Your subscription is waiting for confirmation","La tua iscrizione alla newsletter è in attesa di conferma, controlla la tua casella email e clicca sul link inviatoti"
95
+ "MailUp configuration is not complete", "La configurazione di MailUp non è completa, <a href=''>clicca qui</a> per digitare le informazioni mancanti"
96
+ "MailUp fields mapping is not complete","La mappatura dei campi MailUp non è completa, <a href=''>clicca qui</a> per digitare le informazioni mancanti"
97
+ "Connect to MailUp","Connetti a MailUp"
98
+ "For assistance visit help.mailup.com and search for ""API credentials""","Per assistenza visita help.mailup.com e cerca ""credenziali API"""
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>MailUp</name>
4
- <version>2.1.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/academic.php">Academic Free License (AFL)</license>
7
  <channel>community</channel>
@@ -47,16 +47,20 @@
47
  &lt;p&gt;&lt;br /&gt;Ad esempio un sito di ecommerce potrebbe alimentare il DB di MailUp con informazioni sugli acquisti e MailUp potr&amp;agrave; quindi inviare, ad esempio dopo 7 giorni dall'acquisto, un messaggio di costumer satisfaction oppure l'invito ad acquistare un prodotto correlato.&lt;/p&gt;</description>
48
  <notes>Changelog:&lt;br /&gt;&#xD;
49
  &lt;ul&gt;&#xD;
50
- &lt;li&gt;the group list in the filter mask is now alphabetically ordered&lt;/li&gt;&#xD;
51
- &lt;li&gt;the "categories" drop down in the filter mask now shows subcategories&lt;/li&gt;&#xD;
52
- &lt;li&gt;a bug with installation files was solved&lt;/li&gt;&#xD;
53
- &lt;li&gt;a bug with date selection (subscription date) in filters mask was solved&lt;/li&gt;&#xD;
54
- &lt;li&gt;dates selection in filters mask are now rendered in the same consistant way&lt;/li&gt;&#xD;
 
 
 
 
55
  &lt;/ul&gt;</notes>
56
  <authors><author><name>Sevenlike</name><user>sevenlike</user><email>moduli-magento@sevenlike.com</email></author></authors>
57
- <date>2012-08-21</date>
58
- <time>2012-08-21</time>
59
- <contents><target name="magelocal"><dir name="SevenLike"><dir name="MailUp"><dir name="Block"><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="Helper"><file name="Data.php" hash="ced5e72e373593454738a2fad1457e04"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="Model"><dir name="Adminhtml"><dir name="System"><dir name="Source"><dir name="Cron"><file name="Frequency.php" hash="6883a8ed591fb256b13452a1c95571f9"/><file name="Hours.php" hash="a29b9482b58cd4d492535323e957e74e"/></dir></dir></dir></dir><file name="Cron.php" hash="f31ff2354048584e37abb89bde87aea2"/><file name="Lists.php" hash="d014f01fc68f5982fd8e0a7d6eb540ea"/><file name="MailUp.php" hash="fee7ff035654ad08c9c88a8fbf95089d"/><dir name="Mysql14"><dir name="MailUp"><file name="Collection.php" hash="0b655573c6ed02bb67d7ff9241a1fd73"/></dir><file name="MailUp.php" hash="5a261952db1cedf7cdc7888e2ced7e16"/></dir><file name="Observer.php" hash="e815c625c3849c8b53834788bd186dc7"/><file name="Ws.php" hash="0af7ec6cfab85c2cea793dd711480584"/><file name="Wssend.php" hash="f48254e6909e5edbffc0cc4fb1145b6b"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="FieldsmappingController.php" hash="35966211b73234d929e0e33c760848c4"/><file name="FilterController.php" hash="079f76269091e357b601193c85ff9ccd"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="etc"><file name="config.xml" hash="96fb455a3c30ac8307ed80cdb35c1fcc"/><file name="system.xml" hash="c9e10400e27057dacf2e3f9d18f6ed21"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="sql"><dir name="mailup_setup"><file name="mysql4-install-0.1.0.php" hash="43f2d3f43e10d493e748a6732bb4f5c5"/><file name="mysql4-upgrade-0.1.0-1.0.0.php" hash="43f2d3f43e10d493e748a6732bb4f5c5"/><file name="mysql4-upgrade-0.3.0-1.0.0.php" hash="0a6a28082e3d589cf32516b44bcd9408"/><file name="mysql4-upgrade-1.0.0-1.5.2.php" hash="4ab5fd71fbc9ba8e6cce8e974bfed2fc"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="sevenlike"><dir name="mailup"><file name="confirm.phtml" hash="755cfa597e6f68de72c0f87eca746367"/><file name="fieldsmapping.phtml" hash="9e71b7dfad8ddc1f10c5d3b5252ef7c7"/><file name="filter.phtml" hash="08a1343a152a97e778a59023a6c5adf1"/></dir></dir></dir><dir name="layout"><file name="mailup.xml" hash="37a171055aedfb552cb261dede1e0037"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="SevenLike_MailUp.xml" hash="8377b55193e7524ca9572ed4dc2dca62"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="sevenlike"><dir name="mailup"><dir name="images"><file name="titoli.png" hash="95a7996cd77d3413fd048018095aec6e"/></dir><file name="mailup.css" hash="37febcfd87a78148d5962da507c62ecc"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="SevenLike_MailUp.csv" hash="265f5c2f35d8088de783b5bec0d2e2e2"/></dir><dir name="it_IT"><file name="SevenLike_MailUp.csv" hash="7fcd58235be33c99e3d55f96d7c9d703"/></dir></target></contents>
60
  <compatible/>
61
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
62
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>MailUp</name>
4
+ <version>2.1.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/academic.php">Academic Free License (AFL)</license>
7
  <channel>community</channel>
47
  &lt;p&gt;&lt;br /&gt;Ad esempio un sito di ecommerce potrebbe alimentare il DB di MailUp con informazioni sugli acquisti e MailUp potr&amp;agrave; quindi inviare, ad esempio dopo 7 giorni dall'acquisto, un messaggio di costumer satisfaction oppure l'invito ad acquistare un prodotto correlato.&lt;/p&gt;</description>
48
  <notes>Changelog:&lt;br /&gt;&#xD;
49
  &lt;ul&gt;&#xD;
50
+ &lt;li&gt;timezones are now correctly handled by the whole extention&lt;/li&gt;&#xD;
51
+ &lt;li&gt;users in "waiting for confirmation email" state are now correctly handled&lt;/li&gt;&#xD;
52
+ &lt;li&gt;Magento's backend menu has was reorganized&lt;/li&gt;&#xD;
53
+ &lt;li&gt;a console url validation check was added upon system configuration save&lt;/li&gt;&#xD;
54
+ &lt;li&gt;upon loggin to the Magento's backend (or system configuration save) a configuration check is done, if MailUp isn't completely configured (system configurations and fields mapping) than an alert message is shown&lt;/li&gt;&#xD;
55
+ &lt;li&gt;Magento's category multilevel hierarchy is now fully supported&lt;/li&gt;&#xD;
56
+ &lt;li&gt;if an error occour during the connection to the MailUp console a warning is shown (a timeout was also added)&lt;/li&gt;&#xD;
57
+ &lt;li&gt;PHP short tags were completely removed&lt;/li&gt;&#xD;
58
+ &lt;li&gt;better and more complete translations (English and Italian)&lt;/li&gt;&#xD;
59
  &lt;/ul&gt;</notes>
60
  <authors><author><name>Sevenlike</name><user>sevenlike</user><email>moduli-magento@sevenlike.com</email></author></authors>
61
+ <date>2012-11-19</date>
62
+ <time>2012-11-19</time>
63
+ <contents><target name="magelocal"><dir name="SevenLike"><dir name="MailUp"><dir name="Block"><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="Helper"><file name="Data.php" hash="a1d905b6a591f087c5debb04d5ee0e22"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="Model"><dir name="Adminhtml"><dir name="System"><dir name="Source"><dir name="Cron"><file name="Frequency.php" hash="6883a8ed591fb256b13452a1c95571f9"/><file name="Hours.php" hash="a29b9482b58cd4d492535323e957e74e"/></dir></dir></dir></dir><file name="Consoleurlvalidator.php" hash="445cea54aeca48b1e6197d85d0dfe524"/><file name="Cron.php" hash="f31ff2354048584e37abb89bde87aea2"/><file name="Lists.php" hash="d014f01fc68f5982fd8e0a7d6eb540ea"/><file name="MailUp.php" hash="fee7ff035654ad08c9c88a8fbf95089d"/><dir name="Mysql14"><dir name="MailUp"><file name="Collection.php" hash="0b655573c6ed02bb67d7ff9241a1fd73"/></dir><file name="MailUp.php" hash="5a261952db1cedf7cdc7888e2ced7e16"/></dir><file name="Observer.php" hash="c31e39e4c1bffdeea30496073f6a8559"/><file name="Webserviceusernamevalidator.php" hash="f6cbe6394f685a93206ace6ed33ff2fa"/><file name="Ws.php" hash="8acfb46468c1017d4e9aabe4d1aa6751"/><file name="Wssend.php" hash="2d70b7faeea405ec2e3a9654aff66005"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="ConfigurationController.php" hash="a2c9df0f275cd9da036dc96311d1c8d1"/><file name="FieldsmappingController.php" hash="328e6d87338a7ce50894ade00e35ffb2"/><file name="FilterController.php" hash="079f76269091e357b601193c85ff9ccd"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="etc"><file name="config.xml" hash="e447b775d738780688bceb1ced65df99"/><file name="system.xml" hash="8069c84eff5793611bed992a449b7afa"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="sql"><dir name="mailup_setup"><file name="mysql4-install-0.1.0.php" hash="43f2d3f43e10d493e748a6732bb4f5c5"/><file name="mysql4-upgrade-0.1.0-1.0.0.php" hash="43f2d3f43e10d493e748a6732bb4f5c5"/><file name="mysql4-upgrade-0.3.0-1.0.0.php" hash="0a6a28082e3d589cf32516b44bcd9408"/><file name="mysql4-upgrade-1.0.0-1.5.2.php" hash="4ab5fd71fbc9ba8e6cce8e974bfed2fc"/></dir></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="sevenlike"><dir name="mailup"><file name="confirm.phtml" hash="a9a1c5321128d85e8a058503846bf225"/><file name="fieldsmapping.phtml" hash="ab91a8f0b1598f6e8dadda6db51c4d33"/><file name="filter.phtml" hash="670298be6739e1348927eaa48385cd02"/></dir></dir></dir><dir name="layout"><file name="mailup.xml" hash="37a171055aedfb552cb261dede1e0037"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="SevenLike_MailUp.xml" hash="8377b55193e7524ca9572ed4dc2dca62"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="sevenlike"><dir name="mailup"><dir name="images"><file name="titoli.png" hash="95a7996cd77d3413fd048018095aec6e"/></dir><file name="mailup.css" hash="37febcfd87a78148d5962da507c62ecc"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="en_US"><file name="SevenLike_MailUp.csv" hash="a8a36f24e143da813d3fb796c8d1279f"/></dir><dir name="it_IT"><file name="SevenLike_MailUp.csv" hash="e11364be0090dd0ef49543f9edc421d6"/></dir></target></contents>
64
  <compatible/>
65
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
66
  </package>