// Add gender on order view
This commit is contained in:
@@ -153,7 +153,7 @@
|
|||||||
<br />
|
<br />
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend><img src="../img/admin/tab-customers.gif" /> {l s='Customer information'}</legend>
|
<legend><img src="../img/admin/tab-customers.gif" /> {l s='Customer information'}</legend>
|
||||||
<span style="font-weight: bold; font-size: 14px;"><a href="?tab=AdminCustomers&id_customer={$customer->id}&viewcustomer&token={getAdminToken tab='AdminCustomers'}"> {$customer->firstname} {$customer->lastname}</a></span> ({l s='#'}{$customer->id})<br />
|
<span style="font-weight: bold; font-size: 14px;"><a href="?tab=AdminCustomers&id_customer={$customer->id}&viewcustomer&token={getAdminToken tab='AdminCustomers'}"> {$gender->name|escape:'htmlall':'UTF-8'} {$customer->firstname} {$customer->lastname}</a></span> ({l s='#'}{$customer->id})<br />
|
||||||
(<a href="mailto:{$customer->email}">{$customer->email}</a>)<br /><br />
|
(<a href="mailto:{$customer->email}">{$customer->email}</a>)<br /><br />
|
||||||
{if ($customer->isGuest())}
|
{if ($customer->isGuest())}
|
||||||
{l s='This order has been placed by a guest.'}
|
{l s='This order has been placed by a guest.'}
|
||||||
|
|||||||
@@ -1342,11 +1342,14 @@ class AdminOrdersControllerCore extends AdminController
|
|||||||
$product['warehouse_name'] = '--';
|
$product['warehouse_name'] = '--';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$gender = new Gender((int)$customer->id_gender, $this->context->language->id);
|
||||||
|
|
||||||
// Smarty assign
|
// Smarty assign
|
||||||
$this->tpl_view_vars = array(
|
$this->tpl_view_vars = array(
|
||||||
'order' => $order,
|
'order' => $order,
|
||||||
'cart' => new Cart($order->id_cart),
|
'cart' => new Cart($order->id_cart),
|
||||||
'customer' => $customer,
|
'customer' => $customer,
|
||||||
|
'gender' => $gender,
|
||||||
'customer_addresses' => $customer->getAddresses($this->context->language->id),
|
'customer_addresses' => $customer->getAddresses($this->context->language->id),
|
||||||
'addresses' => array(
|
'addresses' => array(
|
||||||
'delivery' => $addressDelivery,
|
'delivery' => $addressDelivery,
|
||||||
|
|||||||
Reference in New Issue
Block a user