Skip to content

Commit

Permalink
✨ Add website- and storeview-code
Browse files Browse the repository at this point in the history
Add website- and storeview-code in stores Admin-Grid.
  • Loading branch information
Andreas Schrammel committed Mar 17, 2018
1 parent 3dda470 commit 6f73126
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public function render(\Magento\Framework\DataObject $row)
$this->getUrl('adminhtml/*/editStore', ['store_id' => $row->getStoreId()]) .
'">' .
$this->escapeHtml($row->getData($this->getColumn()->getIndex())) .
'</a>';
'</a><br />' .
'(Code: ' . $row->getStoreCode() . ')';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public function render(\Magento\Framework\DataObject $row)
$this->getUrl('adminhtml/*/editWebsite', ['website_id' => $row->getWebsiteId()]) .
'">' .
$this->escapeHtml($row->getData($this->getColumn()->getIndex())) .
'</a>';
'</a><br />' .
'(Code: ' . $row->getCode() . ')';
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public function joinGroupAndStore()
)->joinLeft(
['store_table' => $this->getTable('store')],
'group_table.group_id = store_table.group_id',
['store_id' => 'store_id', 'store_title' => 'name']
['store_id' => 'store_id', 'store_title' => 'name', 'store_code' => 'code']
);
$this->addOrder('group_table.name', \Magento\Framework\DB\Select::SQL_ASC) // store name
->addOrder(
Expand Down

0 comments on commit 6f73126

Please sign in to comment.