2018-02-12 05:47:26 +10:00
|
|
|
{{> partials/menu}}
|
2019-12-26 13:23:21 +10:00
|
|
|
<div class="col-sm-9">
|
|
|
|
<div class="col-sm-12">
|
2018-01-07 04:55:48 +10:00
|
|
|
<h2>View Order</h2>
|
|
|
|
</div>
|
|
|
|
<div class="order-layout col-md-12">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12 bottom-pad-20">
|
2020-01-01 19:20:57 +10:00
|
|
|
<button id="orderStatusUpdate" class="btn btn-outline-success float-left">{{ @root.__ "Update status" }}</button>
|
|
|
|
<a href="/admin/orders" class="btn btn-outline-info float-right">{{ @root.__ "Go Back" }}</a>
|
2018-01-07 04:55:48 +10:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<ul class="list-group">
|
|
|
|
<li class="list-group-item list-group-input-pad">
|
2020-01-01 19:20:57 +10:00
|
|
|
<strong> Order status: </strong><span class="text-{{getStatusColor result.orderStatus}} float-right">{{result.orderStatus}}</span>
|
|
|
|
<div class="float-right col-md-2">
|
2019-12-26 20:32:28 +10:00
|
|
|
<select class="form-control" id="orderStatus">
|
2019-11-06 18:31:25 +10:00
|
|
|
<option>{{ @root.__ "Completed" }}</option>
|
2019-11-06 20:40:27 +10:00
|
|
|
<option>{{ @root.__ "Paid" }}</option>
|
2019-11-06 18:31:25 +10:00
|
|
|
<option>{{ @root.__ "Pending" }}</option>
|
|
|
|
<option>{{ @root.__ "Cancelled" }}</option>
|
|
|
|
<option>{{ @root.__ "Declined" }}</option>
|
|
|
|
<option>{{ @root.__ "Shipped" }}</option>
|
2018-01-07 04:55:48 +10:00
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</li>
|
2020-01-01 19:20:57 +10:00
|
|
|
<li class="list-group-item"><strong> {{ @root.__ "Order date" }}: </strong><span class="float-right">{{formatDate result.orderDate "DD/MM/YYYY hh:mmA"}}</span></li>
|
|
|
|
<li class="list-group-item"><strong> {{ @root.__ "Order ID" }}: </strong><span class="float-right">{{result._id}}</span></li>
|
|
|
|
<li class="list-group-item"><strong> {{ @root.__ "Payment Gateway ref" }}: </strong><span class="float-right">{{result.orderPaymentId}}</span></li>
|
|
|
|
<li class="list-group-item"><strong> {{ @root.__ "Payment Gateway" }}: </strong><span class="float-right">{{result.orderPaymentGateway}}</span></li>
|
2019-11-11 17:47:48 +10:00
|
|
|
{{#if result.orderPaymentMessage}}
|
2020-01-01 19:20:57 +10:00
|
|
|
<li class="list-group-item"><strong> {{ @root.__ "Payment Message" }}: </strong><span class="float-right">{{result.orderPaymentMessage}}</span></li>
|
2019-11-11 17:47:48 +10:00
|
|
|
{{/if}}
|
2020-01-01 19:20:57 +10:00
|
|
|
<li class="list-group-item"><strong> {{ @root.__ "Order total amount" }}: </strong><span class="float-right">{{currencySymbol config.currencySymbol}}{{formatAmount result.orderTotal}}</span></li>
|
|
|
|
<li class="list-group-item"><strong> {{ @root.__ "Email address" }}: </strong><span class="float-right">{{result.orderEmail}}</span></li>
|
|
|
|
<li class="list-group-item"><strong> {{ @root.__ "First name" }}: </strong><span class="float-right">{{result.orderFirstname}}</span></li>
|
|
|
|
<li class="list-group-item"><strong> {{ @root.__ "Last name" }}: </strong><span class="float-right">{{result.orderLastname}}</span></li>
|
|
|
|
<li class="list-group-item"><strong> {{ @root.__ "Address 1" }}: </strong><span class="float-right">{{result.orderAddr1}}</span></li>
|
|
|
|
<li class="list-group-item"><strong> {{ @root.__ "Address 2" }}: </strong><span class="float-right">{{result.orderAddr2}}</span></li>
|
|
|
|
<li class="list-group-item"><strong> {{ @root.__ "Country" }}: </strong><span class="float-right">{{result.orderCountry}}</span></li>
|
|
|
|
<li class="list-group-item"><strong> {{ @root.__ "State" }}: </strong><span class="float-right">{{result.orderState}}</span></li>
|
|
|
|
<li class="list-group-item"><strong> {{ @root.__ "Postcode" }}: </strong><span class="float-right">{{result.orderPostcode}}</span></li>
|
|
|
|
<li class="list-group-item"><strong> {{ @root.__ "Phone number" }}: </strong><span class="float-right">{{result.orderPhoneNumber}}</span></li>
|
|
|
|
<li class="list-group-item"><strong> {{ @root.__ "Order type" }}: </strong><span class="float-right">{{result.orderType}}</span></li>
|
|
|
|
<li class="list-group-item"><strong> {{ @root.__ "Order comment" }}: </strong><span class="float-right">{{result.orderComment}}</span></li>
|
2018-02-12 05:47:26 +10:00
|
|
|
|
2018-01-07 04:55:48 +10:00
|
|
|
<li class="list-group-item"> </li>
|
2019-11-06 18:31:25 +10:00
|
|
|
<li class="list-group-item"><strong class="text-info">{{ @root.__ "Products ordered" }}</strong></li>
|
2018-01-07 04:55:48 +10:00
|
|
|
{{#each result.orderProducts}}
|
|
|
|
<li class="list-group-item">
|
2018-02-12 05:47:26 +10:00
|
|
|
{{this.quantity}} x {{this.title}}
|
2018-06-07 21:13:06 +10:00
|
|
|
{{#if this.options}}
|
2018-01-07 04:55:48 +10:00
|
|
|
>
|
2019-11-06 18:31:25 +10:00
|
|
|
<span class="text-warning"> {{ @root.__ "Options" }}: </span>
|
2018-01-07 04:55:48 +10:00
|
|
|
(
|
2018-06-07 21:13:06 +10:00
|
|
|
{{#each this.options}}
|
2018-01-07 04:55:48 +10:00
|
|
|
{{#if @last}}
|
2019-02-10 13:46:42 +10:00
|
|
|
{{@key}}: {{this}}
|
2018-01-07 04:55:48 +10:00
|
|
|
{{else}}
|
2019-02-10 13:46:42 +10:00
|
|
|
{{@key}}: {{this}} /
|
2018-01-07 04:55:48 +10:00
|
|
|
{{/if}}
|
2018-02-12 05:47:26 +10:00
|
|
|
{{/each}}
|
|
|
|
)
|
|
|
|
{{/if}}
|
2020-01-01 19:20:57 +10:00
|
|
|
<div class="float-right">{{currencySymbol @root.config.currencySymbol}}{{formatAmount this.totalItemPrice}}</div>
|
2018-10-05 21:54:42 +10:00
|
|
|
{{#if productComment}}
|
|
|
|
<h4><span class="text-danger">Comment:</span> {{this.productComment}}</h4>
|
|
|
|
{{/if}}
|
2018-01-07 04:55:48 +10:00
|
|
|
</li>
|
|
|
|
{{/each}}
|
|
|
|
</ul>
|
|
|
|
<input type="hidden" id="order_id" value="{{result._id}}">
|
|
|
|
</div>
|
2018-02-12 05:47:26 +10:00
|
|
|
</div>
|