Noble_Extended_Order_Grid - Version 1.0.2

Version Notes

Added extended columns Weight and Remote IP

Download this release

Release Info

Developer Gilles Lesire
Extension Noble_Extended_Order_Grid
Version 1.0.2
Comparing to
See all releases


Code changes from version 1.0.1 to 1.0.2

app/code/community/Noble/AdminOrderGrid/Block/Sales/Order/Grid.php CHANGED
@@ -50,6 +50,10 @@ class Noble_AdminOrderGrid_Block_Sales_Order_Grid extends Mage_Adminhtml_Block_W
50
  $orderFields["total_qty_ordered"] = "ROUND(total_qty_ordered,0)";
51
  }
52
 
 
 
 
 
53
  if(Mage::getStoreConfig('noble/extended_columns/customer_group')) {
54
  $orderFields["customer_group_id"] = "customer_group_id";
55
  }
@@ -58,6 +62,10 @@ class Noble_AdminOrderGrid_Block_Sales_Order_Grid extends Mage_Adminhtml_Block_W
58
  $orderFields["subtotal"] = "subtotal";
59
  }
60
 
 
 
 
 
61
  if(Mage::getStoreConfig('noble/extended_columns/billing_country')) {
62
  $billingFields["billing_country"] = "sfoba.country_id";
63
  }
@@ -164,6 +172,14 @@ class Noble_AdminOrderGrid_Block_Sales_Order_Grid extends Mage_Adminhtml_Block_W
164
  'width' => '40px'
165
  ));
166
  }
 
 
 
 
 
 
 
 
167
 
168
  if(Mage::getStoreConfig('noble/default_columns/base_grand_total')) {
169
  $this->addColumn('base_grand_total', array(
@@ -334,6 +350,14 @@ class Noble_AdminOrderGrid_Block_Sales_Order_Grid extends Mage_Adminhtml_Block_W
334
  ));
335
  }
336
 
 
 
 
 
 
 
 
 
337
  if(Mage::getStoreConfig('noble/default_columns/action')) {
338
  if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/view')) {
339
  $this->addColumn('action',
50
  $orderFields["total_qty_ordered"] = "ROUND(total_qty_ordered,0)";
51
  }
52
 
53
+ if(Mage::getStoreConfig('noble/extended_columns/weight')) {
54
+ $orderFields["weight"] = "weight";
55
+ }
56
+
57
  if(Mage::getStoreConfig('noble/extended_columns/customer_group')) {
58
  $orderFields["customer_group_id"] = "customer_group_id";
59
  }
62
  $orderFields["subtotal"] = "subtotal";
63
  }
64
 
65
+ if(Mage::getStoreConfig('noble/extended_columns/remote_ip')) {
66
+ $orderFields["remote_ip"] = "remote_ip";
67
+ }
68
+
69
  if(Mage::getStoreConfig('noble/extended_columns/billing_country')) {
70
  $billingFields["billing_country"] = "sfoba.country_id";
71
  }
172
  'width' => '40px'
173
  ));
174
  }
175
+
176
+ if(Mage::getStoreConfig('noble/extended_columns/weight')) {
177
+ $this->addColumn('weight', array(
178
+ 'header' => $this->__('Weight'),
179
+ 'index' => 'weight',
180
+ 'filter_index' => 'sfo.weight'
181
+ ));
182
+ }
183
 
184
  if(Mage::getStoreConfig('noble/default_columns/base_grand_total')) {
185
  $this->addColumn('base_grand_total', array(
350
  ));
351
  }
352
 
353
+ if(Mage::getStoreConfig('noble/extended_columns/remote_ip')) {
354
+ $this->addColumn('remote_ip', array(
355
+ 'header' => $this->__('Remote IP'),
356
+ 'index' => 'remote_ip',
357
+ 'filter_index' => 'sfo.remote_ip'
358
+ ));
359
+ }
360
+
361
  if(Mage::getStoreConfig('noble/default_columns/action')) {
362
  if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/view')) {
363
  $this->addColumn('action',
app/code/community/Noble/AdminOrderGrid/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Noble_AdminOrderGrid>
5
- <version>1.0.1</version>
6
  </Noble_AdminOrderGrid>
7
  </modules>
8
  <global>
@@ -44,8 +44,10 @@
44
  <billing_country>0</billing_country>
45
  <customer_email>0</customer_email>
46
  <amount_items>0</amount_items>
 
47
  <subtotal>0</subtotal>
48
  <customer_group>0</customer_group>
 
49
  </extended_columns>
50
  </noble>
51
  </default>
2
  <config>
3
  <modules>
4
  <Noble_AdminOrderGrid>
5
+ <version>1.0.2</version>
6
  </Noble_AdminOrderGrid>
7
  </modules>
8
  <global>
44
  <billing_country>0</billing_country>
45
  <customer_email>0</customer_email>
46
  <amount_items>0</amount_items>
47
+ <weight>0</weight>
48
  <subtotal>0</subtotal>
49
  <customer_group>0</customer_group>
50
+ <remote_ip>0</remote_ip>
51
  </extended_columns>
52
  </noble>
53
  </default>
app/code/community/Noble/AdminOrderGrid/etc/system.xml CHANGED
@@ -250,10 +250,19 @@
250
  <show_in_store>0</show_in_store>
251
  <source_model>adminhtml/system_config_source_yesno</source_model>
252
  </amount_items>
 
 
 
 
 
 
 
 
 
253
  <subtotal translate="label">
254
  <label>Subtotal: </label>
255
  <frontend_type>select</frontend_type>
256
- <sort_order>222</sort_order>
257
  <show_in_default>1</show_in_default>
258
  <show_in_website>0</show_in_website>
259
  <show_in_store>0</show_in_store>
@@ -262,12 +271,21 @@
262
  <customer_group translate="label">
263
  <label>Customer Group: </label>
264
  <frontend_type>select</frontend_type>
265
- <sort_order>223</sort_order>
266
  <show_in_default>1</show_in_default>
267
  <show_in_website>0</show_in_website>
268
  <show_in_store>0</show_in_store>
269
  <source_model>adminhtml/system_config_source_yesno</source_model>
270
  </customer_group>
 
 
 
 
 
 
 
 
 
271
  </fields>
272
  </extended_columns>
273
  </groups>
250
  <show_in_store>0</show_in_store>
251
  <source_model>adminhtml/system_config_source_yesno</source_model>
252
  </amount_items>
253
+ <weight translate="label">
254
+ <label>Weight: </label>
255
+ <frontend_type>select</frontend_type>
256
+ <sort_order>222</sort_order>
257
+ <show_in_default>1</show_in_default>
258
+ <show_in_website>0</show_in_website>
259
+ <show_in_store>0</show_in_store>
260
+ <source_model>adminhtml/system_config_source_yesno</source_model>
261
+ </weight>
262
  <subtotal translate="label">
263
  <label>Subtotal: </label>
264
  <frontend_type>select</frontend_type>
265
+ <sort_order>223</sort_order>
266
  <show_in_default>1</show_in_default>
267
  <show_in_website>0</show_in_website>
268
  <show_in_store>0</show_in_store>
271
  <customer_group translate="label">
272
  <label>Customer Group: </label>
273
  <frontend_type>select</frontend_type>
274
+ <sort_order>224</sort_order>
275
  <show_in_default>1</show_in_default>
276
  <show_in_website>0</show_in_website>
277
  <show_in_store>0</show_in_store>
278
  <source_model>adminhtml/system_config_source_yesno</source_model>
279
  </customer_group>
280
+ <remote_ip translate="label">
281
+ <label>Remote IP: </label>
282
+ <frontend_type>select</frontend_type>
283
+ <sort_order>225</sort_order>
284
+ <show_in_default>1</show_in_default>
285
+ <show_in_website>0</show_in_website>
286
+ <show_in_store>0</show_in_store>
287
+ <source_model>adminhtml/system_config_source_yesno</source_model>
288
+ </remote_ip>
289
  </fields>
290
  </extended_columns>
291
  </groups>
package.xml CHANGED
@@ -1,19 +1,66 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Noble_Extended_Order_Grid</name>
4
- <version>1.0.1</version>
5
  <stability>stable</stability>
6
- <license uri="https://github.com/KingIsulgard/Magento-Noble-Extended-Order-Grid/blob/master/license.md">GPL</license>
7
  <channel>community</channel>
8
  <extends/>
9
- <summary>This Magento extension gives the user the flexibility to customize the orders grid in the admin.</summary>
10
- <description>Noble Extended Order Grid&#xD;
11
- Features Turn off any of the default columns with a simple Yes/No Add new custom columns Available custom columns are: Shipping method Payment method Shipping country, Shipping Region, Shipping City, Shipping Postcode, Billing country , Billing Region, Billing City, Billing Postcode, Customer email Amount of items in the order Subtotal Customer Group Implementation Simply upload the files in the app folder to the app folder of your Magento installation. It is recommended to test this on a test server first. The current module has only been tested with Magento Community 1.7 Usually you will be required to log out and log back in in order for it to work. Configuration Configuring the columns is very easy. Just login to your Magento Admin panel, go to Configuration. And on the left choose the "Extended Order Grid" link in the "Noble Extensions" section. More information on github: https://github.com/KingIsulgard/Magento-Noble-Extended-Order-Grid</description>
12
- <notes>Added Shipping Region, Shipping CIty, Shipping Postcode, Billing Region, Billing CIty, Billing Postocde as extended custom columns. Also now you can choose to display countries either as the country code or the full country name.</notes>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  <authors><author><name>Gilles Lesire</name><user>NobleHouse</user><email>gilles.lesire@gmail.com</email></author></authors>
14
- <date>2016-01-29</date>
15
- <time>12:23:58</time>
16
- <contents><target name="magecommunity"><dir name="Noble"><dir name="AdminOrderGrid"><dir name="Block"><dir name="Sales"><dir name="Order"><dir name="Grid"><dir name="Renderer"><file name="CustomerGroup.php" hash="0415c522a79744de05fdbabbe293233d"/><file name="Paymentmethod.php" hash="2bd441864434d36cf455cb8fbf7fd399"/><file name="Shippingmethod.php" hash="fb337469e0f8f40b91d9efc5197c4ce2"/></dir></dir><file name="Grid.php" hash="700500dc0f8c93c0f8ed3a45c0abbf17"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="f26371c30f43b67fc7e8895e67af20b9"/></dir><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><dir name="Dropdown"><file name="Country.php" hash="15aaf45cb5ee39ac3dbf94cab44d46fd"/></dir></dir></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="dd8f9834661e4f43e6fe7b4176431b15"/><file name="config.xml" hash="9f85ca8c1ade56fc9efe463781ea01dd"/><file name="system.xml" hash="b0d2f023ccb98915176c404e89d48be0"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Noble_AdminOrderGrid.xml" hash="1637b9c7d1a23394272986444bc3880b"/></dir></target></contents>
17
  <compatible/>
18
  <dependencies><required><php><min>4.0.0</min><max>6.0.0</max></php></required></dependencies>
19
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Noble_Extended_Order_Grid</name>
4
+ <version>1.0.2</version>
5
  <stability>stable</stability>
6
+ <license uri="https://raw.githubusercontent.com/KingIsulgard/Magento-Noble-Extended-Order-Grid/master/license.md">GPL</license>
7
  <channel>community</channel>
8
  <extends/>
9
+ <summary>This extension gives the user the flexibility to customize the orders grid in the admin.</summary>
10
+ <description>&lt;p&gt;&#xD;
11
+ This extension gives the user the flexibility to customize the orders grid in the admin by removing existing columns or even adding custom columns to the grid.&#xD;
12
+ &lt;/p&gt;&#xD;
13
+ &#xD;
14
+ &lt;h2&gt;Overview&lt;/h2&gt;&#xD;
15
+ &lt;ol&gt;&#xD;
16
+ &lt;li&gt;Features&lt;/li&gt;&#xD;
17
+ &lt;li&gt;Implementation&lt;/li&gt;&#xD;
18
+ &lt;li&gt;Configuration&lt;/li&gt;&#xD;
19
+ &lt;li&gt;Extra information&lt;/li&gt;&#xD;
20
+ &lt;/ol&gt;&#xD;
21
+ &lt;h2&gt;1. Features&lt;/h2&gt;&#xD;
22
+ &lt;p&gt;&#xD;
23
+ Turn off any of the default columns with a simple Yes/No&#xD;
24
+ Add new custom columns&#xD;
25
+ Available custom columns are:&#xD;
26
+ &lt;/p&gt;&#xD;
27
+ &lt;p&gt;&#xD;
28
+ - Shipping country&lt;br /&gt;&#xD;
29
+ - Shipping region&lt;br /&gt;&#xD;
30
+ - Shipping city&lt;br /&gt;&#xD;
31
+ - Shipping postcode&lt;br /&gt;&#xD;
32
+ - Payment method&lt;br /&gt;&#xD;
33
+ - Shipping country&lt;br /&gt;&#xD;
34
+ - Billing country&lt;br /&gt;&#xD;
35
+ - Billing region&lt;br /&gt;&#xD;
36
+ - Billing city&lt;br /&gt;&#xD;
37
+ - Billing postcode&lt;br /&gt;&#xD;
38
+ - Customer email&lt;br /&gt;&#xD;
39
+ - Amount of items in the order&lt;br /&gt;&#xD;
40
+ - Subtotal&lt;br /&gt;&#xD;
41
+ - Customer Group&lt;br /&gt;&#xD;
42
+ - Weight&lt;br /&gt;&#xD;
43
+ - Remote IP&lt;br /&gt;&#xD;
44
+ &lt;/p&gt;&#xD;
45
+ &lt;h2&gt;2. Implementation&lt;/h2&gt;&#xD;
46
+ &lt;p&gt;&#xD;
47
+ Just install the module with Magento Connect. Log out and log back in and you are done. It is recommended to test this on a test server first. The current module has only been tested with Magento Community 1.7.X, 1.8.x, 1.9.x&#xD;
48
+ &lt;/p&gt;&#xD;
49
+ &lt;p&gt;&#xD;
50
+ Usually you will be required to log out and log back in in order for it to work.&#xD;
51
+ &lt;/p&gt;&#xD;
52
+ &lt;h2&gt;3. Configuration&lt;/h2&gt;&#xD;
53
+ &lt;p&gt;&#xD;
54
+ Configuring the columns is very easy. Just login to your Magento Admin panel, go to Configuration. And on the left choose the &amp;quot;Extended Order Grid&amp;quot; link in the &amp;quot;Noble Extensions&amp;quot; section.&#xD;
55
+ &lt;/p&gt;&#xD;
56
+ &lt;h2&gt;4. Extra information&lt;/h2&gt;&#xD;
57
+ &lt;p&gt;&#xD;
58
+ Github: https://github.com/KingIsulgard/Magento-Noble-Extended-Order-Grid&lt;/p&gt;</description>
59
+ <notes>Added extended columns Weight and Remote IP</notes>
60
  <authors><author><name>Gilles Lesire</name><user>NobleHouse</user><email>gilles.lesire@gmail.com</email></author></authors>
61
+ <date>2016-02-03</date>
62
+ <time>11:08:41</time>
63
+ <contents><target name="magecommunity"><dir name="Noble"><dir name="AdminOrderGrid"><dir name="Block"><dir name="Sales"><dir name="Order"><dir name="Grid"><dir name="Renderer"><file name="CustomerGroup.php" hash="0415c522a79744de05fdbabbe293233d"/><file name="Paymentmethod.php" hash="2bd441864434d36cf455cb8fbf7fd399"/><file name="Shippingmethod.php" hash="fb337469e0f8f40b91d9efc5197c4ce2"/></dir></dir><file name="Grid.php" hash="eea00fec48b19884f46c14b2110422df"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="f26371c30f43b67fc7e8895e67af20b9"/></dir><dir name="Model"><dir name="System"><dir name="Config"><dir name="Source"><dir name="Dropdown"><file name="Country.php" hash="15aaf45cb5ee39ac3dbf94cab44d46fd"/></dir></dir></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="dd8f9834661e4f43e6fe7b4176431b15"/><file name="config.xml" hash="467754d8e88bf2616c4cb3184f973f0f"/><file name="system.xml" hash="82875e917a5dc2a1b8a9647ab0a610f9"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Noble_AdminOrderGrid.xml" hash="1637b9c7d1a23394272986444bc3880b"/></dir></target></contents>
64
  <compatible/>
65
  <dependencies><required><php><min>4.0.0</min><max>6.0.0</max></php></required></dependencies>
66
  </package>