Locaweb_Email_Marketing - Version 1.0.2

Version Notes

Export customer for the Magento Email Marketing Powerball.

Download this release

Release Info

Developer Locaweb
Extension Locaweb_Email_Marketing
Version 1.0.2
Comparing to
See all releases


Code changes from version 1.0.1 to 1.0.2

app/code/local/Locaweb/EmailMarketing/controllers/Adminhtml/EmailMarketingController.php CHANGED
@@ -127,6 +127,8 @@ class Locaweb_EmailMarketing_Adminhtml_EmailMarketingController extends Mage_Adm
127
  Mage::getModel('core/config')->saveConfig('Locaweb/EmailMarketing/chave_de_acesso', $post['EmailMarketing']['chave_de_acesso']);
128
  Mage::getModel('core/config')->saveConfig('Locaweb/EmailMarketing/nome_da_conta', $retornoCall['display_name']);
129
 
 
 
130
  $message = $this->__('Conta verificada com sucesso!');
131
  Mage::getSingleton('adminhtml/session')->addSuccess($message);
132
  }
@@ -203,6 +205,8 @@ class Locaweb_EmailMarketing_Adminhtml_EmailMarketingController extends Mage_Adm
203
 
204
  Mage::getModel('core/config')->saveConfig('Locaweb/EmailMarketing/lista_selecionada_padrao', $post['EmailMarketing']['id_lista_exportar']);
205
 
 
 
206
  $message = $this->__('Clientes exportados com sucesso!');
207
  Mage::getSingleton('adminhtml/session')->addSuccess($message);
208
  }
@@ -234,6 +238,8 @@ class Locaweb_EmailMarketing_Adminhtml_EmailMarketingController extends Mage_Adm
234
 
235
  Mage::getModel('core/config')->saveConfig('Locaweb/EmailMarketing/lista_selecionada_padrao', '');
236
 
 
 
237
  $this->_redirect('*/*');
238
  }
239
 
@@ -256,6 +262,8 @@ class Locaweb_EmailMarketing_Adminhtml_EmailMarketingController extends Mage_Adm
256
 
257
  if (isset($retornoCall['id'])){
258
  Mage::getModel('core/config')->saveConfig('Locaweb/EmailMarketing/lista_selecionada_padrao', $retornoCall['id']);
 
 
259
  $message = $this->__('Lista criada com sucesso!');
260
  Mage::getSingleton('adminhtml/session')->addSuccess($message);
261
  }
@@ -344,7 +352,9 @@ class Locaweb_EmailMarketing_Adminhtml_EmailMarketingController extends Mage_Adm
344
  Mage::getSingleton('adminhtml/session')->addError('Servidor indisponível no momento. Por favor, tente novamente mais tarde.');
345
  break;
346
  }
347
-
 
 
348
  $data = Mage::helper('core')->jsonDecode($response);
349
  if (isset($data['ErrorCode'])) {
350
  throw new Exception($data['Message'], $data['ErrorCode']);
127
  Mage::getModel('core/config')->saveConfig('Locaweb/EmailMarketing/chave_de_acesso', $post['EmailMarketing']['chave_de_acesso']);
128
  Mage::getModel('core/config')->saveConfig('Locaweb/EmailMarketing/nome_da_conta', $retornoCall['display_name']);
129
 
130
+ Mage::app()->getCacheInstance()->cleanType('config');
131
+
132
  $message = $this->__('Conta verificada com sucesso!');
133
  Mage::getSingleton('adminhtml/session')->addSuccess($message);
134
  }
205
 
206
  Mage::getModel('core/config')->saveConfig('Locaweb/EmailMarketing/lista_selecionada_padrao', $post['EmailMarketing']['id_lista_exportar']);
207
 
208
+ Mage::app()->getCacheInstance()->cleanType('config');
209
+
210
  $message = $this->__('Clientes exportados com sucesso!');
211
  Mage::getSingleton('adminhtml/session')->addSuccess($message);
212
  }
238
 
239
  Mage::getModel('core/config')->saveConfig('Locaweb/EmailMarketing/lista_selecionada_padrao', '');
240
 
241
+ Mage::app()->getCacheInstance()->cleanType('config');
242
+
243
  $this->_redirect('*/*');
244
  }
245
 
262
 
263
  if (isset($retornoCall['id'])){
264
  Mage::getModel('core/config')->saveConfig('Locaweb/EmailMarketing/lista_selecionada_padrao', $retornoCall['id']);
265
+ Mage::app()->getCacheInstance()->cleanType('config');
266
+
267
  $message = $this->__('Lista criada com sucesso!');
268
  Mage::getSingleton('adminhtml/session')->addSuccess($message);
269
  }
352
  Mage::getSingleton('adminhtml/session')->addError('Servidor indisponível no momento. Por favor, tente novamente mais tarde.');
353
  break;
354
  }
355
+
356
+ Mage::log ('### [Locaweb] Resposta do Servidor: ' . $response, null, 'EmailMarketing.log');
357
+
358
  $data = Mage::helper('core')->jsonDecode($response);
359
  if (isset($data['ErrorCode'])) {
360
  throw new Exception($data['Message'], $data['ErrorCode']);
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Locaweb_Email_Marketing</name>
4
- <version>1.0.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/GPL-3.0">GPL</license>
7
  <channel>community</channel>
@@ -14,9 +14,9 @@ With the integration module Email Marketing Locaweb you can make submissions and
14
  Com o m&#xF3;dulo de integra&#xE7;&#xE3;o do Email Marketing Locaweb voc&#xEA; poder&#xE1; fazer envios de e-mails para listas de contatos sincronizadas e atualizadas com os cadastros da sua loja virtual. Para isso basta criar a lista de destino dos contatos ou selecionar uma lista j&#xE1; criada na ferramenta, e fazer o processo de exporta&#xE7;&#xE3;o dos cadastros atrav&#xE9;s do Painel de Administra&#xE7;&#xE3;o do Magento toda vez que desejar atualizar os contatos.</description>
15
  <notes>Export customer for the Magento Email Marketing Powerball.</notes>
16
  <authors><author><name>Locaweb</name><user>Locaweb</user><email>julio.gejer@locaweb.com.br</email></author></authors>
17
- <date>2013-10-29</date>
18
- <time>11:35:15</time>
19
- <contents><target name="magelocal"><dir name="Locaweb"><dir name="EmailMarketing"><dir name="Block"><file name="EmailMarketing.php" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir><dir name="Helper"><file name="Data.php" hash="da8bee4cff5c0c7228543963f4fcdd70"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="EmailMarketingController.php" hash="0e01986e1416998aa55998019b14a444"/></dir></dir><dir name="etc"><file name="config.xml" hash="27f1dc173faa6675d876eadbabbf1f66"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="EmailMarketing.xml" hash="3f709cf8fc958eccab7414c7af8f2c35"/></dir><dir name="template"><dir name="EmailMarketing"><file name="EmailMarketing.phtml" hash="f76382b0686b755c5ffd1d5cecf15dd9"/><file name="EmailMarketingContaVerificada.phtml" hash="b75ee42260dc51a427e4711f2b0c20bc"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Locaweb_EmailMarketing.xml" hash="ad9da39163661c6c8b25b01cc5a3acf2"/></dir></target></contents>
20
  <compatible/>
21
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
22
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Locaweb_Email_Marketing</name>
4
+ <version>1.0.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/GPL-3.0">GPL</license>
7
  <channel>community</channel>
14
  Com o m&#xF3;dulo de integra&#xE7;&#xE3;o do Email Marketing Locaweb voc&#xEA; poder&#xE1; fazer envios de e-mails para listas de contatos sincronizadas e atualizadas com os cadastros da sua loja virtual. Para isso basta criar a lista de destino dos contatos ou selecionar uma lista j&#xE1; criada na ferramenta, e fazer o processo de exporta&#xE7;&#xE3;o dos cadastros atrav&#xE9;s do Painel de Administra&#xE7;&#xE3;o do Magento toda vez que desejar atualizar os contatos.</description>
15
  <notes>Export customer for the Magento Email Marketing Powerball.</notes>
16
  <authors><author><name>Locaweb</name><user>Locaweb</user><email>julio.gejer@locaweb.com.br</email></author></authors>
17
+ <date>2013-10-30</date>
18
+ <time>17:35:31</time>
19
+ <contents><target name="magelocal"><dir name="Locaweb"><dir name="EmailMarketing"><dir name="Block"><file name="EmailMarketing.php" hash="d41d8cd98f00b204e9800998ecf8427e"/></dir><dir name="Helper"><file name="Data.php" hash="da8bee4cff5c0c7228543963f4fcdd70"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="EmailMarketingController.php" hash="65e20ef31e9525ae93a0a67ec95d2f5c"/></dir></dir><dir name="etc"><file name="config.xml" hash="27f1dc173faa6675d876eadbabbf1f66"/></dir></dir></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="layout"><file name="EmailMarketing.xml" hash="3f709cf8fc958eccab7414c7af8f2c35"/></dir><dir name="template"><dir name="EmailMarketing"><file name="EmailMarketing.phtml" hash="f76382b0686b755c5ffd1d5cecf15dd9"/><file name="EmailMarketingContaVerificada.phtml" hash="b75ee42260dc51a427e4711f2b0c20bc"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Locaweb_EmailMarketing.xml" hash="ad9da39163661c6c8b25b01cc5a3acf2"/></dir></target></contents>
20
  <compatible/>
21
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
22
  </package>