| 17804 |
manish.sha |
1 |
<script type="text/javascript">
|
|
|
2 |
$(document).ready(function(){
|
| 17881 |
manish.sha |
3 |
$('.popover-markup a.trigger').popover({
|
| 17804 |
manish.sha |
4 |
html: true,
|
|
|
5 |
title: function () {
|
|
|
6 |
return $(this).parent().find('.head').html();
|
|
|
7 |
},
|
|
|
8 |
content: function () {
|
|
|
9 |
return $(this).parent().find('.content').html();
|
|
|
10 |
}
|
|
|
11 |
});
|
|
|
12 |
});
|
|
|
13 |
</script>
|
|
|
14 |
<script type="text/javascript" src="/js/cart.js?v=<?php echo $staticversion;?>"></script>
|
| 17947 |
manish.sha |
15 |
<input type="hidden" id="refresh" value="no">
|
| 17804 |
manish.sha |
16 |
<div class="container">
|
| 17919 |
manish.sha |
17 |
<div class="modal fade" id="cartLoadingModal">
|
|
|
18 |
<div class="modal-dialog">
|
|
|
19 |
<div class="modal-content">
|
|
|
20 |
<div class="modal-body">
|
|
|
21 |
<div class="text-center">
|
|
|
22 |
<img src="/img/ajax-loader.gif"/>
|
|
|
23 |
</div>
|
|
|
24 |
</div>
|
|
|
25 |
</div><!-- /.modal-content -->
|
|
|
26 |
</div><!-- /.modal-dialog -->
|
|
|
27 |
</div><!-- /.modal -->
|
| 17804 |
manish.sha |
28 |
<div class="cartpagedetails">
|
|
|
29 |
<span class="glyphicon glyphicon-arrow-left backtodeals"></span>
|
| 18018 |
manish.sha |
30 |
<span class="cartheader"><span>
|
| 17804 |
manish.sha |
31 |
</div>
|
|
|
32 |
<?php //echo $base_url;?>
|
|
|
33 |
<div class="cartpagemargin">
|
|
|
34 |
</div>
|
| 17871 |
manish.sha |
35 |
<?php foreach($cartskus['cartMessages'] as $itemmessage):?>
|
| 17954 |
manish.sha |
36 |
<div class="cartmsg-<?php echo $itemmessage['type'];?>">
|
| 17955 |
manish.sha |
37 |
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
|
| 17952 |
manish.sha |
38 |
<div class="label label-<?php echo $itemmessage['type'];?>">
|
| 17871 |
manish.sha |
39 |
<strong><?php echo $itemmessage['messageText'];?></strong>
|
| 17952 |
manish.sha |
40 |
</div>
|
| 17871 |
manish.sha |
41 |
</div>
|
|
|
42 |
<?php endforeach;?>
|
| 17804 |
manish.sha |
43 |
|
|
|
44 |
<div class="scroll">
|
|
|
45 |
<?php echo $this->element('cartitems');?>
|
|
|
46 |
</div>
|
|
|
47 |
|
|
|
48 |
<div class="col-xs-12 navbar-fixed-bottom pmfooter">
|
| 17947 |
manish.sha |
49 |
|
|
|
50 |
<?php if($cartskus['maxEstimate']==-1):?>
|
|
|
51 |
<div class="popover-markup" data-str="<?php echo $cartskus['estimateString'];?>"><span style="color:red">Change Pincode:</span>
|
|
|
52 |
<a href="#" class="trigger "><span style="color:red"><u><?php echo $cartskus['pincode']; ?></u> .</span></a>
|
|
|
53 |
<span style="color:red"><?php echo $cartskus['estimateString'];?>.</span>
|
| 17804 |
manish.sha |
54 |
<div class="content hide">
|
|
|
55 |
<div class="form-group">
|
|
|
56 |
<input type="text" class="form-control pincodeval" placeholder="Pincode…" maxlength="6" >
|
|
|
57 |
</div>
|
|
|
58 |
<button type="submit" class="btn btn-default btn-block changepincode">
|
|
|
59 |
Submit
|
|
|
60 |
</button>
|
|
|
61 |
</div>
|
|
|
62 |
</div>
|
| 17957 |
manish.sha |
63 |
<?php elseif($cartskus['maxEstimate']==-2 && count($cartskus['cartItems'])>0):?>
|
| 17948 |
manish.sha |
64 |
<div class="popover-markup" data-str="<?php echo $cartskus['estimateString'];?>"><span style="color:red">All Items are </span>
|
| 17947 |
manish.sha |
65 |
<a href="#" class="trigger "></a>
|
| 17919 |
manish.sha |
66 |
<span style="color:red"><?php echo $cartskus['estimateString'];?>.</span>
|
| 17881 |
manish.sha |
67 |
<div class="content hide">
|
|
|
68 |
<div class="form-group">
|
|
|
69 |
<input type="text" class="form-control pincodeval" placeholder="Pincode…" maxlength="6" >
|
|
|
70 |
</div>
|
|
|
71 |
<button type="submit" class="btn btn-default btn-block changepincode">
|
|
|
72 |
Submit
|
|
|
73 |
</button>
|
|
|
74 |
</div>
|
|
|
75 |
</div>
|
| 18018 |
manish.sha |
76 |
<?php elseif(count($cartskus['cartItems'])>0):?>
|
| 17947 |
manish.sha |
77 |
<div class="popover-markup" data-str="<?php echo $cartskus['estimateString'];?>"> Delivery to
|
|
|
78 |
<a href="#" class="trigger "><u><?php echo $cartskus['pincode']; ?></u></a> by <?php echo $cartskus['estimateString'];?>
|
|
|
79 |
<div class="content hide">
|
|
|
80 |
<div class="form-group">
|
|
|
81 |
<input type="text" class="form-control pincodeval" placeholder="Pincode…" maxlength="6" >
|
|
|
82 |
</div>
|
|
|
83 |
<button type="submit" class="btn btn-default btn-block changepincode">
|
|
|
84 |
Submit
|
|
|
85 |
</button>
|
|
|
86 |
</div>
|
|
|
87 |
</div>
|
| 18018 |
manish.sha |
88 |
<?php else:?>
|
|
|
89 |
<div class="popover-markup" data-str="<?php echo $cartskus['estimateString'];?>">
|
|
|
90 |
<a href="#" class="trigger "></a>
|
|
|
91 |
<div class="content hide">
|
|
|
92 |
<div class="form-group">
|
|
|
93 |
<input type="text" class="form-control pincodeval" placeholder="Pincode…" maxlength="6" >
|
|
|
94 |
</div>
|
|
|
95 |
<button type="submit" class="btn btn-default btn-block changepincode">
|
|
|
96 |
Submit
|
|
|
97 |
</button>
|
|
|
98 |
</div>
|
|
|
99 |
</div>
|
| 17881 |
manish.sha |
100 |
<?php endif;?>
|
|
|
101 |
|
|
|
102 |
|
|
|
103 |
<?php if($cartskus['shippingCharge']>0 && $cartskus['totalAmount']>0):?>
|
| 17853 |
manish.sha |
104 |
<div class="cartitemstotal" data-itemtotal="<?php echo $cartskus['totalAmount']; ?>" data-shipping="<?php echo $cartskus['shippingCharge'];?>">
|
| 18024 |
manish.sha |
105 |
<span class="pull-left ">Item Total </span><span class="pull-right itemstotal">₹ <?php echo number_format($cartskus['totalAmount']); ?></span><br>
|
|
|
106 |
<span class="pull-left shipping">Shipping </span><span class="pull-right shippingval">₹ <?php echo number_format($cartskus['shippingCharge']);?></span><br>
|
| 17905 |
manish.sha |
107 |
<span style="color:red;font-size:8pt">Free Shipping above ₹ 1000</span>
|
| 17804 |
manish.sha |
108 |
</div>
|
|
|
109 |
<?php else:?>
|
| 17853 |
manish.sha |
110 |
<div class="cartitemstotal hidden" data-itemtotal="<?php echo $cartskus['totalAmount']; ?>" data-shipping="<?php echo $cartskus['shippingCharge'];?>">
|
| 18024 |
manish.sha |
111 |
<span class="pull-left total">Item Total </span><span class="pull-right itemstotal">₹ <?php echo number_format($cartskus['totalAmount']); ?></span><br>
|
|
|
112 |
<span class="pull-left shipping">Shipping </span><span class="pull-right shippingval">₹ <?php echo number_format($cartskus['shippingCharge']);?></span><br>
|
| 17905 |
manish.sha |
113 |
<span style="color:red;font-size:8pt">Free Shipping above ₹ 1000</span>
|
| 17804 |
manish.sha |
114 |
</div>
|
|
|
115 |
<?php endif;?>
|
| 17905 |
manish.sha |
116 |
<?php if($cartskus['totalAmount']>0):?>
|
| 17854 |
manish.sha |
117 |
<div class="cartgrandtotal" data-grand="<?php echo ($cartskus['totalAmount']+$cartskus['shippingCharge']); ?>"><span class="pull-left"><strong>Payable </strong></span><span class="pull-right"> ₹ <?php echo number_format($cartskus['totalAmount']+$cartskus['shippingCharge']); ?> </span></div>
|
| 17905 |
manish.sha |
118 |
<?php else:?>
|
|
|
119 |
<div class="cartgrandtotal" data-grand="<?php echo ($cartskus['totalAmount']); ?>"><span class="pull-left"><strong>Payable </strong></span><span class="pull-right"> ₹ <?php echo number_format($cartskus['totalAmount']); ?> </span></div>
|
|
|
120 |
<?php endif;?>
|
| 17804 |
manish.sha |
121 |
<div><button type="button" class="btn btn-md checkoutbtn">CHECKOUT</button></div>
|
|
|
122 |
</div>
|
|
|
123 |
</div>
|