Subversion Repositories SmartDukaan

Rev

Rev 33437 | Rev 34788 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 33437 Rev 33795
Line -... Line 1...
-
 
1
<style>
-
 
2
    #order-items td {
-
 
3
        align-content: center;
-
 
4
    }
-
 
5
</style>
1
<script type="text/javascript">
6
<script type="text/javascript">
2
    var cartItemIndex = 0;
7
    var cartItemIndex = 0;
3
    accessoriesDeals = $accessoriesDeals;
8
    accessoriesDeals = $accessoriesDeals;
4
    pendingPOCustomer = $pendingPOCustomer;
9
    pendingPOCustomer = $pendingPOCustomer;
5
    pendingPO = $pendingPO;
10
    pendingPO = $pendingPO;
Line 58... Line 63...
58
            <div class="card row">
63
            <div class="card row">
59
                <p>Your Cart is Empty.</p>
64
                <p>Your Cart is Empty.</p>
60
            </div>
65
            </div>
61
        #else
66
        #else
62
            <div class="row">
67
            <div class="row">
63
                <div class="col-lg-8 container" style="background-color: white">
68
                <div class="col-lg-9 container" style="background-color: white">
64
                    <div class="row">
69
                    <div class="row">
65
                        <div class="col-lg-12">
70
                        <div class="col-lg-12">
66
                            <h4 class="modelHeaderCustom" style="font-size: 22px;">Product
71
                            <h4 class="modelHeaderCustom" style="font-size: 22px;">Product
67
                                Information</h4>
72
                                Information</h4>
68
                            <table id="order-items" class="table table-condensed">
73
                            <table id="order-items" class="table table-condensed">
Line 72... Line 77...
72
                                    <th style="width: 13%">Serial Number</th>
77
                                    <th style="width: 13%">Serial Number</th>
73
                                    <th style="width: 13%">Unit Price</th>
78
                                    <th style="width: 13%">Unit Price</th>
74
                                    <th style="widht:13%">Activation Discount</th>
79
                                    <th style="widht:13%">Activation Discount</th>
75
                                    <th style="width: 17%">Mobile Insurance</th>
80
                                    <th style="width: 17%">Mobile Insurance</th>
76
                                    <th style="width: 13%">Total Price</th>
81
                                    <th style="width: 13%">Total Price</th>
-
 
82
                                    <th>Upgrade</th>
77
                                </tr>
83
                                </tr>
78
 
84
 
79
                                #foreach ($cartItem in $cartItems) #set($mrp="MRP")
85
                                #foreach ($cartItem in $cartItems) #set($mrp="MRP")
80
                                    #if($mopPriceMap.get($cartItem.getItemId()).getMrp()!=0)
86
                                    #if($mopPriceMap.get($cartItem.getItemId()).getMrp()!=0)
81
                                        #set($mrp="$mopPriceMap.get($cartItem.getItemId()).getMrp()(MRP)")
87
                                        #set($mrp="$mopPriceMap.get($cartItem.getItemId()).getMrp()(MRP)")
Line 91... Line 97...
91
                                    #if($cartItem.getItemType() =="SERIALIZED") #set($start = 1)
97
                                    #if($cartItem.getItemType() =="SERIALIZED") #set($start = 1)
92
                                        #set($end = $cartItem.getQuantity())
98
                                        #set($end = $cartItem.getQuantity())
93
                                        #set($range = [$start..$end])
99
                                        #set($range = [$start..$end])
94
                                        #foreach ($index in $range)
100
                                        #foreach ($index in $range)
95
                                            <tr>
101
                                            <tr>
96
                                                <td>$cartItem.getDisplayName()</td>
102
                                                <td>$cartItem.getDisplayName()
-
 
103
                                                    #if($webOfferMap.size() > 0 || $offerItemMap.get($cartItem.getItemId()).size() > 0)
-
 
104
                                                        <a role="button" style="color:royalblue;font-size: 10px;"
-
 
105
                                                           class="upgrade-offer" data-toggle="modal"
-
 
106
                                                           data-target="#upgradeOfferModal"
-
 
107
                                                           data-itemid="$cartItem.getItemId()">
-
 
108
                                                            - view offer<i class="fas fa-arrow-circle-right"></i>
-
 
109
                                                        </a>
-
 
110
                                                    #end
-
 
111
 
-
 
112
                                                </td>
97
                                                <td class="table-align-center">1</td>
113
                                                <td class="table-align-center">1</td>
98
                                                <td class="table-align-center"><input readonly type="text"
114
                                                <td class="table-align-center"><input readonly type="text"
99
                                                                                      itemId="$cartItem.getItemId()"
115
                                                                                      itemId="$cartItem.getItemId()"
100
                                                                                      itemType="$cartItem.getItemType()"
116
                                                                                      itemType="$cartItem.getItemType()"
101
                                                                                      name="serialNumber"
117
                                                                                      name="serialNumber"
Line 159... Line 175...
159
                                                <td class="table-align-center"><input name="totalPrice"
175
                                                <td class="table-align-center"><input name="totalPrice"
160
                                                                                      class="totalPrice input-sm  form-control"
176
                                                                                      class="totalPrice input-sm  form-control"
161
                                                                                      itemId="$cartItem.getItemId()"
177
                                                                                      itemId="$cartItem.getItemId()"
162
                                                                                      type="number" value="0" readonly>
178
                                                                                      type="number" value="0" readonly>
163
                                                </td>
179
                                                </td>
-
 
180
 
-
 
181
                                                <!--                                                upgrade offer td only in case of when offer is avaialable-->
-
 
182
                                                <td style="width:14%;align-content:center;text-align: center;">
-
 
183
 
-
 
184
                                                    #if($offerItemMap.get($cartItem.getItemId()).size() > 0)
-
 
185
                                                        <div style="display: flex;">
-
 
186
                                                            <select name="offerSelect"
-
 
187
                                                                    class="form-control offerSelect input-sm"
-
 
188
                                                                    itemId="$cartItem.getItemId()">
-
 
189
                                                                <option value="">Select</option>
-
 
190
                                                                #set($offers = $offerItemMap.get($cartItem.getItemId()))
-
 
191
                                                                #foreach($offerItem in $offers)
-
 
192
                                                                    <option value="$offerItem.getId()"
-
 
193
                                                                            data-scheme-payout="$offerItem.getSchemePayout()"
-
 
194
                                                                            data-partner-payout="$offerItem.getDealerPayout()">
-
 
195
                                                                        Offer Type : $offerItem.getOfferType() - Upgrade
-
 
196
                                                                        Payout : $offerItem.getSchemePayout() - Partner
-
 
197
                                                                        Payout : $offerItem.getDealerPayout()</option>
-
 
198
                                                                #end
-
 
199
                                                            </select>
-
 
200
                                                        </div>
-
 
201
                                                    #else
-
 
202
                                                        -
-
 
203
                                                    #end
-
 
204
 
-
 
205
 
-
 
206
 
-
 
207
                                                </td>
164
                                            </tr>
208
                                            </tr>
165
                                        #end
209
                                        #end
166
                                    #else
210
                                    #else
167
                                        <tr>
211
                                        <tr>
168
                                            <td>$cartItem.getDisplayName()</td>
212
                                            <td>$cartItem.getDisplayName()</td>
Line 197... Line 241...
197
                                            <td>Not Applicable</td>
241
                                            <td>Not Applicable</td>
198
                                            <td class="table-align-center"><input name="totalPrice"
242
                                            <td class="table-align-center"><input name="totalPrice"
199
                                                                                  class="totalPrice input-sm form-control"
243
                                                                                  class="totalPrice input-sm form-control"
200
                                                                                  itemId="$cartItem.getItemId()"
244
                                                                                  itemId="$cartItem.getItemId()"
201
                                                                                  type="number" value="0" readonly></td>
245
                                                                                  type="number" value="0" readonly></td>
-
 
246
                                            <td>-</td>
202
                                        </tr>
247
                                        </tr>
203
                                    #end #end
248
                                    #end #end
204
                            </table>
249
                            </table>
205
                        </div>
250
                        </div>
206
                    </div>
251
                    </div>
Line 299... Line 344...
299
                                placeholder="Date Of Birth" id="dateOfBirth" name="dateOfBirth"
344
                                placeholder="Date Of Birth" id="dateOfBirth" name="dateOfBirth"
300
                                type="text" value="" class="form-control">
345
                                type="text" value="" class="form-control">
301
                        </div>
346
                        </div>
302
                    </div>
347
                    </div>
303
                </div>
348
                </div>
304
                <div class="col-lg-4 row">
349
                <div class="col-lg-3">
305
                    <div class="col-lg-1"></div>
-
 
306
                    <div id="payment-details"
350
                    <div id="payment-details"
307
                         style="background: white; background-color: white;"
351
                         style="background: white; background-color: white;"
308
                         class="col-lg-10">
352
                         class="col-lg-12">
309
                        <h4 class="modelHeaderCustom" style="font-size: 22px;">Payment
353
                        <h4 class="modelHeaderCustom" style="font-size: 22px;">Payment
310
                            Details</h4>
354
                            Details</h4>
311
                        <div class="row">
355
                        <div class="row">
312
                            <div class="col-lg-6">
356
                            <div class="col-lg-6">
313
                                <h4>Total Amount :</h4>
357
                                <h4>Total Amount :</h4>
Line 333... Line 377...
333
                                               name="paymentOptionIdAmount${index}"
377
                                               name="paymentOptionIdAmount${index}"
334
                                               class="form-control paymentOptionAmount amount input-sm"
378
                                               class="form-control paymentOptionAmount amount input-sm"
335
                                               value="$onlineSellingPrice"
379
                                               value="$onlineSellingPrice"
336
                                               paymentOptionId="$paymentOption.getId()" readonly>
380
                                               paymentOptionId="$paymentOption.getId()" readonly>
337
                                    </div>
381
                                    </div>
-
 
382
                                #elseif($paymentOption.getName() == 'SAMSUNG UPGRADE')
-
 
383
                                    <div class="col-lg-6">
-
 
384
                                        <h5>$paymentOption.getName() :</h5>
-
 
385
                                    </div>
-
 
386
                                    <div class="col-lg-5">
-
 
387
                                        <input type="number" id="paymentOptionIdAmount${index}"
-
 
388
                                               name="paymentOptionIdAmount${index}"
-
 
389
                                               class="form-control paymentOptionAmount amount input-sm"
-
 
390
                                               value=""
-
 
391
                                               paymentOptionId="$paymentOption.getId()" readonly>
-
 
392
                                    </div>
338
                                #else
393
                                #else
339
                                    <div class="col-lg-6">
394
                                    <div class="col-lg-6">
340
                                        <h5>$paymentOption.getName() :</h5>
395
                                        <h5>$paymentOption.getName() :</h5>
341
                                    </div>
396
                                    </div>
342
                                    <div class="col-lg-5">
397
                                    <div class="col-lg-5">
Line 494... Line 549...
494
                </button>
549
                </button>
495
            </div>
550
            </div>
496
        </div>
551
        </div>
497
    </div>
552
    </div>
498
</div>
553
</div>
-
 
554
 
-
 
555
<!-- Upgrade offer Modal -->
-
 
556
<div id="upgradeOfferModal" class="modal" role="dialog">
-
 
557
    <div class="modal-dialog">
-
 
558
        <div class="modal-content">
-
 
559
 
-
 
560
        </div>
-
 
561
    </div>
-
 
562
</div>
499
<script type=text/javascript">
563
<script type=text/javascript">
500
 
564
 
501
</script>
565
</script>
502
566