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

Commit

Permalink
Merge pull request #176 from mwgamble/store_code_managestores_grid
Browse files Browse the repository at this point in the history
Add custom column for store code to Manage Stores grid
  • Loading branch information
mage-eag committed Aug 4, 2015
2 parents 5703bf8 + a3b43b2 commit 9de348d
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 @@ -469,6 +469,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 @@ -1851,4 +1866,4 @@
</text>
</attribute>
</column_renderers>
</customgrid>
</customgrid>

0 comments on commit 9de348d

Please sign in to comment.