Version Notes
Hide columns in sales grids - easily remove any column not required
Download this release
Release Info
Developer | harpreet |
Extension | Mfp_CustomeGrid |
Version | 1.0.0 |
Comparing to | |
See all releases |
Version 1.0.0
- app/code/local/Mfp/CustomeGrid/Block/Adminhtml/CustomeGridbackend.php +5 -0
- app/code/local/Mfp/CustomeGrid/Block/Adminhtml/Order/Grid.php +330 -0
- app/code/local/Mfp/CustomeGrid/Helper/Data.php +5 -0
- app/code/local/Mfp/CustomeGrid/controllers/Adminhtml/CustomegridbackendController.php +10 -0
- app/code/local/Mfp/CustomeGrid/etc/config.xml +70 -0
- app/code/local/Mfp/CustomeGrid/etc/system.xml +91 -0
- app/etc/modules/Mfp_CustomeGrid.xml +10 -0
- package.xml +19 -0
app/code/local/Mfp/CustomeGrid/Block/Adminhtml/CustomeGridbackend.php
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
class Mfp_CustomeGrid_Block_Adminhtml_CustomeGridbackend extends Mage_Adminhtml_Block_Template {
|
4 |
+
|
5 |
+
}
|
app/code/local/Mfp/CustomeGrid/Block/Adminhtml/Order/Grid.php
ADDED
@@ -0,0 +1,330 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Magento
|
4 |
+
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* DISCLAIMER
|
16 |
+
*
|
17 |
+
* Do not edit or add to this file if you wish to upgrade Magento to newer
|
18 |
+
* versions in the future. If you wish to customize Magento for your
|
19 |
+
* needs please refer to http://www.magentocommerce.com for more information.
|
20 |
+
*
|
21 |
+
* @category Mage
|
22 |
+
* @package Mage_Adminhtml
|
23 |
+
* @copyright Copyright (c) 2014 Magento Inc. (http://www.magentocommerce.com)
|
24 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
25 |
+
*/
|
26 |
+
|
27 |
+
/**
|
28 |
+
* Adminhtml sales orders grid
|
29 |
+
*
|
30 |
+
* @category Mage
|
31 |
+
* @package Mage_Adminhtml
|
32 |
+
* @author Magento Core Team <core@magentocommerce.com>
|
33 |
+
*/
|
34 |
+
class Mfp_CustomeGrid_Block_Adminhtml_Order_Grid extends Mage_Adminhtml_Block_Widget_Grid
|
35 |
+
{
|
36 |
+
|
37 |
+
public function __construct()
|
38 |
+
{
|
39 |
+
parent::__construct();
|
40 |
+
$this->setId('sales_order_grid');
|
41 |
+
$this->setUseAjax(true);
|
42 |
+
$this->setDefaultSort('created_at');
|
43 |
+
$this->setDefaultDir('DESC');
|
44 |
+
$this->setSaveParametersInSession(true);
|
45 |
+
}
|
46 |
+
|
47 |
+
/**
|
48 |
+
* Retrieve collection class
|
49 |
+
*
|
50 |
+
* @return string
|
51 |
+
*/
|
52 |
+
protected function _getCollectionClass()
|
53 |
+
{
|
54 |
+
return 'sales/order_grid_collection';
|
55 |
+
}
|
56 |
+
|
57 |
+
protected function _prepareCollection()
|
58 |
+
{
|
59 |
+
$collection = Mage::getResourceModel($this->_getCollectionClass());
|
60 |
+
$collection->getSelect()->join(array(
|
61 |
+
'item'=>$collection->getTable('sales/order_item')),
|
62 |
+
'item.order_id=`main_table`.entity_id AND item.product_type="simple"',
|
63 |
+
array(
|
64 |
+
'sku' => new Zend_Db_Expr('group_concat(item.sku SEPARATOR ", ")'),
|
65 |
+
'name' => new Zend_Db_Expr('group_concat(item.name SEPARATOR ", ")'),
|
66 |
+
)
|
67 |
+
);
|
68 |
+
|
69 |
+
$collection->getSelect()->group('main_table.entity_id');
|
70 |
+
|
71 |
+
//$collection->join('sales/order_item', 'order_id=entity_id', array('name'=>'name', 'sku' =>'sku', 'qty_ordered'=>'qty_ordered' ), null,'left');
|
72 |
+
$collection->getSelect()->joinLeft('sales_flat_order', 'sales_flat_order.increment_id = main_table.increment_id',array('customer_firstname'));
|
73 |
+
$collection->getSelect()->joinLeft('sales_flat_order_address', 'sales_flat_order_address.parent_id = main_table.entity_id And address_type = "billing"',array('email','city','postcode','telephone'));
|
74 |
+
//$select->distinct();
|
75 |
+
|
76 |
+
$this->setCollection($collection);
|
77 |
+
return parent::_prepareCollection();
|
78 |
+
}
|
79 |
+
|
80 |
+
protected function _prepareColumns()
|
81 |
+
{
|
82 |
+
$sku = Mage::getStoreConfig('customegrid_section/customegrid_group/sku');
|
83 |
+
$email = Mage::getStoreConfig('customegrid_section/customegrid_group/customer_email');
|
84 |
+
$postcode = Mage::getStoreConfig('customegrid_section/customegrid_group/postcode');
|
85 |
+
$city = Mage::getStoreConfig('customegrid_section/customegrid_group/city');
|
86 |
+
$billing_name = Mage::getStoreConfig('customegrid_section/customegrid_group/billing_name');
|
87 |
+
|
88 |
+
|
89 |
+
$this->addColumn('real_order_id', array(
|
90 |
+
'header'=> Mage::helper('sales')->__('Order #'),
|
91 |
+
'width' => '80px',
|
92 |
+
'type' => 'text',
|
93 |
+
'index' => 'increment_id',
|
94 |
+
'filter_index' => 'main_table.increment_id'
|
95 |
+
|
96 |
+
));
|
97 |
+
|
98 |
+
if (!Mage::app()->isSingleStoreMode()) {
|
99 |
+
$this->addColumn('store_id', array(
|
100 |
+
'header' => Mage::helper('sales')->__('Purchased From (Store)'),
|
101 |
+
'index' => 'store_id',
|
102 |
+
'type' => 'store',
|
103 |
+
'filter_index' => 'main_table.store_id',
|
104 |
+
|
105 |
+
'store_view'=> true,
|
106 |
+
'display_deleted' => true,
|
107 |
+
));
|
108 |
+
}
|
109 |
+
|
110 |
+
$this->addColumn('created_at', array(
|
111 |
+
'header' => Mage::helper('sales')->__('Purchased On'),
|
112 |
+
'index' => 'created_at',
|
113 |
+
'type' => 'datetime',
|
114 |
+
'width' => '100px',
|
115 |
+
'filter_index' => 'main_table.created_at',
|
116 |
+
|
117 |
+
));
|
118 |
+
if($sku == '1')
|
119 |
+
{
|
120 |
+
$this->addColumn('sku', array(
|
121 |
+
'header' => Mage::helper('catalog')->__('SKU'),
|
122 |
+
'index' => 'sku',
|
123 |
+
'type' => 'text',
|
124 |
+
'filter_index' => 'item.sku'
|
125 |
+
|
126 |
+
));
|
127 |
+
|
128 |
+
$this->addColumn('name', array(
|
129 |
+
'header' => Mage::helper('catalog')->__('Product Name'),
|
130 |
+
'index' => 'name',
|
131 |
+
'type' => 'text',
|
132 |
+
'filter_index' => 'item.name'
|
133 |
+
|
134 |
+
));
|
135 |
+
|
136 |
+
}
|
137 |
+
if($billing_name == '1')
|
138 |
+
{
|
139 |
+
$this->addColumn('customer_firstname', array(
|
140 |
+
'header'=> Mage::helper('sales')->__('First Name'),
|
141 |
+
'width' => '80px',
|
142 |
+
'type' => 'text',
|
143 |
+
'index' => 'customer_firstname',
|
144 |
+
'filter_index' => 'sales_flat_order.customer_firstname'
|
145 |
+
|
146 |
+
));
|
147 |
+
}
|
148 |
+
if($email == '1')
|
149 |
+
{
|
150 |
+
|
151 |
+
|
152 |
+
$this->addColumn('email', array(
|
153 |
+
'header'=> Mage::helper('sales')->__('Customer Email'),
|
154 |
+
'width' => '80px',
|
155 |
+
'type' => 'text',
|
156 |
+
'index' => 'email',
|
157 |
+
'filter_index' => 'sales_flat_order_address.email'
|
158 |
+
|
159 |
+
));
|
160 |
+
}
|
161 |
+
|
162 |
+
if($city == '1')
|
163 |
+
{
|
164 |
+
|
165 |
+
$this->addColumn('city', array(
|
166 |
+
'header'=> Mage::helper('sales')->__('City'),
|
167 |
+
'width' => '80px',
|
168 |
+
'type' => 'text',
|
169 |
+
'index' => 'city',
|
170 |
+
'filter_index' => 'sales_flat_order_address.city'
|
171 |
+
|
172 |
+
));
|
173 |
+
|
174 |
+
}
|
175 |
+
|
176 |
+
if($postcode == '1')
|
177 |
+
{
|
178 |
+
|
179 |
+
|
180 |
+
$this->addColumn('postcode', array(
|
181 |
+
'header'=> Mage::helper('sales')->__('Postcode'),
|
182 |
+
'width' => '80px',
|
183 |
+
'type' => 'text',
|
184 |
+
'index' => 'postcode',
|
185 |
+
'filter_index' => 'sales_flat_order_address.postcode'
|
186 |
+
|
187 |
+
));
|
188 |
+
}
|
189 |
+
|
190 |
+
$this->addColumn('billing_name', array(
|
191 |
+
'header' => Mage::helper('sales')->__('Bill to Name'),
|
192 |
+
'index' => 'billing_name',
|
193 |
+
'filter_index' => 'main_table.billing_name'
|
194 |
+
|
195 |
+
));
|
196 |
+
|
197 |
+
$this->addColumn('shipping_name', array(
|
198 |
+
'header' => Mage::helper('sales')->__('Ship to Name'),
|
199 |
+
'index' => 'shipping_name',
|
200 |
+
'filter_index' => 'main_table.shipping_name'
|
201 |
+
|
202 |
+
));
|
203 |
+
|
204 |
+
$this->addColumn('base_grand_total', array(
|
205 |
+
'header' => Mage::helper('sales')->__('G.T. (Base)'),
|
206 |
+
'index' => 'base_grand_total',
|
207 |
+
'type' => 'currency',
|
208 |
+
'currency' => 'base_currency_code',
|
209 |
+
'filter_index' => 'main_table.base_grand_total'
|
210 |
+
|
211 |
+
));
|
212 |
+
|
213 |
+
$this->addColumn('grand_total', array(
|
214 |
+
'header' => Mage::helper('sales')->__('G.T. (Purchased)'),
|
215 |
+
'index' => 'grand_total',
|
216 |
+
'type' => 'currency',
|
217 |
+
'currency' => 'order_currency_code',
|
218 |
+
'filter_index' => 'main_table.grand_total'
|
219 |
+
|
220 |
+
));
|
221 |
+
|
222 |
+
$this->addColumn('status', array(
|
223 |
+
'header' => Mage::helper('sales')->__('Status'),
|
224 |
+
'index' => 'status',
|
225 |
+
'type' => 'options',
|
226 |
+
'width' => '70px',
|
227 |
+
'options' => Mage::getSingleton('sales/order_config')->getStatuses(),
|
228 |
+
'filter_index' => 'main_table.shipping_name'
|
229 |
+
|
230 |
+
));
|
231 |
+
|
232 |
+
if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/view')) {
|
233 |
+
$this->addColumn('action',
|
234 |
+
array(
|
235 |
+
'header' => Mage::helper('sales')->__('Action'),
|
236 |
+
'width' => '50px',
|
237 |
+
'type' => 'action',
|
238 |
+
'getter' => 'getId',
|
239 |
+
'actions' => array(
|
240 |
+
array(
|
241 |
+
'caption' => Mage::helper('sales')->__('View'),
|
242 |
+
'url' => array('base'=>'*/sales_order/view'),
|
243 |
+
'field' => 'order_id',
|
244 |
+
'data-column' => 'action',
|
245 |
+
)
|
246 |
+
),
|
247 |
+
'filter' => false,
|
248 |
+
'sortable' => false,
|
249 |
+
'index' => 'stores',
|
250 |
+
'is_system' => true,
|
251 |
+
'filter_index' => 'main_table.stores'
|
252 |
+
));
|
253 |
+
}
|
254 |
+
$this->addRssList('rss/order/new', Mage::helper('sales')->__('New Order RSS'));
|
255 |
+
|
256 |
+
$this->addExportType('*/*/exportCsv', Mage::helper('sales')->__('CSV'));
|
257 |
+
$this->addExportType('*/*/exportExcel', Mage::helper('sales')->__('Excel XML'));
|
258 |
+
|
259 |
+
return parent::_prepareColumns();
|
260 |
+
}
|
261 |
+
|
262 |
+
protected function _prepareMassaction()
|
263 |
+
{
|
264 |
+
$this->setMassactionIdField('entity_id');
|
265 |
+
$this->getMassactionBlock()->setFormFieldName('order_ids');
|
266 |
+
$this->getMassactionBlock()->setUseSelectAll(false);
|
267 |
+
|
268 |
+
if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/cancel')) {
|
269 |
+
$this->getMassactionBlock()->addItem('cancel_order', array(
|
270 |
+
'label'=> Mage::helper('sales')->__('Cancel'),
|
271 |
+
'url' => $this->getUrl('*/sales_order/massCancel'),
|
272 |
+
));
|
273 |
+
}
|
274 |
+
|
275 |
+
if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/hold')) {
|
276 |
+
$this->getMassactionBlock()->addItem('hold_order', array(
|
277 |
+
'label'=> Mage::helper('sales')->__('Hold'),
|
278 |
+
'url' => $this->getUrl('*/sales_order/massHold'),
|
279 |
+
));
|
280 |
+
}
|
281 |
+
|
282 |
+
if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/unhold')) {
|
283 |
+
$this->getMassactionBlock()->addItem('unhold_order', array(
|
284 |
+
'label'=> Mage::helper('sales')->__('Unhold'),
|
285 |
+
'url' => $this->getUrl('*/sales_order/massUnhold'),
|
286 |
+
));
|
287 |
+
}
|
288 |
+
|
289 |
+
$this->getMassactionBlock()->addItem('pdfinvoices_order', array(
|
290 |
+
'label'=> Mage::helper('sales')->__('Print Invoices'),
|
291 |
+
'url' => $this->getUrl('*/sales_order/pdfinvoices'),
|
292 |
+
));
|
293 |
+
|
294 |
+
$this->getMassactionBlock()->addItem('pdfshipments_order', array(
|
295 |
+
'label'=> Mage::helper('sales')->__('Print Packingslips'),
|
296 |
+
'url' => $this->getUrl('*/sales_order/pdfshipments'),
|
297 |
+
));
|
298 |
+
|
299 |
+
$this->getMassactionBlock()->addItem('pdfcreditmemos_order', array(
|
300 |
+
'label'=> Mage::helper('sales')->__('Print Credit Memos'),
|
301 |
+
'url' => $this->getUrl('*/sales_order/pdfcreditmemos'),
|
302 |
+
));
|
303 |
+
|
304 |
+
$this->getMassactionBlock()->addItem('pdfdocs_order', array(
|
305 |
+
'label'=> Mage::helper('sales')->__('Print All'),
|
306 |
+
'url' => $this->getUrl('*/sales_order/pdfdocs'),
|
307 |
+
));
|
308 |
+
|
309 |
+
$this->getMassactionBlock()->addItem('print_shipping_label', array(
|
310 |
+
'label'=> Mage::helper('sales')->__('Print Shipping Labels'),
|
311 |
+
'url' => $this->getUrl('*/sales_order_shipment/massPrintShippingLabel'),
|
312 |
+
));
|
313 |
+
|
314 |
+
return $this;
|
315 |
+
}
|
316 |
+
|
317 |
+
public function getRowUrl($row)
|
318 |
+
{
|
319 |
+
if (Mage::getSingleton('admin/session')->isAllowed('sales/order/actions/view')) {
|
320 |
+
return $this->getUrl('*/sales_order/view', array('order_id' => $row->getId()));
|
321 |
+
}
|
322 |
+
return false;
|
323 |
+
}
|
324 |
+
|
325 |
+
public function getGridUrl()
|
326 |
+
{
|
327 |
+
return $this->getUrl('*/*/grid', array('_current'=>true));
|
328 |
+
}
|
329 |
+
|
330 |
+
}
|
app/code/local/Mfp/CustomeGrid/Helper/Data.php
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Mfp_CustomeGrid_Helper_Data extends Mage_Core_Helper_Abstract
|
3 |
+
{
|
4 |
+
}
|
5 |
+
|
app/code/local/Mfp/CustomeGrid/controllers/Adminhtml/CustomegridbackendController.php
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
class Mfp_CustomeGrid_Adminhtml_CustomegridbackendController extends Mage_Adminhtml_Controller_Action
|
3 |
+
{
|
4 |
+
public function indexAction()
|
5 |
+
{
|
6 |
+
$this->loadLayout();
|
7 |
+
$this->_title($this->__("Backend Page Title"));
|
8 |
+
$this->renderLayout();
|
9 |
+
}
|
10 |
+
}
|
app/code/local/Mfp/CustomeGrid/etc/config.xml
ADDED
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Mfp_CustomeGrid>
|
5 |
+
<version>1.0.0</version>
|
6 |
+
</Mfp_CustomeGrid>
|
7 |
+
</modules>
|
8 |
+
<global>
|
9 |
+
<helpers>
|
10 |
+
<customegrid>
|
11 |
+
<class>Mfp_CustomeGrid_Helper</class>
|
12 |
+
</customegrid>
|
13 |
+
</helpers>
|
14 |
+
<!--<blocks>
|
15 |
+
<customegrid>
|
16 |
+
<class>Mfp_CustomeGrid_Block</class>
|
17 |
+
</customegrid>
|
18 |
+
</blocks>-->
|
19 |
+
<blocks>
|
20 |
+
<adminhtml>
|
21 |
+
<rewrite>
|
22 |
+
<sales_order_grid>Mfp_CustomeGrid_Block_Adminhtml_Order_Grid</sales_order_grid>
|
23 |
+
</rewrite>
|
24 |
+
</adminhtml>
|
25 |
+
</blocks>
|
26 |
+
|
27 |
+
</global>
|
28 |
+
<adminhtml>
|
29 |
+
<menu>
|
30 |
+
<customegrid module="customegrid">
|
31 |
+
<title>Order Grid</title>
|
32 |
+
<sort_order>100</sort_order>
|
33 |
+
<children>
|
34 |
+
<customegridbackend module="customegrid">
|
35 |
+
<title>Settings</title>
|
36 |
+
<sort_order>0</sort_order>
|
37 |
+
<action>adminhtml/system_config/edit/section/customegrid_section</action>
|
38 |
+
</customegridbackend>
|
39 |
+
</children>
|
40 |
+
</customegrid>
|
41 |
+
</menu>
|
42 |
+
<acl>
|
43 |
+
<resources>
|
44 |
+
<admin>
|
45 |
+
<children>
|
46 |
+
<system>
|
47 |
+
<children>
|
48 |
+
<config>
|
49 |
+
<children>
|
50 |
+
<customegrid_section translate="title" module="customegrid">
|
51 |
+
<title>customegrid</title>
|
52 |
+
<sort_order>100</sort_order>
|
53 |
+
</customegrid_section>
|
54 |
+
</children>
|
55 |
+
</config>
|
56 |
+
</children>
|
57 |
+
</system>
|
58 |
+
</children>
|
59 |
+
</admin>
|
60 |
+
</resources>
|
61 |
+
</acl>
|
62 |
+
<layout>
|
63 |
+
<updates>
|
64 |
+
<customegrid>
|
65 |
+
<file>customegrid.xml</file>
|
66 |
+
</customegrid>
|
67 |
+
</updates>
|
68 |
+
</layout>
|
69 |
+
</adminhtml>
|
70 |
+
</config>
|
app/code/local/Mfp/CustomeGrid/etc/system.xml
ADDED
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" ?>
|
2 |
+
<config>
|
3 |
+
<tabs>
|
4 |
+
<customegrid_tab module="customegrid" translate="label">
|
5 |
+
<label>Order Grid</label>
|
6 |
+
<sort_order>100</sort_order>
|
7 |
+
</customegrid_tab>
|
8 |
+
</tabs>
|
9 |
+
<sections>
|
10 |
+
<customegrid_section module="customegrid" translate="label">
|
11 |
+
<label>Grid Settings</label>
|
12 |
+
<sort_order>200</sort_order>
|
13 |
+
<show_in_default>1</show_in_default>
|
14 |
+
<show_in_website>1</show_in_website>
|
15 |
+
<show_in_store>1</show_in_store>
|
16 |
+
<tab>customegrid_tab</tab>
|
17 |
+
<groups>
|
18 |
+
<customegrid_group translate="label">
|
19 |
+
<label>General</label>
|
20 |
+
<sort_order>10</sort_order>
|
21 |
+
<show_in_default>1</show_in_default>
|
22 |
+
<show_in_website>1</show_in_website>
|
23 |
+
<show_in_store>1</show_in_store>
|
24 |
+
<fields>
|
25 |
+
|
26 |
+
<customer_email translate="label tooltip comment">
|
27 |
+
<label>Customer Email</label>
|
28 |
+
<sort_order>30</sort_order>
|
29 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
30 |
+
<tooltip>Field ToolTip</tooltip>
|
31 |
+
<show_in_default>1</show_in_default>
|
32 |
+
<show_in_website>1</show_in_website>
|
33 |
+
<show_in_store>1</show_in_store>
|
34 |
+
<frontend_type>select</frontend_type>
|
35 |
+
</customer_email>
|
36 |
+
|
37 |
+
|
38 |
+
<city translate="label tooltip comment">
|
39 |
+
<label>City</label>
|
40 |
+
<sort_order>50</sort_order>
|
41 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
42 |
+
<tooltip>Field ToolTip</tooltip>
|
43 |
+
<show_in_default>1</show_in_default>
|
44 |
+
<show_in_website>1</show_in_website>
|
45 |
+
<show_in_store>1</show_in_store>
|
46 |
+
<frontend_type>select</frontend_type>
|
47 |
+
</city>
|
48 |
+
|
49 |
+
<postcode translate="label tooltip comment">
|
50 |
+
<label>Postcode</label>
|
51 |
+
<sort_order>50</sort_order>
|
52 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
53 |
+
<tooltip>Field ToolTip</tooltip>
|
54 |
+
<show_in_default>1</show_in_default>
|
55 |
+
<show_in_website>1</show_in_website>
|
56 |
+
<show_in_store>1</show_in_store>
|
57 |
+
<frontend_type>select</frontend_type>
|
58 |
+
</postcode>
|
59 |
+
|
60 |
+
<billing_name translate="label tooltip comment">
|
61 |
+
<label>Billing Name</label>
|
62 |
+
<sort_order>60</sort_order>
|
63 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
64 |
+
<tooltip>Field ToolTip</tooltip>
|
65 |
+
<show_in_default>1</show_in_default>
|
66 |
+
<show_in_website>1</show_in_website>
|
67 |
+
<show_in_store>1</show_in_store>
|
68 |
+
<frontend_type>select</frontend_type>
|
69 |
+
</billing_name>
|
70 |
+
|
71 |
+
<sku translate="label tooltip comment">
|
72 |
+
<label>Product Sku or Name</label>
|
73 |
+
<sort_order>70</sort_order>
|
74 |
+
<source_model>adminhtml/system_config_source_yesno</source_model>
|
75 |
+
<tooltip>Field ToolTip</tooltip>
|
76 |
+
<show_in_default>1</show_in_default>
|
77 |
+
<show_in_website>1</show_in_website>
|
78 |
+
<show_in_store>1</show_in_store>
|
79 |
+
<frontend_type>select</frontend_type>
|
80 |
+
</sku>
|
81 |
+
|
82 |
+
|
83 |
+
|
84 |
+
|
85 |
+
|
86 |
+
</fields>
|
87 |
+
</customegrid_group>
|
88 |
+
</groups>
|
89 |
+
</customegrid_section>
|
90 |
+
</sections>
|
91 |
+
</config>
|
app/etc/modules/Mfp_CustomeGrid.xml
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<config>
|
3 |
+
<modules>
|
4 |
+
<Mfp_CustomeGrid>
|
5 |
+
<active>true</active>
|
6 |
+
<codePool>community</codePool>
|
7 |
+
<version>1.0.0</version>
|
8 |
+
</Mfp_CustomeGrid>
|
9 |
+
</modules>
|
10 |
+
</config>
|
package.xml
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0"?>
|
2 |
+
<package>
|
3 |
+
<name>Mfp_CustomeGrid</name>
|
4 |
+
<version>1.0.0</version>
|
5 |
+
<stability>stable</stability>
|
6 |
+
<license uri="http://opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
|
7 |
+
<channel>community</channel>
|
8 |
+
<extends/>
|
9 |
+
<summary>Customizing your sales grids has never been easier before!</summary>
|
10 |
+
<description>This extension allows you to customize all sales grids Orders,</description>
|
11 |
+
<notes>Hide columns in sales grids - easily remove any column not required
|
12 |
+
</notes>
|
13 |
+
<authors><author><name>harpreet</name><user>princehar1987</user><email>harpreetsinghphp@gmail.com</email></author></authors>
|
14 |
+
<date>2015-09-23</date>
|
15 |
+
<time>17:22:59</time>
|
16 |
+
<contents><target name="magelocal"><dir name="Mfp"><dir name="CustomeGrid"><dir name="Block"><dir name="Adminhtml"><file name="CustomeGridbackend.php" hash="5dfde622f679b97742d06bcba30ab90e"/><dir name="Order"><file name="Grid.php" hash="abe3b5e61338765bd3e29a0131cf5279"/></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="5b7f49ccb618b2b362f5e289982c1c83"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="CustomegridbackendController.php" hash="41d98b0418ef37a71eaf25c0ca8269e0"/></dir></dir><dir name="etc"><file name="config.xml" hash="833fffaee33f4e76c003825e1a07442a"/><file name="system.xml" hash="4023c7c49d1d94607f66d12b63717a43"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Mfp_CustomeGrid.xml" hash="a50fccaa2a11cf7680bc6b7a90f87d58"/></dir></target></contents>
|
17 |
+
<compatible/>
|
18 |
+
<dependencies><required><php><min>5.1.0</min><max>6.0.0</max></php></required></dependencies>
|
19 |
+
</package>
|