Skip to content
This repository has been archived by the owner on Sep 14, 2020. It is now read-only.

Commit

Permalink
Add custom column for store code to Manage Stores grid
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Gamble committed Aug 3, 2015
1 parent 8bc41ea commit a3b43b2
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
12 changes: 12 additions & 0 deletions app/code/community/BL/CustomGrid/Model/Grid/Type/System/Store.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

class BL_CustomGrid_Model_Grid_Type_System_Store extends BL_CustomGrid_Model_Grid_Type_Abstract
{
/**
* @return string[]|string
*/
protected function _getSupportedBlockTypes()
{
return array('adminhtml/system_store_grid');
}
}
17 changes: 16 additions & 1 deletion app/code/community/BL/CustomGrid/etc/customgrid.xml
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,21 @@
<name>Credit Memos</name>
<sort_order>230000</sort_order>
</sales_creditmemo>

<system_store model="customgrid/grid_type_system_store" module="customgrid">
<name>Manage Stores</name>
<sort_order>300000</sort_order>
<custom_columns>
<store_code model="customgrid/custom_column_simple_duplicate" module="customgrid">
<name>Store Code</name>
<description>The code for an individual store</description>
<config_params>
<duplicated_field_name>code</duplicated_field_name>
<duplicated_field_table_alias>store_table</duplicated_field_table_alias>
</config_params>
</store_code>
</custom_columns>
</system_store>

<other model="customgrid/grid_type_other" module="customgrid">
<name>Other</name>
Expand Down Expand Up @@ -1787,4 +1802,4 @@
</text>
</attribute>
</column_renderers>
</customgrid>
</customgrid>

0 comments on commit a3b43b2

Please sign in to comment.