// update order tab
This commit is contained in:
1 parent
06834e404d
commit
2ac6ada03d
1 file changed
+21
-16
@@ -201,8 +201,12 @@
|
|||||||
<i class="icon-user"></i>
|
<i class="icon-user"></i>
|
||||||
{l s='Customer information'}
|
{l s='Customer information'}
|
||||||
</legend>
|
</legend>
|
||||||
<span><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>
|
||||||
(<a href="mailto:{$customer->email}">{$customer->email}</a>)<br /><br />
|
<a href="?tab=AdminCustomers&id_customer={$customer->id}&viewcustomer&token={getAdminToken tab='AdminCustomers'}">
|
||||||
|
{$customer->firstname} {$customer->lastname}
|
||||||
|
</a>
|
||||||
|
</span> ({l s='#'}{$customer->id})
|
||||||
|
(<a href="mailto:{$customer->email}">{$customer->email}</a>)
|
||||||
{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.'}
|
||||||
{if (!Customer::customerExists($customer->email))}
|
{if (!Customer::customerExists($customer->email))}
|
||||||
@@ -215,9 +219,9 @@
|
|||||||
<div><b style="color:red;">{l s='A registered customer account has already claimed this email address'}</strong></div>
|
<div><b style="color:red;">{l s='A registered customer account has already claimed this email address'}</strong></div>
|
||||||
{/if}
|
{/if}
|
||||||
{else}
|
{else}
|
||||||
{l s='Account registered:'} <strong>{dateFormat date=$customer->date_add full=true}</strong><br />
|
{l s='Account registered:'} <strong>{dateFormat date=$customer->date_add full=true}</strong>
|
||||||
{l s='Valid orders placed:'} <strong>{$customerStats['nb_orders']}</strong><br />
|
{l s='Valid orders placed:'} <strong>{$customerStats['nb_orders']}</strong>
|
||||||
{l s='Total spent since registration:'} <strong>{displayPrice price=Tools::ps_round(Tools::convertPrice($customerStats['total_orders'], $currency), 2) currency=$currency->id}</strong><br />
|
{l s='Total spent since registration:'} <strong>{displayPrice price=Tools::ps_round(Tools::convertPrice($customerStats['total_orders'], $currency), 2) currency=$currency->id}</strong>
|
||||||
{/if}
|
{/if}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
@@ -231,10 +235,10 @@
|
|||||||
<ul {if sizeof($sources) > 3}style="height: 200px; overflow-y: scroll;"{/if}>
|
<ul {if sizeof($sources) > 3}style="height: 200px; overflow-y: scroll;"{/if}>
|
||||||
{foreach from=$sources item=source}
|
{foreach from=$sources item=source}
|
||||||
<li>
|
<li>
|
||||||
{dateFormat date=$source['date_add'] full=true}<br />
|
{dateFormat date=$source['date_add'] full=true}
|
||||||
<strong>{l s='From'}</strong>{if $source['http_referer'] != ''}<a href="{$source['http_referer']}">{parse_url($source['http_referer'], $smarty.const.PHP_URL_HOST)|regex_replace:'/^www./':''}</a>{else}-{/if}<br />
|
<strong>{l s='From'}</strong>{if $source['http_referer'] != ''}<a href="{$source['http_referer']}">{parse_url($source['http_referer'], $smarty.const.PHP_URL_HOST)|regex_replace:'/^www./':''}</a>{else}-{/if}
|
||||||
<strong>{l s='To'}</strong> <a href="http://{$source['request_uri']}">{$source['request_uri']|truncate:100:'...'}</a><br />
|
<strong>{l s='To'}</strong> <a href="http://{$source['request_uri']}">{$source['request_uri']|truncate:100:'...'}</a>
|
||||||
{if $source['keywords']}<strong>{l s='Keywords'}</strong> {$source['keywords']}<br />{/if}<br />
|
{if $source['keywords']}<strong>{l s='Keywords'}</strong> {$source['keywords']}{/if}
|
||||||
</li>
|
</li>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
</ul>
|
</ul>
|
||||||
@@ -351,8 +355,8 @@
|
|||||||
{/if}
|
{/if}
|
||||||
<hr/>
|
<hr/>
|
||||||
<div class="col-lg-6">
|
<div class="col-lg-6">
|
||||||
{displayAddressDetail address=$addresses.delivery newLine='<br />'}
|
{displayAddressDetail address=$addresses.delivery newLine=''}
|
||||||
{if $addresses.delivery->other}<hr />{$addresses.delivery->other}<br />{/if}
|
{if $addresses.delivery->other}<hr />{$addresses.delivery->other}{/if}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-6 btn-group btn-group-action">
|
<div class="col-lg-6 btn-group btn-group-action">
|
||||||
<span class="btn btn-default btn-small">{l s='Choose an action'}</span>
|
<span class="btn btn-default btn-small">{l s='Choose an action'}</span>
|
||||||
@@ -401,8 +405,8 @@
|
|||||||
{/if}
|
{/if}
|
||||||
<hr/>
|
<hr/>
|
||||||
<div class="col-lg-6">
|
<div class="col-lg-6">
|
||||||
{displayAddressDetail address=$addresses.invoice newLine='<br />'}
|
{displayAddressDetail address=$addresses.invoice newLine=''}
|
||||||
{if $addresses.invoice->other}<hr />{$addresses.invoice->other}<br />{/if}
|
{if $addresses.invoice->other}<hr />{$addresses.invoice->other}{/if}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-lg-6">
|
<div class="col-lg-6">
|
||||||
<a class="btn btn-default" href="?tab=AdminAddresses&id_address={$addresses.invoice->id}&addaddress&realedit=1&id_order={$order->id}{if ($addresses.delivery->id == $addresses.invoice->id)}&address_type=2{/if}&back={$smarty.server.REQUEST_URI|urlencode}&token={getAdminToken tab='AdminAddresses'}">
|
<a class="btn btn-default" href="?tab=AdminAddresses&id_address={$addresses.invoice->id}&addaddress&realedit=1&id_order={$order->id}{if ($addresses.delivery->id == $addresses.invoice->id)}&address_type=2{/if}&back={$smarty.server.REQUEST_URI|urlencode}&token={getAdminToken tab='AdminAddresses'}">
|
||||||
@@ -500,14 +504,14 @@
|
|||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{if count($order->getOrderPayments()) > 0}
|
{if count($order->getOrderPayments()) > 0}
|
||||||
<p class="alert alert-block" style="{if round($orders_total_paid_tax_incl, 2) == round($total_paid, 2) || $currentState->id == 6}display: none;{/if}">
|
<p class="alert alert-block " style="{if round($orders_total_paid_tax_incl, 2) == round($total_paid, 2) || $currentState->id == 6}display: none;{/if} clear: both;">
|
||||||
{l s='Warning'} {displayPrice price=$total_paid currency=$currency->id} {l s='paid instead of'} <strong>{displayPrice price=$orders_total_paid_tax_incl currency=$currency->id}</strong>
|
{l s='Warning'} {displayPrice price=$total_paid currency=$currency->id} {l s='paid instead of'} <strong>{displayPrice price=$orders_total_paid_tax_incl currency=$currency->id}</strong>
|
||||||
{foreach $order->getBrother() as $brother_order}
|
{foreach $order->getBrother() as $brother_order}
|
||||||
{if $brother_order@first}
|
{if $brother_order@first}
|
||||||
{if count($order->getBrother()) == 1}
|
{if count($order->getBrother()) == 1}
|
||||||
<br />{l s='This warning also concerns order '}
|
{l s='This warning also concerns order '}
|
||||||
{else}
|
{else}
|
||||||
<br />{l s='This warning also concerns the next orders:'}
|
{l s='This warning also concerns the next orders:'}
|
||||||
{/if}
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
<a href="{$current_index}&vieworder&id_order={$brother_order->id}&token={$smarty.get.token|escape:'htmlall':'UTF-8'}">#{'%06d'|sprintf:$brother_order->id}</a>
|
<a href="{$current_index}&vieworder&id_order={$brother_order->id}&token={$smarty.get.token|escape:'htmlall':'UTF-8'}">#{'%06d'|sprintf:$brother_order->id}</a>
|
||||||
@@ -654,6 +658,7 @@
|
|||||||
|
|
||||||
{if !$order->isVirtual()}
|
{if !$order->isVirtual()}
|
||||||
<!-- Shipping block -->
|
<!-- Shipping block -->
|
||||||
|
<div class="col-lg-6">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>
|
<legend>
|
||||||
<i class="icon-truck"></i>
|
<i class="icon-truck"></i>
|
||||||
|
|||||||
Reference in new issue
Block a user