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.
|
| 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>
|
| 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>
|
| 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.
|
| 5 |
<stability>stable</stability>
|
| 6 |
-
<license uri="https://
|
| 7 |
<channel>community</channel>
|
| 8 |
<extends/>
|
| 9 |
-
<summary>This
|
| 10 |
-
<description
|
| 11 |
-
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
<authors><author><name>Gilles Lesire</name><user>NobleHouse</user><email>gilles.lesire@gmail.com</email></author></authors>
|
| 14 |
-
<date>2016-
|
| 15 |
-
<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="
|
| 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><p>
|
| 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.
|
| 12 |
+
</p>
|
| 13 |
+

|
| 14 |
+
<h2>Overview</h2>
|
| 15 |
+
<ol>
|
| 16 |
+
<li>Features</li>
|
| 17 |
+
<li>Implementation</li>
|
| 18 |
+
<li>Configuration</li>
|
| 19 |
+
<li>Extra information</li>
|
| 20 |
+
</ol>
|
| 21 |
+
<h2>1. Features</h2>
|
| 22 |
+
<p>
|
| 23 |
+
Turn off any of the default columns with a simple Yes/No
|
| 24 |
+
Add new custom columns
|
| 25 |
+
Available custom columns are:
|
| 26 |
+
</p>
|
| 27 |
+
<p>
|
| 28 |
+
- Shipping country<br />
|
| 29 |
+
- Shipping region<br />
|
| 30 |
+
- Shipping city<br />
|
| 31 |
+
- Shipping postcode<br />
|
| 32 |
+
- Payment method<br />
|
| 33 |
+
- Shipping country<br />
|
| 34 |
+
- Billing country<br />
|
| 35 |
+
- Billing region<br />
|
| 36 |
+
- Billing city<br />
|
| 37 |
+
- Billing postcode<br />
|
| 38 |
+
- Customer email<br />
|
| 39 |
+
- Amount of items in the order<br />
|
| 40 |
+
- Subtotal<br />
|
| 41 |
+
- Customer Group<br />
|
| 42 |
+
- Weight<br />
|
| 43 |
+
- Remote IP<br />
|
| 44 |
+
</p>
|
| 45 |
+
<h2>2. Implementation</h2>
|
| 46 |
+
<p>
|
| 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
|
| 48 |
+
</p>
|
| 49 |
+
<p>
|
| 50 |
+
Usually you will be required to log out and log back in in order for it to work.
|
| 51 |
+
</p>
|
| 52 |
+
<h2>3. Configuration</h2>
|
| 53 |
+
<p>
|
| 54 |
+
Configuring the columns is very easy. Just login to your Magento Admin panel, go to Configuration. And on the left choose the &quot;Extended Order Grid&quot; link in the &quot;Noble Extensions&quot; section.
|
| 55 |
+
</p>
|
| 56 |
+
<h2>4. Extra information</h2>
|
| 57 |
+
<p>
|
| 58 |
+
Github: https://github.com/KingIsulgard/Magento-Noble-Extended-Order-Grid</p></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>
|
