| 18324 |
manish.sha |
1 |
<script type="text/javascript">
|
|
|
2 |
$(document).ready(function(){
|
|
|
3 |
setInterval(function(){
|
|
|
4 |
$('span#shippingAlertTextEng').toggleClass('hidden');
|
|
|
5 |
$('span#shippingAlertTextHin').toggleClass('hidden');
|
|
|
6 |
}, 5000);
|
|
|
7 |
if (window.history && window.history.pushState) {
|
|
|
8 |
$(window).on('popstate', function() {
|
|
|
9 |
$('#myModal').modal('hide');
|
|
|
10 |
$("#cartloader").addClass('hidden');
|
|
|
11 |
if(typeof history.form != "undefined"){
|
|
|
12 |
history.form.submit();
|
|
|
13 |
}else if(typeof history.addItem != "undefined"){
|
| 20654 |
amit.gupta |
14 |
window.location.href = apihost + 'categories/linkdeal/3?filtertype=exclusive';
|
| 18324 |
manish.sha |
15 |
}
|
|
|
16 |
});
|
|
|
17 |
}
|
|
|
18 |
});
|
|
|
19 |
</script>
|
|
|
20 |
<link rel="stylesheet" href="/css/hexdots.css" type="text/css">
|
|
|
21 |
<style>
|
|
|
22 |
#cartloader{
|
|
|
23 |
position:absolute;
|
|
|
24 |
/*top:40%;*/
|
|
|
25 |
left:50%;
|
|
|
26 |
z-index:2001;
|
|
|
27 |
}
|
|
|
28 |
span.shippingAlertText{
|
|
|
29 |
color:red;
|
|
|
30 |
font-size:10pt;
|
|
|
31 |
}
|
|
|
32 |
</style>
|
|
|
33 |
<input type="hidden" id="refresh" value="no">
|
|
|
34 |
<div class="container">
|
|
|
35 |
<div class="modal fade" id="cartLoadingModal">
|
|
|
36 |
<div class="modal-dialog">
|
|
|
37 |
<div class="modal-content">
|
|
|
38 |
<div class="modal-body">
|
|
|
39 |
<div class="text-center">
|
|
|
40 |
<img src="/img/ajax-loader.gif"/>
|
|
|
41 |
</div>
|
|
|
42 |
</div>
|
|
|
43 |
</div><!-- /.modal-content -->
|
|
|
44 |
</div><!-- /.modal-dialog -->
|
|
|
45 |
</div><!-- /.modal -->
|
|
|
46 |
<div class="cartpagedetails">
|
|
|
47 |
<span class="glyphicon glyphicon-arrow-left backtodeals" disabled="disabled"></span>
|
|
|
48 |
<span class="cartheader" disabled="disabled">Cart Details<span>
|
|
|
49 |
</div>
|
|
|
50 |
<?php //echo $base_url;?>
|
|
|
51 |
<div class="cartpagemargin">
|
|
|
52 |
</div>
|
|
|
53 |
<?php foreach($cartskus['cartMessages'] as $itemmessage):?>
|
|
|
54 |
<div class="cartmsg-<?php echo $itemmessage['type'];?>">
|
|
|
55 |
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
|
|
|
56 |
<div class="label label-<?php echo $itemmessage['type'];?>">
|
|
|
57 |
<strong><?php echo $itemmessage['messageText'];?></strong>
|
|
|
58 |
</div>
|
|
|
59 |
</div>
|
|
|
60 |
<?php endforeach;?>
|
|
|
61 |
|
|
|
62 |
<div class="text-center hidden" id="cartloader">
|
|
|
63 |
<br><br>
|
|
|
64 |
<div class="hexdots-loader"></div>
|
|
|
65 |
</div>
|
|
|
66 |
|
|
|
67 |
<div class="scroll">
|
|
|
68 |
<?php echo $this->element('cartitems');?>
|
|
|
69 |
</div>
|
|
|
70 |
|
|
|
71 |
<div class="modal fade" id="myModal">
|
|
|
72 |
<div class="modal-dialog">
|
|
|
73 |
<div class="modal-content" style="background-color: #f0f0f0;color: #555;">
|
|
|
74 |
<div class="modal-body">
|
|
|
75 |
<p id="shippingText" style="color:#ff0000;" class="text-center"></p>
|
|
|
76 |
</div>
|
|
|
77 |
<div class="modal-footer">
|
| 20654 |
amit.gupta |
78 |
<button type="button" class="btn btn-md pull-left" id="addItems" style="background-color:#58d936;"><a href="/categories/linkdeal/3?filtertype=exclusive" style="color:#fff;"><strong>Add Items<br>(आइटम जोड़ें)</strong></a></button>
|
| 18324 |
manish.sha |
79 |
<button type="button" class="btn btn-md pull-right" id="continueCheckout" style="background-color:#58d936;color:#fff;"><strong>Continue<br>(आगे बढ़े )</strong></button>
|
|
|
80 |
</div>
|
|
|
81 |
</div><!-- /.modal-content -->
|
|
|
82 |
</div><!-- /.modal-dialog -->
|
|
|
83 |
</div><!-- /.modal -->
|
|
|
84 |
|
|
|
85 |
<div class="col-xs-12 navbar-fixed-bottom pmfooter">
|
|
|
86 |
|
|
|
87 |
<?php if($cartskus['maxEstimate']==-1):?>
|
|
|
88 |
<div class="popover-markup" data-str="<?php echo $cartskus['estimateString'];?>"><span style="color:red">Change Pincode:</span>
|
|
|
89 |
<span style="color:red"><u><?php echo $cartskus['pincode']; ?></u> .</span>
|
|
|
90 |
<span style="color:red"><?php echo $cartskus['estimateString'];?>.</span>
|
|
|
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>
|
|
|
100 |
<?php elseif($cartskus['maxEstimate']==-2 && count($cartskus['cartItems'])>0):?>
|
|
|
101 |
<div class="popover-markup" data-str="<?php echo $cartskus['estimateString'];?>"><span style="color:red">All Items are </span>
|
|
|
102 |
<span style="color:red"><?php echo $cartskus['estimateString'];?>.</span>
|
|
|
103 |
<div class="content hide">
|
|
|
104 |
<div class="form-group">
|
|
|
105 |
<input type="text" class="form-control pincodeval" placeholder="Pincode…" maxlength="6" >
|
|
|
106 |
</div>
|
|
|
107 |
<button type="submit" class="btn btn-default btn-block changepincode">
|
|
|
108 |
Submit
|
|
|
109 |
</button>
|
|
|
110 |
</div>
|
|
|
111 |
</div>
|
|
|
112 |
<?php elseif(count($cartskus['cartItems'])>0):?>
|
|
|
113 |
<div class="popover-markup" data-str="<?php echo $cartskus['estimateString'];?>"> Delivery to
|
|
|
114 |
<span><u><?php echo $cartskus['pincode']; ?></u></span> by <?php echo $cartskus['estimateString'];?>
|
|
|
115 |
<div class="content hide">
|
|
|
116 |
<div class="form-group">
|
|
|
117 |
<input type="text" class="form-control pincodeval" placeholder="Pincode…" maxlength="6" >
|
|
|
118 |
</div>
|
|
|
119 |
<button type="submit" class="btn btn-default btn-block changepincode">
|
|
|
120 |
Submit
|
|
|
121 |
</button>
|
|
|
122 |
</div>
|
|
|
123 |
</div>
|
|
|
124 |
<?php else:?>
|
|
|
125 |
<div class="popover-markup" data-str="<?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>
|
|
|
135 |
<?php endif;?>
|
|
|
136 |
|
|
|
137 |
|
|
|
138 |
<?php if($cartskus['shippingCharge']>0 && $cartskus['totalAmount']>0):?>
|
|
|
139 |
<div class="cartitemstotal" data-itemtotal="<?php echo $cartskus['totalAmount']; ?>" data-shipping="<?php echo $cartskus['shippingCharge'];?>">
|
|
|
140 |
<span class="pull-left ">Item Total </span><span class="pull-right itemstotal">₹ <?php echo number_format($cartskus['totalAmount']); ?></span><br>
|
|
|
141 |
<span class="pull-left shipping">Shipping </span><span class="pull-right shippingval">₹ <?php echo number_format($cartskus['shippingCharge']);?></span><br>
|
|
|
142 |
<span id="shippingAlertTextEng" class="shippingAlertText hidden">Free Shipping above ₹ 1000.<br>You can add different items.</span>
|
|
|
143 |
<span id="shippingAlertTextHin" class="shippingAlertText">₹ 1000 से ऊपर मुफ्त शिपिंग <br> आप अलग अलग आइटम जोड़ सकते हैं।</span>
|
|
|
144 |
</div>
|
|
|
145 |
<?php else:?>
|
|
|
146 |
<div class="cartitemstotal hidden" data-itemtotal="<?php echo $cartskus['totalAmount']; ?>" data-shipping="<?php echo $cartskus['shippingCharge'];?>">
|
|
|
147 |
<span class="pull-left total">Item Total </span><span class="pull-right itemstotal">₹ <?php echo number_format($cartskus['totalAmount']); ?></span><br>
|
|
|
148 |
<span class="pull-left shipping">Shipping </span><span class="pull-right shippingval">₹ <?php echo number_format($cartskus['shippingCharge']);?></span><br>
|
|
|
149 |
<span id="shippingAlertTextEng" class="shippingAlertText hidden">Free Shipping above ₹ 1000.<br>You can add different items.</span>
|
|
|
150 |
<span id="shippingAlertTextHin" class="shippingAlertText">₹ 1000 से ऊपर मुफ्त शिपिंग <br> आप अलग अलग आइटम जोड़ सकते हैं।</span>
|
|
|
151 |
</div>
|
|
|
152 |
<?php endif;?>
|
|
|
153 |
<?php if($cartskus['totalAmount']>0):?>
|
|
|
154 |
<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>
|
|
|
155 |
<?php else:?>
|
|
|
156 |
<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>
|
|
|
157 |
<?php endif;?>
|
|
|
158 |
<div><button type="button" class="btn btn-md checkoutbtn" disabled="true">CHECKOUT</button></div>
|
|
|
159 |
</div>
|
|
|
160 |
</div>
|