Subversion Repositories SmartDukaan

Rev

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

Rev 18305 Rev 18313
Line 8... Line 8...
8
	    },
8
	    },
9
	    content: function () {
9
	    content: function () {
10
	        return $(this).parent().find('.content').html();
10
	        return $(this).parent().find('.content').html();
11
	    }
11
	    }
12
	});
12
	});
-
 
13
	setInterval(function(){ 
-
 
14
		$('span#shippingAlertTextEng').toggleClass('hidden'); 
13
	$('#shippingAlertText').addClass('animated flash');
15
		$('span#shippingAlertTextHin').toggleClass('hidden'); 
-
 
16
		}, 5000);
14
	 if (window.history && window.history.pushState) {
17
	if (window.history && window.history.pushState) {
15
        $(window).on('popstate', function() {
18
		$(window).on('popstate', function() {
16
             $('#myModal').modal('hide');
19
        	$('#myModal').modal('hide');
17
             $("#cartloader").addClass('hidden');
20
            $("#cartloader").addClass('hidden');
18
             if(typeof history.form != "undefined"){
21
            if(typeof history.form != "undefined"){
19
                 history.form.submit();
22
                history.form.submit();
20
             }else{
23
            }else if(typeof history.addItem != "undefined"){
21
            	 window.location.href = apihost + 'category/6';
24
            	window.location.href = apihost + 'category/6';
22
             }   
25
            }   
23
        });
26
        });
24
      }
27
    }
25
});
28
});
26
</script>
29
</script>
27
<link rel="stylesheet" href="/css/hexdots.css" type="text/css">
30
<link rel="stylesheet" href="/css/hexdots.css" type="text/css">
28
<link rel="stylesheet" href="/css/animate.css" type="text/css">
-
 
29
<style>
31
<style>
30
#cartloader{
32
#cartloader{
31
    position:absolute;
33
    position:absolute;
32
    /*top:40%;*/
34
    /*top:40%;*/
33
    left:50%;
35
    left:50%;
34
    z-index:2001;
36
    z-index:2001;
35
}
37
}
36
#shippingAlertText{
38
span.shippingAlertText{
37
	color:red;
39
	color:red;
38
	font-size:10pt;
40
	font-size:10pt;
39
	-webkit-animation-duration: 5s;
-
 
40
  	animation-duration: 5s;
-
 
41
	-webkit-animation-iteration-count: infinite;
-
 
42
  	animation-iteration-count: infinite;
-
 
43
}
41
}
44
</style>
42
</style>
45
<input type="hidden" id="refresh" value="no">
43
<input type="hidden" id="refresh" value="no">
46
<div class="container">
44
<div class="container">
47
<div class="modal fade" id="cartLoadingModal">
45
<div class="modal fade" id="cartLoadingModal">
Line 151... Line 149...
151
	
149
	
152
	<?php if($cartskus['shippingCharge']>0 && $cartskus['totalAmount']>0):?>
150
	<?php if($cartskus['shippingCharge']>0 && $cartskus['totalAmount']>0):?>
153
	<div class="cartitemstotal" data-itemtotal="<?php echo $cartskus['totalAmount']; ?>" data-shipping="<?php echo $cartskus['shippingCharge'];?>">
151
	<div class="cartitemstotal" data-itemtotal="<?php echo $cartskus['totalAmount']; ?>" data-shipping="<?php echo $cartskus['shippingCharge'];?>">
154
	<span class="pull-left ">Item Total </span><span class="pull-right itemstotal">&#8377; <?php echo number_format($cartskus['totalAmount']); ?></span><br>
152
	<span class="pull-left ">Item Total </span><span class="pull-right itemstotal">&#8377; <?php echo number_format($cartskus['totalAmount']); ?></span><br>
155
	<span class="pull-left shipping">Shipping </span><span class="pull-right shippingval">&#8377; <?php echo number_format($cartskus['shippingCharge']);?></span><br>
153
	<span class="pull-left shipping">Shipping </span><span class="pull-right shippingval">&#8377; <?php echo number_format($cartskus['shippingCharge']);?></span><br>
156
	<span id="shippingAlertText">Free Shipping above &#8377; 1000.<br>You can add different items.</span> 
154
	<span id="shippingAlertTextEng" class="shippingAlertText hidden">Free Shipping above &#8377; 1000.<br>You can add different items.</span> 
-
 
155
	<span id="shippingAlertTextHin" class="shippingAlertText">&#8377; 1000 से ऊपर मुफ्त शिपिंग <br> आप अलग अलग आइटम जोड़ सकते हैं।</span>
157
	</div> 
156
	</div> 
158
	<?php else:?>
157
	<?php else:?>
159
	<div class="cartitemstotal hidden" data-itemtotal="<?php echo $cartskus['totalAmount']; ?>" data-shipping="<?php echo $cartskus['shippingCharge'];?>">
158
	<div class="cartitemstotal hidden" data-itemtotal="<?php echo $cartskus['totalAmount']; ?>" data-shipping="<?php echo $cartskus['shippingCharge'];?>">
160
	<span class="pull-left total">Item Total </span><span class="pull-right itemstotal">&#8377; <?php echo number_format($cartskus['totalAmount']); ?></span><br>
159
	<span class="pull-left total">Item Total </span><span class="pull-right itemstotal">&#8377; <?php echo number_format($cartskus['totalAmount']); ?></span><br>
161
	<span class="pull-left shipping">Shipping </span><span class="pull-right shippingval">&#8377; <?php echo number_format($cartskus['shippingCharge']);?></span><br>
160
	<span class="pull-left shipping">Shipping </span><span class="pull-right shippingval">&#8377; <?php echo number_format($cartskus['shippingCharge']);?></span><br>
162
	<span id="shippingAlertText">Free Shipping above &#8377; 1000<br>You can add different items.</span>  
161
	<span id="shippingAlertTextEng" class="shippingAlertText hidden">Free Shipping above &#8377; 1000.<br>You can add different items.</span> 
-
 
162
	<span id="shippingAlertTextHin" class="shippingAlertText">&#8377; 1000 से ऊपर मुफ्त शिपिंग <br> आप अलग अलग आइटम जोड़ सकते हैं।</span>  
163
	</div>
163
	</div>
164
	<?php endif;?>
164
	<?php endif;?>
165
	<?php if($cartskus['totalAmount']>0):?>
165
	<?php if($cartskus['totalAmount']>0):?>
166
	<div class="cartgrandtotal" data-grand="<?php echo ($cartskus['totalAmount']+$cartskus['shippingCharge']); ?>"><span class="pull-left"><strong>Payable </strong></span><span class="pull-right"> &#8377; <?php echo number_format($cartskus['totalAmount']+$cartskus['shippingCharge']); ?> </span></div>
166
	<div class="cartgrandtotal" data-grand="<?php echo ($cartskus['totalAmount']+$cartskus['shippingCharge']); ?>"><span class="pull-left"><strong>Payable </strong></span><span class="pull-right"> &#8377; <?php echo number_format($cartskus['totalAmount']+$cartskus['shippingCharge']); ?> </span></div>
167
	<?php else:?>
167
	<?php else:?>