File tree Expand file tree Collapse file tree 4 files changed +8
-5
lines changed
Backend/Block/System/Store/Grid/Render
Store/Model/ResourceModel/Website Expand file tree Collapse file tree 4 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ public function render(\Magento\Framework\DataObject $row)
27
27
$ this ->getUrl ('adminhtml/*/editGroup ' , ['group_id ' => $ row ->getGroupId ()]) .
28
28
'"> ' .
29
29
$ this ->escapeHtml ($ row ->getData ($ this ->getColumn ()->getIndex ())) .
30
- '</a> ' ;
30
+ '</a><br /> '
31
+ . '( ' . __ ('Code ' ) . ': ' . $ row ->getGroupCode () . ') ' ;
31
32
}
32
33
}
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ public function render(\Magento\Framework\DataObject $row)
27
27
$ this ->getUrl ('adminhtml/*/editStore ' , ['store_id ' => $ row ->getStoreId ()]) .
28
28
'"> ' .
29
29
$ this ->escapeHtml ($ row ->getData ($ this ->getColumn ()->getIndex ())) .
30
- '</a> ' ;
30
+ '</a><br /> ' .
31
+ '( ' . __ ('Code ' ) . ': ' . $ row ->getStoreCode () . ') ' ;
31
32
}
32
33
}
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ public function render(\Magento\Framework\DataObject $row)
24
24
$ this ->getUrl ('adminhtml/*/editWebsite ' , ['website_id ' => $ row ->getWebsiteId ()]) .
25
25
'"> ' .
26
26
$ this ->escapeHtml ($ row ->getData ($ this ->getColumn ()->getIndex ())) .
27
- '</a> ' ;
27
+ '</a><br /> ' .
28
+ '( ' . __ ('Code ' ) . ': ' . $ row ->getCode () . ') ' ;
28
29
}
29
30
}
Original file line number Diff line number Diff line change @@ -138,11 +138,11 @@ public function joinGroupAndStore()
138
138
$ this ->getSelect ()->joinLeft (
139
139
['group_table ' => $ this ->getTable ('store_group ' )],
140
140
'main_table.website_id = group_table.website_id ' ,
141
- ['group_id ' => 'group_id ' , 'group_title ' => 'name ' ]
141
+ ['group_id ' => 'group_id ' , 'group_title ' => 'name ' , ' group_code ' => ' code ' ]
142
142
)->joinLeft (
143
143
['store_table ' => $ this ->getTable ('store ' )],
144
144
'group_table.group_id = store_table.group_id ' ,
145
- ['store_id ' => 'store_id ' , 'store_title ' => 'name ' ]
145
+ ['store_id ' => 'store_id ' , 'store_title ' => 'name ' , ' store_code ' => ' code ' ]
146
146
);
147
147
$ this ->addOrder ('group_table.name ' , \Magento \Framework \DB \Select::SQL_ASC ) // store name
148
148
->addOrder (
You can’t perform that action at this time.
0 commit comments