diff --git a/controllers/admin/AdminCartsController.php b/controllers/admin/AdminCartsController.php index 35b6fbdf5..3f3798675 100644 --- a/controllers/admin/AdminCartsController.php +++ b/controllers/admin/AdminCartsController.php @@ -92,7 +92,7 @@ class AdminCartsControllerCore extends AdminController 'type' => 'bool', 'havingFilter' => true, 'class' => 'fixed-width-xs', - 'icon' => array(0 => 'icon-', 1 => 'icon-user') + 'callback' => 'getOnlineStatus', ) ); $this->shopLinkType = 'shop'; @@ -161,6 +161,11 @@ class AdminCartsControllerCore extends AdminController return $tpl->fetch(); } + public function getOnlineStatus($status) + { + return $status ? $this->l('Yes') : $this->l('No'); + } + public function initPageHeaderToolbar() { if (empty($this->display)) {