| 18302 |
manish.sha |
1 |
<script type="text/javascript" src="/js/cart.js?v=<?php echo $staticversion;?>"></script>
|
| 17804 |
manish.sha |
2 |
<script type="text/javascript">
|
|
|
3 |
$(document).ready(function(){
|
| 17881 |
manish.sha |
4 |
$('.popover-markup a.trigger').popover({
|
| 17804 |
manish.sha |
5 |
html: true,
|
|
|
6 |
title: function () {
|
|
|
7 |
return $(this).parent().find('.head').html();
|
|
|
8 |
},
|
|
|
9 |
content: function () {
|
|
|
10 |
return $(this).parent().find('.content').html();
|
|
|
11 |
}
|
|
|
12 |
});
|
| 18299 |
manish.sha |
13 |
$('#shippingAlertText').addClass('animated flash');
|
| 18302 |
manish.sha |
14 |
if (window.history && window.history.pushState) {
|
|
|
15 |
$(window).on('popstate', function() {
|
|
|
16 |
$('#myModal').modal('hide');
|
|
|
17 |
$("#cartloader").addClass('hidden');
|
|
|
18 |
if(typeof history.form!=undefined){
|
|
|
19 |
history.form.submit();
|
|
|
20 |
}
|
|
|
21 |
});
|
|
|
22 |
}
|
| 17804 |
manish.sha |
23 |
});
|
|
|
24 |
</script>
|
| 18298 |
manish.sha |
25 |
<link rel="stylesheet" href="/css/hexdots.css" type="text/css">
|
| 18299 |
manish.sha |
26 |
<link rel="stylesheet" href="/css/animate.css" type="text/css">
|
| 18298 |
manish.sha |
27 |
<style>
|
|
|
28 |
#cartloader{
|
|
|
29 |
position:absolute;
|
|
|
30 |
/*top:40%;*/
|
|
|
31 |
left:50%;
|
|
|
32 |
z-index:2001;
|
|
|
33 |
}
|
| 18299 |
manish.sha |
34 |
#shippingAlertText{
|
|
|
35 |
color:red;
|
|
|
36 |
font-size:10pt;
|
|
|
37 |
-webkit-animation-duration: 5s;
|
|
|
38 |
animation-duration: 5s;
|
|
|
39 |
-webkit-animation-iteration-count: infinite;
|
|
|
40 |
animation-iteration-count: infinite;
|
|
|
41 |
}
|
| 18298 |
manish.sha |
42 |
</style>
|
| 17947 |
manish.sha |
43 |
<input type="hidden" id="refresh" value="no">
|
| 17804 |
manish.sha |
44 |
<div class="container">
|
| 17919 |
manish.sha |
45 |
<div class="modal fade" id="cartLoadingModal">
|
|
|
46 |
<div class="modal-dialog">
|
|
|
47 |
<div class="modal-content">
|
|
|
48 |
<div class="modal-body">
|
|
|
49 |
<div class="text-center">
|
|
|
50 |
<img src="/img/ajax-loader.gif"/>
|
|
|
51 |
</div>
|
|
|
52 |
</div>
|
|
|
53 |
</div><!-- /.modal-content -->
|
|
|
54 |
</div><!-- /.modal-dialog -->
|
|
|
55 |
</div><!-- /.modal -->
|
| 17804 |
manish.sha |
56 |
<div class="cartpagedetails">
|
|
|
57 |
<span class="glyphicon glyphicon-arrow-left backtodeals"></span>
|
| 18018 |
manish.sha |
58 |
<span class="cartheader"><span>
|
| 17804 |
manish.sha |
59 |
</div>
|
|
|
60 |
<?php //echo $base_url;?>
|
|
|
61 |
<div class="cartpagemargin">
|
|
|
62 |
</div>
|
| 17871 |
manish.sha |
63 |
<?php foreach($cartskus['cartMessages'] as $itemmessage):?>
|
| 17954 |
manish.sha |
64 |
<div class="cartmsg-<?php echo $itemmessage['type'];?>">
|
| 17955 |
manish.sha |
65 |
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
|
| 17952 |
manish.sha |
66 |
<div class="label label-<?php echo $itemmessage['type'];?>">
|
| 17871 |
manish.sha |
67 |
<strong><?php echo $itemmessage['messageText'];?></strong>
|
| 17952 |
manish.sha |
68 |
</div>
|
| 17871 |
manish.sha |
69 |
</div>
|
|
|
70 |
<?php endforeach;?>
|
| 18300 |
manish.sha |
71 |
|
|
|
72 |
<div class="text-center hidden" id="cartloader">
|
|
|
73 |
<br><br>
|
|
|
74 |
<div class="hexdots-loader"></div>
|
|
|
75 |
</div>
|
| 17804 |
manish.sha |
76 |
|
|
|
77 |
<div class="scroll">
|
|
|
78 |
<?php echo $this->element('cartitems');?>
|
|
|
79 |
</div>
|
|
|
80 |
|
| 18298 |
manish.sha |
81 |
<div class="modal fade" id="myModal">
|
|
|
82 |
<div class="modal-dialog">
|
|
|
83 |
<div class="modal-content" style="background-color: #f0f0f0;color: #555;">
|
|
|
84 |
<div class="modal-body">
|
| 18300 |
manish.sha |
85 |
<p id="shippingText" style="color:#ff0000;" class="text-center"></p>
|
| 18298 |
manish.sha |
86 |
</div>
|
|
|
87 |
<div class="modal-footer">
|
|
|
88 |
<button type="button" class="btn btn-md pull-left" id="addItems"><a href="/category/6"><strong>Add Items<br>(आइटम जोड़ें)</strong></a></button>
|
|
|
89 |
<button type="button" class="btn btn-md pull-right" id="continueCheckout"><strong>Continue<br>(आगे बढ़े )</strong></button>
|
|
|
90 |
</div>
|
|
|
91 |
</div><!-- /.modal-content -->
|
|
|
92 |
</div><!-- /.modal-dialog -->
|
|
|
93 |
</div><!-- /.modal -->
|
|
|
94 |
|
| 17804 |
manish.sha |
95 |
<div class="col-xs-12 navbar-fixed-bottom pmfooter">
|
| 17947 |
manish.sha |
96 |
|
|
|
97 |
<?php if($cartskus['maxEstimate']==-1):?>
|
|
|
98 |
<div class="popover-markup" data-str="<?php echo $cartskus['estimateString'];?>"><span style="color:red">Change Pincode:</span>
|
|
|
99 |
<a href="#" class="trigger "><span style="color:red"><u><?php echo $cartskus['pincode']; ?></u> .</span></a>
|
|
|
100 |
<span style="color:red"><?php echo $cartskus['estimateString'];?>.</span>
|
| 17804 |
manish.sha |
101 |
<div class="content hide">
|
|
|
102 |
<div class="form-group">
|
|
|
103 |
<input type="text" class="form-control pincodeval" placeholder="Pincode…" maxlength="6" >
|
|
|
104 |
</div>
|
|
|
105 |
<button type="submit" class="btn btn-default btn-block changepincode">
|
|
|
106 |
Submit
|
|
|
107 |
</button>
|
|
|
108 |
</div>
|
|
|
109 |
</div>
|
| 17957 |
manish.sha |
110 |
<?php elseif($cartskus['maxEstimate']==-2 && count($cartskus['cartItems'])>0):?>
|
| 17948 |
manish.sha |
111 |
<div class="popover-markup" data-str="<?php echo $cartskus['estimateString'];?>"><span style="color:red">All Items are </span>
|
| 17947 |
manish.sha |
112 |
<a href="#" class="trigger "></a>
|
| 17919 |
manish.sha |
113 |
<span style="color:red"><?php echo $cartskus['estimateString'];?>.</span>
|
| 17881 |
manish.sha |
114 |
<div class="content hide">
|
|
|
115 |
<div class="form-group">
|
|
|
116 |
<input type="text" class="form-control pincodeval" placeholder="Pincode…" maxlength="6" >
|
|
|
117 |
</div>
|
|
|
118 |
<button type="submit" class="btn btn-default btn-block changepincode">
|
|
|
119 |
Submit
|
|
|
120 |
</button>
|
|
|
121 |
</div>
|
|
|
122 |
</div>
|
| 18018 |
manish.sha |
123 |
<?php elseif(count($cartskus['cartItems'])>0):?>
|
| 17947 |
manish.sha |
124 |
<div class="popover-markup" data-str="<?php echo $cartskus['estimateString'];?>"> Delivery to
|
|
|
125 |
<a href="#" class="trigger "><u><?php echo $cartskus['pincode']; ?></u></a> by <?php echo $cartskus['estimateString'];?>
|
|
|
126 |
<div class="content hide">
|
|
|
127 |
<div class="form-group">
|
|
|
128 |
<input type="text" class="form-control pincodeval" placeholder="Pincode…" maxlength="6" >
|
|
|
129 |
</div>
|
|
|
130 |
<button type="submit" class="btn btn-default btn-block changepincode">
|
|
|
131 |
Submit
|
|
|
132 |
</button>
|
|
|
133 |
</div>
|
|
|
134 |
</div>
|
| 18018 |
manish.sha |
135 |
<?php else:?>
|
|
|
136 |
<div class="popover-markup" data-str="<?php echo $cartskus['estimateString'];?>">
|
|
|
137 |
<a href="#" class="trigger "></a>
|
|
|
138 |
<div class="content hide">
|
|
|
139 |
<div class="form-group">
|
|
|
140 |
<input type="text" class="form-control pincodeval" placeholder="Pincode…" maxlength="6" >
|
|
|
141 |
</div>
|
|
|
142 |
<button type="submit" class="btn btn-default btn-block changepincode">
|
|
|
143 |
Submit
|
|
|
144 |
</button>
|
|
|
145 |
</div>
|
|
|
146 |
</div>
|
| 17881 |
manish.sha |
147 |
<?php endif;?>
|
|
|
148 |
|
|
|
149 |
|
|
|
150 |
<?php if($cartskus['shippingCharge']>0 && $cartskus['totalAmount']>0):?>
|
| 17853 |
manish.sha |
151 |
<div class="cartitemstotal" data-itemtotal="<?php echo $cartskus['totalAmount']; ?>" data-shipping="<?php echo $cartskus['shippingCharge'];?>">
|
| 18024 |
manish.sha |
152 |
<span class="pull-left ">Item Total </span><span class="pull-right itemstotal">₹ <?php echo number_format($cartskus['totalAmount']); ?></span><br>
|
|
|
153 |
<span class="pull-left shipping">Shipping </span><span class="pull-right shippingval">₹ <?php echo number_format($cartskus['shippingCharge']);?></span><br>
|
| 18299 |
manish.sha |
154 |
<span id="shippingAlertText">Free Shipping above ₹ 1000.<br>You can add different items.</span>
|
| 17804 |
manish.sha |
155 |
</div>
|
|
|
156 |
<?php else:?>
|
| 17853 |
manish.sha |
157 |
<div class="cartitemstotal hidden" data-itemtotal="<?php echo $cartskus['totalAmount']; ?>" data-shipping="<?php echo $cartskus['shippingCharge'];?>">
|
| 18024 |
manish.sha |
158 |
<span class="pull-left total">Item Total </span><span class="pull-right itemstotal">₹ <?php echo number_format($cartskus['totalAmount']); ?></span><br>
|
|
|
159 |
<span class="pull-left shipping">Shipping </span><span class="pull-right shippingval">₹ <?php echo number_format($cartskus['shippingCharge']);?></span><br>
|
| 18299 |
manish.sha |
160 |
<span id="shippingAlertText">Free Shipping above ₹ 1000<br>You can add different items.</span>
|
| 17804 |
manish.sha |
161 |
</div>
|
|
|
162 |
<?php endif;?>
|
| 17905 |
manish.sha |
163 |
<?php if($cartskus['totalAmount']>0):?>
|
| 17854 |
manish.sha |
164 |
<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 |
165 |
<?php else:?>
|
|
|
166 |
<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>
|
|
|
167 |
<?php endif;?>
|
| 17804 |
manish.sha |
168 |
<div><button type="button" class="btn btn-md checkoutbtn">CHECKOUT</button></div>
|
|
|
169 |
</div>
|
|
|
170 |
</div>
|