Jump to content

Display gender in backoffice Orders


Recommended Posts

Change line 470 of admin/tabs/AdminOrders.php from:

id.'&viewcustomer;&token;='.Tools::getAdminToken('AdminCustomers'.intval(Tab::getIdFromClassName('AdminCustomers')).intval($cookie->id_employee)).'"> '.$customer->firstname.' '.$customer->lastname.' ('.$this->l('#').$customer->id.')



to:

id.'&viewcustomer;&token;='.Tools::getAdminToken('AdminCustomers'.intval(Tab::getIdFromClassName('AdminCustomers')).intval($cookie->id_employee)).'"> '.$customer->firstname.' '.$customer->lastname.' ('.$this->l('#').$customer->id.') <img src="../img/admin/'.($customer->id_gender == 2 ? 'female' : ($customer->id_gender == 1 ? 'male' : 'unknown')).'.gif" />

Link to comment
Share on other sites

×
×
  • Create New...