Version Notes
none / keine
Download this release
Release Info
Developer | Magento Core Team |
Extension | Mxperts_NoRegion |
Version | 0.1.4 |
Comparing to | |
See all releases |
Code changes from version 0.1.3 to 0.1.4
app/code/local/Mxperts/NoRegion/Block/Customer/Grid.php
CHANGED
@@ -23,13 +23,14 @@ class Mxperts_NoRegion_Block_Customer_Grid extends Mage_Adminhtml_Block_Widget_G
|
|
23 |
{
|
24 |
$collection = Mage::getResourceModel('customer/customer_collection')
|
25 |
->addNameToSelect()
|
26 |
-
|
27 |
->addAttributeToSelect('created_at')
|
28 |
->addAttributeToSelect('group_id')
|
29 |
->joinAttribute('billing_postcode', 'customer_address/postcode', 'default_billing', null, 'left')
|
30 |
->joinAttribute('billing_city', 'customer_address/city', 'default_billing', null, 'left')
|
31 |
->joinAttribute('billing_telephone', 'customer_address/telephone', 'default_billing', null, 'left')
|
32 |
//->joinAttribute('billing_region', 'customer_address/region', 'default_billing', null, 'left')
|
|
|
33 |
->joinAttribute('billing_country_id', 'customer_address/country_id', 'default_billing', null, 'left');
|
34 |
|
35 |
$this->setCollection($collection);
|
@@ -53,10 +54,19 @@ class Mxperts_NoRegion_Block_Customer_Grid extends Mage_Adminhtml_Block_Widget_G
|
|
53 |
'header' => Mage::helper('customer')->__('Last Name'),
|
54 |
'index' => 'lastname'
|
55 |
));*/
|
56 |
-
|
|
|
|
|
57 |
'header' => Mage::helper('customer')->__('Name'),
|
58 |
'index' => 'name'
|
59 |
-
));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
$this->addColumn('email', array(
|
61 |
'header' => Mage::helper('customer')->__('Email'),
|
62 |
'width' => '150',
|
@@ -144,6 +154,47 @@ class Mxperts_NoRegion_Block_Customer_Grid extends Mage_Adminhtml_Block_Widget_G
|
|
144 |
return parent::_prepareColumns();
|
145 |
}
|
146 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
147 |
public function getGridUrl()
|
148 |
{
|
149 |
return $this->getUrl('*/*/grid', array('_current'=> true));
|
23 |
{
|
24 |
$collection = Mage::getResourceModel('customer/customer_collection')
|
25 |
->addNameToSelect()
|
26 |
+
->addAttributeToSelect('email')
|
27 |
->addAttributeToSelect('created_at')
|
28 |
->addAttributeToSelect('group_id')
|
29 |
->joinAttribute('billing_postcode', 'customer_address/postcode', 'default_billing', null, 'left')
|
30 |
->joinAttribute('billing_city', 'customer_address/city', 'default_billing', null, 'left')
|
31 |
->joinAttribute('billing_telephone', 'customer_address/telephone', 'default_billing', null, 'left')
|
32 |
//->joinAttribute('billing_region', 'customer_address/region', 'default_billing', null, 'left')
|
33 |
+
//->joinAttribute('billing_company', 'customer_address/company', 'default_billing', null, 'left')
|
34 |
->joinAttribute('billing_country_id', 'customer_address/country_id', 'default_billing', null, 'left');
|
35 |
|
36 |
$this->setCollection($collection);
|
54 |
'header' => Mage::helper('customer')->__('Last Name'),
|
55 |
'index' => 'lastname'
|
56 |
));*/
|
57 |
+
|
58 |
+
|
59 |
+
$this->addColumn('name', array(
|
60 |
'header' => Mage::helper('customer')->__('Name'),
|
61 |
'index' => 'name'
|
62 |
+
));
|
63 |
+
|
64 |
+
//Our New Column for Company
|
65 |
+
/* $this->addColumn('billing_company', array(
|
66 |
+
'header' => Mage::helper('sales')->__('Company'),
|
67 |
+
'index' => 'billing_company'
|
68 |
+
)); */
|
69 |
+
|
70 |
$this->addColumn('email', array(
|
71 |
'header' => Mage::helper('customer')->__('Email'),
|
72 |
'width' => '150',
|
154 |
return parent::_prepareColumns();
|
155 |
}
|
156 |
|
157 |
+
protected function _prepareMassaction()
|
158 |
+
{
|
159 |
+
$this->setMassactionIdField('entity_id');
|
160 |
+
$this->getMassactionBlock()->setFormFieldName('customer');
|
161 |
+
|
162 |
+
$this->getMassactionBlock()->addItem('delete', array(
|
163 |
+
'label' => Mage::helper('customer')->__('Delete'),
|
164 |
+
'url' => $this->getUrl('*/*/massDelete'),
|
165 |
+
'confirm' => Mage::helper('customer')->__('Are you sure?')
|
166 |
+
));
|
167 |
+
|
168 |
+
$this->getMassactionBlock()->addItem('newsletter_subscribe', array(
|
169 |
+
'label' => Mage::helper('customer')->__('Subscribe to newsletter'),
|
170 |
+
'url' => $this->getUrl('*/*/massSubscribe')
|
171 |
+
));
|
172 |
+
|
173 |
+
$this->getMassactionBlock()->addItem('newsletter_unsubscribe', array(
|
174 |
+
'label' => Mage::helper('customer')->__('Unsubscribe from newsletter'),
|
175 |
+
'url' => $this->getUrl('*/*/massUnsubscribe')
|
176 |
+
));
|
177 |
+
|
178 |
+
$groups = $this->helper('customer')->getGroups()->toOptionArray();
|
179 |
+
|
180 |
+
array_unshift($groups, array('label'=> '', 'value'=> ''));
|
181 |
+
$this->getMassactionBlock()->addItem('assign_group', array(
|
182 |
+
'label' => Mage::helper('customer')->__('Assign a customer group'),
|
183 |
+
'url' => $this->getUrl('*/*/massAssignGroup'),
|
184 |
+
'additional' => array(
|
185 |
+
'visibility' => array(
|
186 |
+
'name' => 'group',
|
187 |
+
'type' => 'select',
|
188 |
+
'class' => 'required-entry',
|
189 |
+
'label' => Mage::helper('customer')->__('Group'),
|
190 |
+
'values' => $groups
|
191 |
+
)
|
192 |
+
)
|
193 |
+
));
|
194 |
+
|
195 |
+
return $this;
|
196 |
+
}
|
197 |
+
|
198 |
public function getGridUrl()
|
199 |
{
|
200 |
return $this->getUrl('*/*/grid', array('_current'=> true));
|
package.xml
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Mxperts_NoRegion</name>
|
4 |
-
<version>0.1.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL 3.0)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Hide "State / Province" on the Store-Frontend Versteckt "Bundesland / Kanton" im Shop-Frontend</summary>
|
10 |
-
<description>Hide "State / Province" on the Store-Frontend
|
11 |
<notes>none / keine</notes>
|
12 |
<authors><author><name>Daniel Sasse</name><user>auto-converted</user><email>sasse@mxperts.de</email></author><author><name>Johannes Teitge</name><user>auto-converted</user><email>teitge@tmedia.de</email></author><author><name>Igor Jankovic</name><user>auto-converted</user><email>jankovic@tmedia.de</email></author></authors>
|
13 |
-
<date>2009-11-
|
14 |
-
<time>
|
15 |
-
<contents><target name="mageetc"><dir name="modules"><file name="Mxperts_NoRegion.xml" hash="f9f52307b6775dc2182f844cb4acebd2"/></dir></target><target name="magelocal"><dir name="Mxperts"><dir name="NoRegion"><dir name="Block"><dir name="Customer"><dir name="Edit"><dir name="Tab"><file name="Addresses.php" hash="ec9fa7a3fb4014a979c306528d1935ff"/></dir></dir><file name="Grid.php" hash="
|
16 |
<compatible/>
|
17 |
<dependencies/>
|
18 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Mxperts_NoRegion</name>
|
4 |
+
<version>0.1.4</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL 3.0)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Hide "State / Province" on the Store-Frontend Versteckt "Bundesland / Kanton" im Shop-Frontend</summary>
|
10 |
+
<description>Hide "State / Province" on the Store-Frontend </description>
|
11 |
<notes>none / keine</notes>
|
12 |
<authors><author><name>Daniel Sasse</name><user>auto-converted</user><email>sasse@mxperts.de</email></author><author><name>Johannes Teitge</name><user>auto-converted</user><email>teitge@tmedia.de</email></author><author><name>Igor Jankovic</name><user>auto-converted</user><email>jankovic@tmedia.de</email></author></authors>
|
13 |
+
<date>2009-11-20</date>
|
14 |
+
<time>12:45:16</time>
|
15 |
+
<contents><target name="mageetc"><dir name="modules"><file name="Mxperts_NoRegion.xml" hash="f9f52307b6775dc2182f844cb4acebd2"/></dir></target><target name="magelocal"><dir name="Mxperts"><dir name="NoRegion"><dir name="Block"><dir name="Customer"><dir name="Edit"><dir name="Tab"><file name="Addresses.php" hash="ec9fa7a3fb4014a979c306528d1935ff"/></dir></dir><file name="Grid.php" hash="85aae7613b93143ae389e7843182c277"/></dir></dir><dir name="etc"><file name="config.xml" hash="f6d8868799a2f79bec36cfccd95028ae"/><file name="system.xml" hash="a7a81d2e1a70f4fb2ecffc19b35ee5e2"/></dir><dir name="Helper"><file name="Data.php" hash="6883e9931b37c228c87531fc99c2c3ec"/></dir><dir name="Model"><dir name="Quote"><file name="Address.php" hash="496da654002f7db614d611885d7e5eec"/></dir><file name="Address.php" hash="14918ff42e149f2c393e43383d8e426f"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="default"><dir name="default"><dir name="layout"><file name="noregion.xml" hash="0e2c1764957960890cff2686ad79ee70"/></dir><dir name="template"><dir name="noregion"><dir name="checkout"><dir name="onepage"><file name="billing.phtml" hash="4dc6857dea86e9fd8995da59a9cf1705"/><file name="shipping.phtml" hash="80a08c20dc1e7d0599659b9ffcf0a905"/></dir></dir><dir name="customer"><dir name="address"><file name="edit.phtml" hash="fbab0bdb301a3d462875cc5909530232"/></dir><dir name="form"><file name="address.phtml" hash="0851e7e981297662cdeac15a4d718e24"/><file name="register.phtml" hash="21458dd2f5641b7122e9ace73b014416"/></dir></dir></dir></dir></dir></dir></dir></target></contents>
|
16 |
<compatible/>
|
17 |
<dependencies/>
|
18 |
</package>
|