| 2674 |
vikas |
1 |
#set($messages = $action.getActionErrors())
|
|
|
2 |
#if($messages && $messages.size() != 0)
|
|
|
3 |
#foreach($message in $messages)
|
|
|
4 |
$message <br/>
|
|
|
5 |
#end
|
|
|
6 |
#else
|
| 4142 |
mandeep.dh |
7 |
#set($order = $action.getOrder())
|
|
|
8 |
#if($action.canEditOrderAddress())
|
|
|
9 |
<a class="change-shipment-address">
|
|
|
10 |
Change shipment address
|
|
|
11 |
</a>
|
|
|
12 |
<div id="addresses">
|
|
|
13 |
<form class="change-address">
|
|
|
14 |
<table >
|
|
|
15 |
#foreach($address in $action.getAddresses())
|
|
|
16 |
<tr >
|
|
|
17 |
<td >
|
|
|
18 |
<input type="radio" id="address" name="addressId" value="$address.getId()"/>
|
|
|
19 |
</td>
|
|
|
20 |
<td >
|
|
|
21 |
#if($address.getName())
|
|
|
22 |
<b>$address.getName()</b><br />
|
|
|
23 |
#end
|
|
|
24 |
#if($address.getLine1())
|
|
|
25 |
<label>$address.getLine1() </label><br />
|
|
|
26 |
#end
|
|
|
27 |
#if($address.getLine2() != "")
|
|
|
28 |
<label>$address.getLine2()</label><br />
|
|
|
29 |
#end
|
|
|
30 |
#if($address.getCity())
|
|
|
31 |
<label>$address.getCity()</label><br />
|
|
|
32 |
#end
|
|
|
33 |
#if($address.getState())
|
|
|
34 |
<label>$address.getState()</label><br />
|
|
|
35 |
#end
|
|
|
36 |
#if($address.getPin())
|
|
|
37 |
<label>Pin: $address.getPin()</label>
|
|
|
38 |
#end
|
|
|
39 |
</p>
|
|
|
40 |
#if($address.getPhone())
|
|
|
41 |
<b>Phone: $address.getPhone() </b>
|
|
|
42 |
#end
|
|
|
43 |
</td>
|
|
|
44 |
</tr>
|
|
|
45 |
<tr>
|
|
|
46 |
<td >
|
|
|
47 |
<input type="submit" value="Change Address"/>
|
|
|
48 |
</td>
|
|
|
49 |
</tr>
|
|
|
50 |
#end
|
|
|
51 |
</table>
|
|
|
52 |
</form>
|
|
|
53 |
</div>
|
| 4689 |
anupam.sin |
54 |
#end
|
| 4142 |
mandeep.dh |
55 |
#set($ticketId = $action.getCodTicketId())
|
|
|
56 |
#if($ticketId)
|
|
|
57 |
<br />
|
|
|
58 |
<a href="/crm?email=&ticketId=$ticketId">
|
|
|
59 |
COD verification ticket
|
|
|
60 |
</a>
|
|
|
61 |
<br />
|
|
|
62 |
#end
|
|
|
63 |
<br />
|
| 4689 |
anupam.sin |
64 |
#if($action.canOrderBeCancelled())
|
|
|
65 |
<div id="cancel-div" class="hidden">
|
|
|
66 |
<form id="cancel-form">
|
|
|
67 |
<table class="display">
|
|
|
68 |
#foreach($item in $action.getCODCancelMatrix())
|
|
|
69 |
#if($velocityCount % 2 != 0)
|
|
|
70 |
<tr >
|
|
|
71 |
#end
|
|
|
72 |
<td>
|
|
|
73 |
#if($item.name().equals("INVALID_CONTACT_DETAILS"))
|
|
|
74 |
<input type="radio" name="cancelReason" id ="$item.name()" class = "cancelReason" value="$item.name()" checked />
|
|
|
75 |
#else
|
|
|
76 |
<input type="radio" name="cancelReason" id ="$item.name()" class = "cancelReason" value="$item.name()" />
|
|
|
77 |
#end
|
|
|
78 |
<label title="$item.getDescription()">$item.name()</label>
|
|
|
79 |
</td>
|
|
|
80 |
#if($velocityCount % 2 == 0)
|
|
|
81 |
</ tr>
|
|
|
82 |
#end
|
|
|
83 |
#end
|
|
|
84 |
<tr >
|
|
|
85 |
<td id ="cancelReasonBox" colspan="2">
|
|
|
86 |
<textarea name="body" rows="5" cols="80" id="cancel-body"></textarea>
|
|
|
87 |
</td>
|
|
|
88 |
</tr>
|
|
|
89 |
<tr >
|
|
|
90 |
<td colspan="2">
|
|
|
91 |
<input type="submit" value="Cancel Order"/>
|
|
|
92 |
</td>
|
|
|
93 |
</tr>
|
|
|
94 |
</table>
|
|
|
95 |
</form>
|
|
|
96 |
</div>
|
|
|
97 |
|
|
|
98 |
<div>
|
|
|
99 |
<select id = "cancellationInitiator" name="cancellationInitiator">
|
|
|
100 |
<option value="CUSTOMER">CUSTOMER REQUEST</option>
|
| 4751 |
anupam.sin |
101 |
#if($action.canViewOrderCancellation())
|
| 4689 |
anupam.sin |
102 |
<option value="INTERNAL">INTERNAL</option>
|
|
|
103 |
#end
|
|
|
104 |
</select>
|
|
|
105 |
<input type="button" class="display-cancel-order-popup" value="Cancel Order" id="orderCancellationButton" orderid="$order.getId()">
|
|
|
106 |
</div>
|
|
|
107 |
#end
|
| 4142 |
mandeep.dh |
108 |
<label class="heading">Order details</label><br />
|
| 2674 |
vikas |
109 |
<div id="orderTopLeft">
|
| 4241 |
anupam.sin |
110 |
<span>Status Description :
|
|
|
111 |
$action.getOrderStatusDescription($order)
|
|
|
112 |
</span><br/>
|
| 4142 |
mandeep.dh |
113 |
<span>Invoice No : #if($order.getInvoice_number()) $order.getInvoice_number() #end</span><br/>
|
|
|
114 |
<span>Airway Bill No : #if($order.getAirwaybill_no()) $order.getAirwaybill_no() #end</span><br/>
|
|
|
115 |
<span>Receiver : #if($order.getReceiver()) $order.getReceiver() #end</span><br/>
|
|
|
116 |
<span>Out Of Stock Time :
|
|
|
117 |
#if($order.getOutofstock_timestamp() != 0) $action.convertDate($order.getOutofstock_timestamp())
|
|
|
118 |
#end</span><br/>
|
| 2674 |
vikas |
119 |
</div>
|
| 2830 |
vikas |
120 |
<div id="orderTopMiddle">
|
| 4142 |
mandeep.dh |
121 |
<span>Accepted :
|
|
|
122 |
#if($order.getAccepted_timestamp() != 0) $action.convertDate($order.getAccepted_timestamp())
|
|
|
123 |
#end</span><br/>
|
|
|
124 |
<span>Billed By :#if($order.getBilled_by()) $order.getBilled_by() #end</span><br/>
|
|
|
125 |
<span>Billed :
|
|
|
126 |
#if($order.getBilling_timestamp() != 0) $action.convertDate($order.getBilling_timestamp())
|
|
|
127 |
#end</span><br/>
|
|
|
128 |
<span>Shipped :
|
|
|
129 |
#if($order.getShipping_timestamp() != 0) $action.convertDate($order.getShipping_timestamp())
|
|
|
130 |
#end</span><br/>
|
|
|
131 |
<span>Pickup :
|
|
|
132 |
#if($order.getPickup_timestamp() != 0) $action.convertDate($order.getPickup_timestamp())
|
|
|
133 |
#end</span><br/>
|
| 4241 |
anupam.sin |
134 |
#if($order.isSetRefund_timestamp())
|
|
|
135 |
<span>Refund Time :
|
|
|
136 |
$action.convertDate($order.getRefund_timestamp())
|
|
|
137 |
#end</span><br/>
|
| 2674 |
vikas |
138 |
</div>
|
|
|
139 |
<div id="orderTopRight">
|
| 4241 |
anupam.sin |
140 |
<span>Verification timestamp :
|
|
|
141 |
#if($order.getVerification_timestamp() != 0) $action.convertDate($order.getVerification_timestamp())
|
|
|
142 |
#end</span><br/>
|
| 4142 |
mandeep.dh |
143 |
<span class="bold">Promised Shipping : </span>
|
|
|
144 |
#if($order.getPromised_shipping_time() != 0) $action.convertDate($order.getPromised_shipping_time())
|
|
|
145 |
#end<br/>
|
|
|
146 |
<span class="bold">Expected Shipping : </span>
|
|
|
147 |
#if($order.getExpected_shipping_time() != 0) $action.convertDate($order.getExpected_shipping_time())
|
|
|
148 |
#end<br/>
|
|
|
149 |
<span class="bold">Promised Delivery : </span>
|
|
|
150 |
#if($order.getPromised_delivery_time() != 0) $action.convertDate($order.getPromised_delivery_time())
|
|
|
151 |
#end<br/>
|
|
|
152 |
<span class="bold">Expected Delivery : </span>
|
|
|
153 |
#if($order.getExpected_delivery_time() != 0) $action.convertDate($order.getExpected_delivery_time())
|
|
|
154 |
#end<br/>
|
|
|
155 |
<span>Delivered : #if($order.getDelivery_timestamp() != 0) $action.convertDate($order.getDelivery_timestamp()) #end</span><br/>
|
| 2674 |
vikas |
156 |
</div>
|
| 3090 |
mandeep.dh |
157 |
<div id="orderMiddle">
|
| 4142 |
mandeep.dh |
158 |
<br />
|
| 5022 |
anupam.sin |
159 |
|
| 4142 |
mandeep.dh |
160 |
#set($delayReason = "")
|
|
|
161 |
#if($order.getDelayReason())
|
|
|
162 |
$delayReason = $order.getDelayReason().name()
|
|
|
163 |
#end
|
| 5022 |
anupam.sin |
164 |
#if($order.getRefundReason())
|
|
|
165 |
<span class="bold">Cancellation Reason : </span><span class="info">$order.getRefundReason()</span></br>
|
|
|
166 |
#end
|
| 4034 |
mandeep.dh |
167 |
#if($action.canViewDelayedDeliveries())
|
| 4105 |
mandeep.dh |
168 |
<span class="bold">Delay Reason: </span>$delayReason <br />
|
| 4034 |
mandeep.dh |
169 |
#end
|
| 4146 |
mandeep.dh |
170 |
#foreach($lineItem in $order.getLineitems())
|
| 4142 |
mandeep.dh |
171 |
<span class="bold">$action.getProductName($lineItem) $lineItem.getTotal_price()($action.convertDouble($lineItem.getQuantity()), $lineItem.getUnit_price())</span><br/>
|
| 2674 |
vikas |
172 |
#end
|
| 4142 |
mandeep.dh |
173 |
#if($action.getAddress($order)) <span class="bold">Shipping Address: </span>$action.getAddress($order)<br/>#end
|
| 3996 |
mandeep.dh |
174 |
<br />
|
| 4142 |
mandeep.dh |
175 |
<br />
|
|
|
176 |
<label class="heading">Payment details</label><br />
|
|
|
177 |
#set($payments = $action.getPayments())
|
| 2674 |
vikas |
178 |
#set($count = 1)
|
|
|
179 |
#foreach($payment in $payments)
|
|
|
180 |
<span>Payment No. $count</span><br/>
|
|
|
181 |
#set($count = $count + 1)
|
| 3090 |
mandeep.dh |
182 |
<div id="orderMiddleLeft">
|
| 4142 |
mandeep.dh |
183 |
#if($payment.getDescription()) <span>Description : $payment.getDescription()</span><br/>#end
|
|
|
184 |
#if($payment.getStatus().name()) <span>Status : $payment.getStatus().name()</span><br/>#end
|
|
|
185 |
#if($payment.getAmount()) <span>Amount : $payment.getAmount()</span><br/>#end
|
|
|
186 |
#if($payment.getAuthCode()) <span>AuthCode : $payment.getAuthCode()</span><br/>#end
|
| 4844 |
anupam.sin |
187 |
#set($payMethod = $action.getPaymentMethod($payment.getAttributes()))
|
|
|
188 |
#if((!$order.isCod()) && $payMethod == "COD")
|
|
|
189 |
<span>Pay Method : Prepaid</span>
|
|
|
190 |
#elseif($payMethod)
|
|
|
191 |
<span>Pay Method : $payMethod</span>
|
|
|
192 |
#end
|
| 2674 |
vikas |
193 |
</div>
|
| 3090 |
mandeep.dh |
194 |
<div id="orderMiddleMiddle">
|
| 4142 |
mandeep.dh |
195 |
#set($gatewayName = $action.getGatewayName($payment))
|
| 4145 |
mandeep.dh |
196 |
#if($gatewayName) <span>Gateway : $gatewayName</span><br/>#end
|
|
|
197 |
#if($payment.getGatewayPaymentId()) <span>Gtwy Payment Id : $payment.getGatewayPaymentId()</span><br/>#end
|
|
|
198 |
#if($payment.getGatewayTxnDate()) <span>Gtwy Txn Date : $payment.getGatewayTxnDate()</span><br/>#end
|
|
|
199 |
#if($payment.getGatewayTxnId()) <span>Gtwy Txn Id : $payment.getGatewayTxnId()</span><br/>#end
|
| 4142 |
mandeep.dh |
200 |
#if($payment.getGatewayTxnStatus()) <span>Gtwy Txn Status : $payment.getGatewayTxnStatus()</span>#end
|
| 2674 |
vikas |
201 |
</div>
|
| 3090 |
mandeep.dh |
202 |
<div id="orderMiddleRight">
|
| 4142 |
mandeep.dh |
203 |
#if($payment.getErrorCode()) <span>Error Code : $payment.getErrorCode()</span><br/>#end
|
|
|
204 |
#if($payment.getReferenceCode()) <span>Ref Code : $payment.getReferenceCode()</span><br/>#end
|
|
|
205 |
#if($payment.getSessionId()) <span>Session Id : $payment.getSessionId()</span><br/>#end
|
|
|
206 |
#if($payment.getSuccessTimestamp() != 0) <span>Success Time : $action.convertDate($payment.getSuccessTimestamp())</span>#end
|
| 2674 |
vikas |
207 |
</div>
|
| 3996 |
mandeep.dh |
208 |
#end
|
| 2674 |
vikas |
209 |
</div>
|
| 4142 |
mandeep.dh |
210 |
<div id="orderBottom">
|
| 3996 |
mandeep.dh |
211 |
<br />
|
| 3578 |
mandeep.dh |
212 |
<br />
|
| 4142 |
mandeep.dh |
213 |
<label class="heading">Shipment updates</label><br />
|
|
|
214 |
<table id="shipment-details">
|
| 3090 |
mandeep.dh |
215 |
<thead >
|
|
|
216 |
<tr >
|
|
|
217 |
<th >Date</th>
|
|
|
218 |
<th >Time</th>
|
|
|
219 |
<th >City</th>
|
|
|
220 |
<th >Description</th>
|
|
|
221 |
</tr>
|
|
|
222 |
</thead>
|
|
|
223 |
<tbody >
|
|
|
224 |
#foreach($shipmentUpdate in $action.getShipmentUpdates())
|
| 3106 |
mandeep.dh |
225 |
#set($trClass = "table-tr-odd")
|
|
|
226 |
#if($velocityCount % 2 == 0)
|
|
|
227 |
#set($trClass = "table-tr-even")
|
|
|
228 |
#end
|
|
|
229 |
<tr class="$trClass">
|
| 3090 |
mandeep.dh |
230 |
<td >$shipmentUpdate.getDate()</td>
|
|
|
231 |
<td >$shipmentUpdate.getTime()</td>
|
|
|
232 |
<td >$shipmentUpdate.getCity()</td>
|
|
|
233 |
<td >$shipmentUpdate.getDescription()</td>
|
|
|
234 |
</tr>
|
|
|
235 |
#end
|
|
|
236 |
</tbody>
|
|
|
237 |
</table>
|
|
|
238 |
</div>
|
| 2749 |
vikas |
239 |
#end
|