Version Notes
Started
Download this release
Release Info
| Developer | Magento Core Team |
| Extension | Dexxtz_Customer_Email |
| Version | 1.0.2 |
| Comparing to | |
| See all releases | |
Code changes from version 1.0.1 to 1.0.2
- app/code/community/Dexxtz/Customeremail/Block/System/Config/Source/List/Button.php +1 -1
- app/code/community/Dexxtz/Customeremail/Helper/Data.php +2 -2
- app/code/community/Dexxtz/Customeremail/etc/config.xml +9 -9
- app/code/community/Dexxtz/Customeremail/etc/system.xml +2 -2
- app/design/adminhtml/default/default/layout/dexxtz/customeremail.xml +2 -2
- app/design/adminhtml/default/default/template/dexxtz/customeremail/list.phtml +3 -3
- package.xml +4 -4
app/code/community/Dexxtz/Customeremail/Block/System/Config/Source/List/Button.php
CHANGED
|
@@ -13,7 +13,7 @@ class Dexxtz_Customeremail_Block_System_Config_Source_List_Button extends Mage_A
|
|
| 13 |
protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
|
| 14 |
{
|
| 15 |
$this->setElement($element);
|
| 16 |
-
$url = $this->getUrl('
|
| 17 |
$html = $this->getLayout()
|
| 18 |
->createBlock('adminhtml/widget_button')
|
| 19 |
->setType('button')
|
| 13 |
protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
|
| 14 |
{
|
| 15 |
$this->setElement($element);
|
| 16 |
+
$url = $this->getUrl('customeremail/adminhtml_list');
|
| 17 |
$html = $this->getLayout()
|
| 18 |
->createBlock('adminhtml/widget_button')
|
| 19 |
->setType('button')
|
app/code/community/Dexxtz/Customeremail/Helper/Data.php
CHANGED
|
@@ -116,8 +116,8 @@ class Dexxtz_Customeremail_Helper_Data extends Mage_Core_Helper_Abstract
|
|
| 116 |
$editImage = $skinPath . "images/details.gif";
|
| 117 |
|
| 118 |
foreach ($this->getCustomerCollection() as $customer) {
|
| 119 |
-
$name = $this->getCustomerName($customer['firstname'], $customer['lastname']);
|
| 120 |
-
$email = $customer->getEmail();
|
| 121 |
$dob = ($customer['dob']) ? $this->getDateConverted($customer['dob'], false) : '-';
|
| 122 |
$group = $this->getGroupLabel($customer->getGroupId());
|
| 123 |
$dateCreate = $this->getDateConverted($customer->getCreatedAt(), true);
|
| 116 |
$editImage = $skinPath . "images/details.gif";
|
| 117 |
|
| 118 |
foreach ($this->getCustomerCollection() as $customer) {
|
| 119 |
+
$name = $this->getCustomerName(trim($customer['firstname']), trim($customer['lastname']));
|
| 120 |
+
$email = trim($customer->getEmail());
|
| 121 |
$dob = ($customer['dob']) ? $this->getDateConverted($customer['dob'], false) : '-';
|
| 122 |
$group = $this->getGroupLabel($customer->getGroupId());
|
| 123 |
$dateCreate = $this->getDateConverted($customer->getCreatedAt(), true);
|
app/code/community/Dexxtz/Customeremail/etc/config.xml
CHANGED
|
@@ -11,7 +11,7 @@
|
|
| 11 |
<config>
|
| 12 |
<modules>
|
| 13 |
<Dexxtz_Customeremail>
|
| 14 |
-
<version>1.0.
|
| 15 |
</Dexxtz_Customeremail>
|
| 16 |
</modules>
|
| 17 |
<frontend>
|
|
@@ -36,13 +36,13 @@
|
|
| 36 |
</frontend>
|
| 37 |
<admin>
|
| 38 |
<routers>
|
| 39 |
-
<
|
| 40 |
<use>admin</use>
|
| 41 |
<args>
|
| 42 |
<module>Dexxtz_Customeremail</module>
|
| 43 |
<frontName>customeremail</frontName>
|
| 44 |
</args>
|
| 45 |
-
</
|
| 46 |
<adminhtml>
|
| 47 |
<args>
|
| 48 |
<modules>
|
|
@@ -90,9 +90,9 @@
|
|
| 90 |
</translate>
|
| 91 |
<layout>
|
| 92 |
<updates>
|
| 93 |
-
<
|
| 94 |
<file>dexxtz/customeremail.xml</file>
|
| 95 |
-
</
|
| 96 |
</updates>
|
| 97 |
</layout>
|
| 98 |
</adminhtml>
|
|
@@ -118,14 +118,14 @@
|
|
| 118 |
</customeremail_read>
|
| 119 |
</resources>
|
| 120 |
<blocks>
|
| 121 |
-
<
|
| 122 |
<class>Dexxtz_Customeremail_Block</class>
|
| 123 |
-
</
|
| 124 |
</blocks>
|
| 125 |
<models>
|
| 126 |
-
<
|
| 127 |
<class>Dexxtz_Customeremail_Model</class>
|
| 128 |
-
</
|
| 129 |
</models>
|
| 130 |
<helpers>
|
| 131 |
<customeremail>
|
| 11 |
<config>
|
| 12 |
<modules>
|
| 13 |
<Dexxtz_Customeremail>
|
| 14 |
+
<version>1.0.2</version>
|
| 15 |
</Dexxtz_Customeremail>
|
| 16 |
</modules>
|
| 17 |
<frontend>
|
| 36 |
</frontend>
|
| 37 |
<admin>
|
| 38 |
<routers>
|
| 39 |
+
<customeremail>
|
| 40 |
<use>admin</use>
|
| 41 |
<args>
|
| 42 |
<module>Dexxtz_Customeremail</module>
|
| 43 |
<frontName>customeremail</frontName>
|
| 44 |
</args>
|
| 45 |
+
</customeremail>
|
| 46 |
<adminhtml>
|
| 47 |
<args>
|
| 48 |
<modules>
|
| 90 |
</translate>
|
| 91 |
<layout>
|
| 92 |
<updates>
|
| 93 |
+
<customeremail>
|
| 94 |
<file>dexxtz/customeremail.xml</file>
|
| 95 |
+
</customeremail>
|
| 96 |
</updates>
|
| 97 |
</layout>
|
| 98 |
</adminhtml>
|
| 118 |
</customeremail_read>
|
| 119 |
</resources>
|
| 120 |
<blocks>
|
| 121 |
+
<dexxtz_customeremail>
|
| 122 |
<class>Dexxtz_Customeremail_Block</class>
|
| 123 |
+
</dexxtz_customeremail>
|
| 124 |
</blocks>
|
| 125 |
<models>
|
| 126 |
+
<dexxtz_customeremail>
|
| 127 |
<class>Dexxtz_Customeremail_Model</class>
|
| 128 |
+
</dexxtz_customeremail>
|
| 129 |
</models>
|
| 130 |
<helpers>
|
| 131 |
<customeremail>
|
app/code/community/Dexxtz/Customeremail/etc/system.xml
CHANGED
|
@@ -37,7 +37,7 @@
|
|
| 37 |
<label>Customer groups</label>
|
| 38 |
<comment>Select one or more groups of customers</comment>
|
| 39 |
<frontend_type>multiselect</frontend_type>
|
| 40 |
-
<source_model>
|
| 41 |
<sort_order>10</sort_order>
|
| 42 |
<show_in_default>1</show_in_default>
|
| 43 |
<show_in_website>1</show_in_website>
|
|
@@ -46,7 +46,7 @@
|
|
| 46 |
<list_button translate="label">
|
| 47 |
<label>Access the client list</label>
|
| 48 |
<frontend_type>button</frontend_type>
|
| 49 |
-
<frontend_model>
|
| 50 |
<sort_order>20</sort_order>
|
| 51 |
<show_in_default>1</show_in_default>
|
| 52 |
<show_in_website>1</show_in_website>
|
| 37 |
<label>Customer groups</label>
|
| 38 |
<comment>Select one or more groups of customers</comment>
|
| 39 |
<frontend_type>multiselect</frontend_type>
|
| 40 |
+
<source_model>dexxtz_customeremail/system_config_source_customer_options</source_model>
|
| 41 |
<sort_order>10</sort_order>
|
| 42 |
<show_in_default>1</show_in_default>
|
| 43 |
<show_in_website>1</show_in_website>
|
| 46 |
<list_button translate="label">
|
| 47 |
<label>Access the client list</label>
|
| 48 |
<frontend_type>button</frontend_type>
|
| 49 |
+
<frontend_model>dexxtz_customeremail/system_config_source_list_button</frontend_model>
|
| 50 |
<sort_order>20</sort_order>
|
| 51 |
<show_in_default>1</show_in_default>
|
| 52 |
<show_in_website>1</show_in_website>
|
app/design/adminhtml/default/default/layout/dexxtz/customeremail.xml
CHANGED
|
@@ -9,7 +9,7 @@
|
|
| 9 |
*/
|
| 10 |
-->
|
| 11 |
<layout>
|
| 12 |
-
<
|
| 13 |
<update handle="dexxtz_list_index"/>
|
| 14 |
<reference name="head">
|
| 15 |
<action method="addCss"><stylesheet>dexxtz/customeremail/css/jquery.dataTables.css</stylesheet></action>
|
|
@@ -22,5 +22,5 @@
|
|
| 22 |
<block type="adminhtml/store_switcher" name="store_switcher" template="store/switcher.phtml" />
|
| 23 |
<block type="adminhtml/template" name="list" template="dexxtz/customeremail/list.phtml"/>
|
| 24 |
</reference>
|
| 25 |
-
</
|
| 26 |
</layout>
|
| 9 |
*/
|
| 10 |
-->
|
| 11 |
<layout>
|
| 12 |
+
<customeremail_adminhtml_list_index>
|
| 13 |
<update handle="dexxtz_list_index"/>
|
| 14 |
<reference name="head">
|
| 15 |
<action method="addCss"><stylesheet>dexxtz/customeremail/css/jquery.dataTables.css</stylesheet></action>
|
| 22 |
<block type="adminhtml/store_switcher" name="store_switcher" template="store/switcher.phtml" />
|
| 23 |
<block type="adminhtml/template" name="list" template="dexxtz/customeremail/list.phtml"/>
|
| 24 |
</reference>
|
| 25 |
+
</customeremail_adminhtml_list_index>
|
| 26 |
</layout>
|
app/design/adminhtml/default/default/template/dexxtz/customeremail/list.phtml
CHANGED
|
@@ -50,8 +50,8 @@
|
|
| 50 |
var locale = '<?php echo $locale ?>';
|
| 51 |
var string = '';
|
| 52 |
var newString = '';
|
| 53 |
-
var urlListAjax = '<?php echo Mage::getSingleton('adminhtml/url')->getUrl('
|
| 54 |
-
var urlExportCsv = '<?php echo Mage::getSingleton('adminhtml/url')->getUrl('
|
| 55 |
var formKey = '<?php echo Mage::getSingleton('core/session')->getFormKey();?>';
|
| 56 |
|
| 57 |
jQuery('#loading-mask').fadeIn('slow');
|
|
@@ -117,7 +117,7 @@
|
|
| 117 |
});
|
| 118 |
|
| 119 |
function exportCsv() {
|
| 120 |
-
var urlExportCsv = '<?php echo Mage::getSingleton('adminhtml/url')->getUrl('
|
| 121 |
var formKey = '<?php echo Mage::getSingleton('core/session')->getFormKey();?>';
|
| 122 |
|
| 123 |
jQuery('#loading-mask').fadeIn('slow');
|
| 50 |
var locale = '<?php echo $locale ?>';
|
| 51 |
var string = '';
|
| 52 |
var newString = '';
|
| 53 |
+
var urlListAjax = '<?php echo Mage::getSingleton('adminhtml/url')->getUrl('customeremail/adminhtml_listajax'); ?>';
|
| 54 |
+
var urlExportCsv = '<?php echo Mage::getSingleton('adminhtml/url')->getUrl('customeremail/adminhtml_exportcsv'); ?>';
|
| 55 |
var formKey = '<?php echo Mage::getSingleton('core/session')->getFormKey();?>';
|
| 56 |
|
| 57 |
jQuery('#loading-mask').fadeIn('slow');
|
| 117 |
});
|
| 118 |
|
| 119 |
function exportCsv() {
|
| 120 |
+
var urlExportCsv = '<?php echo Mage::getSingleton('adminhtml/url')->getUrl('customeremail/adminhtml_exportcsv'); ?>';
|
| 121 |
var formKey = '<?php echo Mage::getSingleton('core/session')->getFormKey();?>';
|
| 122 |
|
| 123 |
jQuery('#loading-mask').fadeIn('slow');
|
package.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Dexxtz_Customer_Email</name>
|
| 4 |
-
<version>1.0.
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://opensource.org/licenses/apachepl.php">Apache Software License</license>
|
| 7 |
<channel>community</channel>
|
|
@@ -10,9 +10,9 @@
|
|
| 10 |
<description>Easily list the emails of your customers, with filter and export to csv</description>
|
| 11 |
<notes>Started</notes>
|
| 12 |
<authors><author><name>Décio Mattos</name><user>auto-converted</user><email>dexxtz@gmail.com</email></author></authors>
|
| 13 |
-
<date>2014-10-
|
| 14 |
-
<time>23:
|
| 15 |
-
<contents><target name="magecommunity"><dir name="Dexxtz"><dir name="Customeremail"><dir name="Block"><dir name="System"><dir name="Config"><dir name="Source"><dir name="List"><file name="Button.php" hash="
|
| 16 |
<compatible/>
|
| 17 |
<dependencies/>
|
| 18 |
</package>
|
| 1 |
<?xml version="1.0"?>
|
| 2 |
<package>
|
| 3 |
<name>Dexxtz_Customer_Email</name>
|
| 4 |
+
<version>1.0.2</version>
|
| 5 |
<stability>stable</stability>
|
| 6 |
<license uri="http://opensource.org/licenses/apachepl.php">Apache Software License</license>
|
| 7 |
<channel>community</channel>
|
| 10 |
<description>Easily list the emails of your customers, with filter and export to csv</description>
|
| 11 |
<notes>Started</notes>
|
| 12 |
<authors><author><name>Décio Mattos</name><user>auto-converted</user><email>dexxtz@gmail.com</email></author></authors>
|
| 13 |
+
<date>2014-10-31</date>
|
| 14 |
+
<time>19:23:19</time>
|
| 15 |
+
<contents><target name="magecommunity"><dir name="Dexxtz"><dir name="Customeremail"><dir name="Block"><dir name="System"><dir name="Config"><dir name="Source"><dir name="List"><file name="Button.php" hash="00b435274ff6ae566f8e48448afb798b"/></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="365bb3c1338507829382e573d21c0299"/></dir><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><dir name="Customer"><file name="Options.php" hash="5ea8d4a2f721b9b28af60519bbd9b0f0"/></dir></dir></dir></dir></dir><dir name="controllers"><dir name="Adminhtml"><file name="ExportCsvController.php" hash="3451a1f77f4bb0824f58ae59fe332846"/><file name="ListController.php" hash="00846fc7b1e22d04389a0c19eeefe00a"/><file name="ListajaxController.php" hash="67dc465152be6447a39699dcdda90e3a"/></dir></dir><dir name="etc"><file name="config.xml" hash="c2705449cfac7ca26076898f5ecfee80"/><file name="system.xml" hash="8c94c6d98763cd3fcfbbcca365734a6d"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Dexxtz_Customeremail.xml" hash="4e43e3088d5d8b801c238d916a5befba"/></dir></target><target name="magedesign"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="template"><dir name="dexxtz"><dir name="customeremail"><file name="header.phtml" hash="1fcf4e588319607de35ae0fffced419b"/><file name="list.phtml" hash="f9e3ef375b8a149461d4320b4d29b51c"/></dir></dir></dir><dir name="layout"><dir name="dexxtz"><file name="customeremail.xml" hash="bc9810f4e1519b91617fd5ca75ae5211"/></dir></dir></dir></dir></dir></target><target name="magelocale"><dir name="pt_BR"><file name="Dexxtz_Customeremail.csv" hash="e1dec84f4e2a48593acaba15e95faa0b"/></dir><dir name="en_US"><file name="Dexxtz_Customeremail.csv" hash="b6077dcc26d66c7874ea38f719ca9fc4"/></dir></target><target name="mageskin"><dir name="adminhtml"><dir name="default"><dir name="default"><dir name="dexxtz"><dir name="customeremail"><dir name="css"><file name="dexxtz.css" hash="b4c790174b0bf3764fd0df3dd0d6dcac"/><file name="jquery.dataTables.css" hash="147487077531eca6abb91ff155ff5049"/></dir><dir name="images"><file name="btn_bg.gif" hash="37c51a4d48a92da9648dcd3ca011039f"/><file name="btn_over_bg.gif" hash="f91641168454c03d1fa72731ec97a2b3"/><file name="details.gif" hash="945d384963db2a1f1daae830c64a021b"/><file name="icon_btn_back.gif" hash="89ed97cede3f68241446a62c96e3ce4c"/><file name="massaction_bg.gif" hash="8b5f4db3ab3ea09cd5bd0164d67c4f0d"/><file name="sort_asc.png" hash="1d9061ce7c12f404388f3888057fa9fa"/><file name="sort_both.png" hash="32d7cb196243ffae4c4d7820e761452d"/><file name="sort_desc.png" hash="fa99d402d3f5b8885c3199afa40983ea"/><file name="sort_row_bg.gif" hash="f2e1c5cb26b9f5211419b99d30745244"/><file name="tr_hover.png" hash="3a315f8dc6236c20f329acec3665c242"/></dir><dir name="js"><file name="dexxtz.js" hash="8c9edc7eee77607bf7cd32c440013f59"/><file name="jquery-1.11.1.js" hash="4dc834d16a0d219d5c2b8a5b814569e4"/><file name="jquery.dataTables.js" hash="63eaebd530fec98840106c3d788e3a52"/></dir></dir></dir></dir></dir></dir></target></contents>
|
| 16 |
<compatible/>
|
| 17 |
<dependencies/>
|
| 18 |
</package>
|
