MailUp - Version 2.0.1

Version Notes

Changelog:


  • some inputs have a better style now

  • a bug with customer login and PHP<5.3 was solved

  • some internationalization issue were solved

Download this release

Release Info

Developer Sevenlike
Extension MailUp
Version 2.0.1
Comparing to
See all releases


Code changes from version 2.0.0 to 2.0.1

app/code/local/SevenLike/MailUp/Model/Observer.php CHANGED
@@ -76,23 +76,23 @@ class SevenLike_MailUp_Model_Observer
76
  public function leggiUtente($observer)
77
  {
78
  $model = $observer->getEvent()->getModel();
79
-
80
- $WSDLUrl = 'http://services.mailupnet.it/MailupReport.asmx?WSDL';
81
- $user = Mage::getStoreConfig('newsletter/mailup/username_ws');
82
- $password = Mage::getStoreConfig('newsletter/mailup/password_ws');
83
- $headers = array('User' => $user, 'Password' => $password);
84
- $header = new SOAPHeader($this->ns, 'Authentication', $headers);
85
- $soapclient = new SoapClient($WSDLUrl, array('trace' => 1, 'exceptions' => 0));
86
- $soapclient->__setSoapHeaders($this->header);
87
 
88
  $loginData = array ('user' => Mage::getStoreConfig('newsletter/mailup/username_ws'),
89
  'pwd' => Mage::getStoreConfig('newsletter/mailup/password_ws'),
90
  'consoleId' => substr(Mage::getStoreConfig('newsletter/mailup/username_ws'), 1));
91
  $result = get_object_vars($soapclient->LoginFromId($loginData));
92
  $xml = simplexml_load_string($result['LoginFromIdResult']);
93
- $errorCode = $xml->errorCode->__toString();
94
- $errorDescription = $xml->errorDescription->__toString();
95
- $accessKey = $xml->accessKey->__toString();
96
 
97
  $result = $soapclient->ReportByUser(array(
98
  "accessKey" => $accessKey,
76
  public function leggiUtente($observer)
77
  {
78
  $model = $observer->getEvent()->getModel();
79
+
80
+ $WSDLUrl = 'http://services.mailupnet.it/MailupReport.asmx?WSDL';
81
+ $user = Mage::getStoreConfig('newsletter/mailup/username_ws');
82
+ $password = Mage::getStoreConfig('newsletter/mailup/password_ws');
83
+ $headers = array('User' => $user, 'Password' => $password);
84
+ $header = new SOAPHeader("http://ws.mailupnet.it/", 'Authentication', $headers);
85
+ $soapclient = new SoapClient($WSDLUrl, array('trace' => 1, 'exceptions' => 0));
86
+ $soapclient->__setSoapHeaders($header);
87
 
88
  $loginData = array ('user' => Mage::getStoreConfig('newsletter/mailup/username_ws'),
89
  'pwd' => Mage::getStoreConfig('newsletter/mailup/password_ws'),
90
  'consoleId' => substr(Mage::getStoreConfig('newsletter/mailup/username_ws'), 1));
91
  $result = get_object_vars($soapclient->LoginFromId($loginData));
92
  $xml = simplexml_load_string($result['LoginFromIdResult']);
93
+ $errorCode = (string)$xml->errorCode;
94
+ $errorDescription = (string)$xml->errorDescription;
95
+ $accessKey = (string)$xml->accessKey;
96
 
97
  $result = $soapclient->ReportByUser(array(
98
  "accessKey" => $accessKey,
app/code/local/SevenLike/MailUp/controllers/Adminhtml/FilterController.php CHANGED
@@ -77,7 +77,7 @@ class SevenLike_MailUp_Adminhtml_FilterController extends Mage_Adminhtml_Control
77
 
78
  //lancio il download del file
79
  header("Content-type: application/csv");
80
- header("Content-Disposition: attachment;Filename=clienti_filtrati.csv");
81
  echo $file;
82
  }
83
 
77
 
78
  //lancio il download del file
79
  header("Content-type: application/csv");
80
+ header("Content-Disposition: attachment;Filename=filtered_customers.csv");
81
  echo $file;
82
  }
83
 
app/code/local/SevenLike/MailUp/etc/config.xml CHANGED
@@ -3,7 +3,7 @@
3
  <config>
4
  <modules>
5
  <SevenLike_MailUp>
6
- <version>1.5.6</version>
7
  </SevenLike_MailUp>
8
  </modules>
9
 
3
  <config>
4
  <modules>
5
  <SevenLike_MailUp>
6
+ <version>2.0.1</version>
7
  </SevenLike_MailUp>
8
  </modules>
9
 
app/design/adminhtml/default/default/template/sevenlike/mailup/filter.phtml CHANGED
@@ -395,13 +395,13 @@ if ($accessKey === false || strlen(Mage::getStoreConfig('newsletter/mailup/list'
395
  echo '<input name="'.$array[0].'" type="hidden" value="'.$array[1].'" />';
396
  }
397
  echo '<p class="parscefil">'.$filter_name.' &raquo;</p>';
398
- echo '<input type="submit" value="'.$this->__('Set hint').'" />';
399
  echo '</form>';
400
  echo '&nbsp;';
401
  echo '<form name="deleteForm_'.$filter_name.'" action="'.$this->getUrl('*/*/deleteFilterHint').'" method="post">';
402
  echo '<input name="form_key" type="hidden" value="'. Mage::getSingleton('core/session')->getFormKey() .'" />';
403
  echo '<input name="filter_name" type="hidden" value="'. $filter_name .'" />';
404
- echo '<input type="submit" name="delete" onclick="if(confirm(\''.$this->__('Do you really want to delete this filter hint?').'\')==true){this.submit();}return false;" value="'.$this->__('Delete hint').'" />';
405
  echo '</form>';
406
  echo '</td></tr>';
407
  } ?>
395
  echo '<input name="'.$array[0].'" type="hidden" value="'.$array[1].'" />';
396
  }
397
  echo '<p class="parscefil">'.$filter_name.' &raquo;</p>';
398
+ echo '<input class="form-button" type="submit" value="'.$this->__('Set hint').'" />';
399
  echo '</form>';
400
  echo '&nbsp;';
401
  echo '<form name="deleteForm_'.$filter_name.'" action="'.$this->getUrl('*/*/deleteFilterHint').'" method="post">';
402
  echo '<input name="form_key" type="hidden" value="'. Mage::getSingleton('core/session')->getFormKey() .'" />';
403
  echo '<input name="filter_name" type="hidden" value="'. $filter_name .'" />';
404
+ echo '<input class="form-button" type="submit" name="delete" onclick="if(confirm(\''.$this->__('Do you really want to delete this filter hint?').'\')==true){this.submit();}return false;" value="'.$this->__('Delete hint').'" />';
405
  echo '</form>';
406
  echo '</td></tr>';
407
  } ?>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>MailUp</name>
4
- <version>2.0.0</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,12 +47,14 @@
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;Automatic synchronization (via customizable Magento crons) of all customers/subscribers with a new "MAGENTO" group in the selected list.&lt;/li&gt;&#xD;
 
 
51
  &lt;/ul&gt;</notes>
52
  <authors><author><name>Sevenlike</name><user>sevenlike</user><email>moduli-magento@sevenlike.com</email></author></authors>
53
- <date>2012-06-04</date>
54
- <time>2012-06-04</time>
55
- <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="6ad008113139ac367a22ad049e0632f3"/><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="57c892490ca67de41b2d5d4d043761b9"/><file name="Hours.php" hash="3f9ec0f1233b4468ed86b4eba050602e"/></dir></dir></dir></dir><file name="Cron.php" hash="4123ac2606add1be880f497b67597e6c"/><file name="Lists.php" hash="28b44514b3d3c325945f0fc8a83df4ec"/><file name="MailUp.php" hash="2829fb8a8ad6317ce5b2a28a2fe0149d"/><dir name="Mysql14"><dir name="MailUp"><file name="Collection.php" hash="1435c91e677f7b668079373599aae3eb"/></dir><file name="MailUp.php" hash="4e6e23f0eccdfe35776d1e8eab68692a"/></dir><file name="Observer.php" hash="8882bcd505d163cd96c3e260494d7800"/><dir name="System"><dir name="Source"><dir name="Cron"><file name="Frequency.php" hash="0a9ee4aacdcf270eb192f5b32e1e4a26"/><file name="Hours.php" hash="029b0d2d998c7e246333ee7bff64661a"/></dir></dir></dir><file name="Ws.php" hash="c6968947b0950b52f0fbeeddf347ad8c"/><file name="Wssend.php" hash="bbda3b6dcfbe8af129aa24431757605e"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="FieldsmappingController.php" hash="0e4ef6aca47bbbd1d1881ce02465a688"/><file name="FilterController.php" hash="496b739241dcbf4db8ae32804da5a5b1"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="etc"><file name="config.xml" hash="bdd88d1039c2f2b5b748a3188c606487"/><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="46770fc0e2204faeba2b82c975fc6fb8"/><file name="mysql4-upgrade-0.1.0-1.0.0.php" hash="8fb23d8f3c3d38661aa50697f23e98c7"/><file name="mysql4-upgrade-0.3.0-1.0.0.php" hash="89080c835857a5dd135da5608a77ced1"/><file name="mysql4-upgrade-1.0.0-1.5.2.php" hash="d88d151e34f9ddba5bdc7d8c8cc21f97"/></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="b6e4af2eb21000d218648abc3b2f7caf"/><file name="fieldsmapping.phtml" hash="6d31a300cf8774c94219a38b95635486"/><file name="filter.phtml" hash="9323b59d4b1214ab9d025a3eee106399"/></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="7388cfb49cf963f78f59c24633027f67"/></dir><dir name="it_IT"><file name="SevenLike_MailUp.csv" hash="53b451a3b28669f6bebfa8f39e391302"/></dir></target></contents>
56
  <compatible/>
57
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
58
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>MailUp</name>
4
+ <version>2.0.1</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;some inputs have a better style now&lt;/li&gt;&#xD;
51
+ &lt;li&gt;a bug with customer login and PHP&lt;5.3 was solved&lt;/li&gt;&#xD;
52
+ &lt;li&gt;some internationalization issue were solved&lt;/li&gt;&#xD;
53
  &lt;/ul&gt;</notes>
54
  <authors><author><name>Sevenlike</name><user>sevenlike</user><email>moduli-magento@sevenlike.com</email></author></authors>
55
+ <date>2012-06-05</date>
56
+ <time>2012-06-05</time>
57
+ <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="6ad008113139ac367a22ad049e0632f3"/><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="57c892490ca67de41b2d5d4d043761b9"/><file name="Hours.php" hash="3f9ec0f1233b4468ed86b4eba050602e"/></dir></dir></dir></dir><file name="Cron.php" hash="4123ac2606add1be880f497b67597e6c"/><file name="Lists.php" hash="28b44514b3d3c325945f0fc8a83df4ec"/><file name="MailUp.php" hash="2829fb8a8ad6317ce5b2a28a2fe0149d"/><dir name="Mysql14"><dir name="MailUp"><file name="Collection.php" hash="1435c91e677f7b668079373599aae3eb"/></dir><file name="MailUp.php" hash="4e6e23f0eccdfe35776d1e8eab68692a"/></dir><file name="Observer.php" hash="d80ff2dada129c29708be3de7bcf27bf"/><dir name="System"><dir name="Source"><dir name="Cron"><file name="Frequency.php" hash="0a9ee4aacdcf270eb192f5b32e1e4a26"/><file name="Hours.php" hash="029b0d2d998c7e246333ee7bff64661a"/></dir></dir></dir><file name="Ws.php" hash="c6968947b0950b52f0fbeeddf347ad8c"/><file name="Wssend.php" hash="bbda3b6dcfbe8af129aa24431757605e"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="FieldsmappingController.php" hash="0e4ef6aca47bbbd1d1881ce02465a688"/><file name="FilterController.php" hash="b449d54d6e573b38bc618eea1519e1ae"/><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><file name=".DS_Store" hash="194577a7e20bdcc7afbb718f502c134c"/></dir><dir name="etc"><file name="config.xml" hash="4efcbcb11f8e85142fe483688bc6c433"/><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="46770fc0e2204faeba2b82c975fc6fb8"/><file name="mysql4-upgrade-0.1.0-1.0.0.php" hash="8fb23d8f3c3d38661aa50697f23e98c7"/><file name="mysql4-upgrade-0.3.0-1.0.0.php" hash="89080c835857a5dd135da5608a77ced1"/><file name="mysql4-upgrade-1.0.0-1.5.2.php" hash="d88d151e34f9ddba5bdc7d8c8cc21f97"/></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="b6e4af2eb21000d218648abc3b2f7caf"/><file name="fieldsmapping.phtml" hash="6d31a300cf8774c94219a38b95635486"/><file name="filter.phtml" hash="2d8918fea5ffb7ea36686a9d5ea2e9b6"/></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="7388cfb49cf963f78f59c24633027f67"/></dir><dir name="it_IT"><file name="SevenLike_MailUp.csv" hash="53b451a3b28669f6bebfa8f39e391302"/></dir></target></contents>
58
  <compatible/>
59
  <dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
60
  </package>