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)
2727 $ this ->getUrl ('adminhtml/*/editGroup ' , ['group_id ' => $ row ->getGroupId ()]) .
2828 '"> ' .
2929 $ this ->escapeHtml ($ row ->getData ($ this ->getColumn ()->getIndex ())) .
30- '</a> ' ;
30+ '</a><br /> '
31+ . '( ' . __ ('Code ' ) . ': ' . $ row ->getGroupCode () . ') ' ;
3132 }
3233}
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ public function render(\Magento\Framework\DataObject $row)
2727 $ this ->getUrl ('adminhtml/*/editStore ' , ['store_id ' => $ row ->getStoreId ()]) .
2828 '"> ' .
2929 $ this ->escapeHtml ($ row ->getData ($ this ->getColumn ()->getIndex ())) .
30- '</a> ' ;
30+ '</a><br /> ' .
31+ '( ' . __ ('Code ' ) . ': ' . $ row ->getStoreCode () . ') ' ;
3132 }
3233}
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ public function render(\Magento\Framework\DataObject $row)
2424 $ this ->getUrl ('adminhtml/*/editWebsite ' , ['website_id ' => $ row ->getWebsiteId ()]) .
2525 '"> ' .
2626 $ this ->escapeHtml ($ row ->getData ($ this ->getColumn ()->getIndex ())) .
27- '</a> ' ;
27+ '</a><br /> ' .
28+ '( ' . __ ('Code ' ) . ': ' . $ row ->getCode () . ') ' ;
2829 }
2930}
Original file line number Diff line number Diff line change @@ -138,11 +138,11 @@ public function joinGroupAndStore()
138138 $ this ->getSelect ()->joinLeft (
139139 ['group_table ' => $ this ->getTable ('store_group ' )],
140140 '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 ' ]
142142 )->joinLeft (
143143 ['store_table ' => $ this ->getTable ('store ' )],
144144 '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 ' ]
146146 );
147147 $ this ->addOrder ('group_table.name ' , \Magento \Framework \DB \Select::SQL_ASC ) // store name
148148 ->addOrder (
You can’t perform that action at this time.
0 commit comments