Version Notes
Export customer for the Magento Email Marketing Powerball.
Download this release
Release Info
Developer | Locaweb |
Extension | Locaweb_Email_Marketing |
Version | 1.0.3 |
Comparing to | |
See all releases |
Code changes from version 1.0.2 to 1.0.3
app/code/local/Locaweb/EmailMarketing/controllers/Adminhtml/EmailMarketingController.php
CHANGED
@@ -22,10 +22,23 @@ class Locaweb_EmailMarketing_Adminhtml_EmailMarketingController extends Mage_Adm
|
|
22 |
}else{
|
23 |
|
24 |
$this->_command = 'accounts/'.Mage::getStoreConfig('Locaweb/EmailMarketing/id_da_conta');
|
25 |
-
$this->_subCommand = 'lists';
|
26 |
$this->_apiKey = Mage::getStoreConfig('Locaweb/EmailMarketing/chave_de_acesso');
|
27 |
$dadosListas = $this->call();
|
28 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
$block = $this->getLayout()
|
30 |
->createBlock('adminhtml/template', 'locaweb-block')
|
31 |
->setTemplate('EmailMarketing/EmailMarketingContaVerificada.phtml');
|
22 |
}else{
|
23 |
|
24 |
$this->_command = 'accounts/'.Mage::getStoreConfig('Locaweb/EmailMarketing/id_da_conta');
|
25 |
+
$this->_subCommand = 'lists?per=30&page=1';
|
26 |
$this->_apiKey = Mage::getStoreConfig('Locaweb/EmailMarketing/chave_de_acesso');
|
27 |
$dadosListas = $this->call();
|
28 |
+
$result = array();
|
29 |
+
$result = array_merge($dadosListas['items'], $result);
|
30 |
+
|
31 |
+
if ($dadosListas['page']['total'] > 1){
|
32 |
+
for ($i = 2; $i <= $dadosListas['page']['total']; $i++) {
|
33 |
+
$this->_command = 'accounts/'.Mage::getStoreConfig('Locaweb/EmailMarketing/id_da_conta');
|
34 |
+
$this->_subCommand = 'lists?per=30&page='.$i;
|
35 |
+
$this->_apiKey = Mage::getStoreConfig('Locaweb/EmailMarketing/chave_de_acesso');
|
36 |
+
$dadosListas = $this->call();
|
37 |
+
$result = array_merge($dadosListas['items'], $result);
|
38 |
+
}
|
39 |
+
}
|
40 |
+
$dadosListas = $result;
|
41 |
+
|
42 |
$block = $this->getLayout()
|
43 |
->createBlock('adminhtml/template', 'locaweb-block')
|
44 |
->setTemplate('EmailMarketing/EmailMarketingContaVerificada.phtml');
|
app/code/local/Locaweb/EmailMarketing/etc/config.xml
CHANGED
@@ -11,7 +11,7 @@
|
|
11 |
<config>
|
12 |
<modules>
|
13 |
<Locaweb_EmailMarketing>
|
14 |
-
<version>1.0.
|
15 |
</Locaweb_EmailMarketing>
|
16 |
</modules>
|
17 |
<global>
|
11 |
<config>
|
12 |
<modules>
|
13 |
<Locaweb_EmailMarketing>
|
14 |
+
<version>1.0.3</version>
|
15 |
</Locaweb_EmailMarketing>
|
16 |
</modules>
|
17 |
<global>
|
app/design/adminhtml/default/default/template/EmailMarketing/EmailMarketingContaVerificada.phtml
CHANGED
@@ -118,7 +118,7 @@
|
|
118 |
<td class="input-ele">
|
119 |
<select id="cmbListas" name="EmailMarketing[id_lista_exportar]" class="validate-select">
|
120 |
<option value="">Selecione uma lista...</option>
|
121 |
-
<?php foreach ($dadosListas
|
122 |
<option value="<?php echo $lista['id'] ?>" <?php if (Mage::getStoreConfig('Locaweb/EmailMarketing/lista_selecionada_padrao') == $lista['id']){ echo "selected"; } ?>>
|
123 |
<?php echo $lista['name'] ?>
|
124 |
</option>
|
118 |
<td class="input-ele">
|
119 |
<select id="cmbListas" name="EmailMarketing[id_lista_exportar]" class="validate-select">
|
120 |
<option value="">Selecione uma lista...</option>
|
121 |
+
<?php foreach ($dadosListas as $lista) { ?>
|
122 |
<option value="<?php echo $lista['id'] ?>" <?php if (Mage::getStoreConfig('Locaweb/EmailMarketing/lista_selecionada_padrao') == $lista['id']){ echo "selected"; } ?>>
|
123 |
<?php echo $lista['name'] ?>
|
124 |
</option>
|
package.xml
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Locaweb_Email_Marketing</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/GPL-3.0">GPL</license>
|
7 |
<channel>community</channel>
|
@@ -15,8 +15,8 @@ Com o módulo de integração do Email Marketing Locaweb você p
|
|
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>
|
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="
|
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.3</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/GPL-3.0">GPL</license>
|
7 |
<channel>community</channel>
|
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>18:43:56</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="ce328ef931d318de6a3643c675a78c47"/></dir></dir><dir name="etc"><file name="config.xml" hash="12a065c741808960e803c400c7a6ea0a"/></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="0c7d397ccd9ea7739e8dbdb041bec5e1"/></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>
|