| 13532 |
anikendra |
1 |
<?php
|
| 13565 |
anikendra |
2 |
$cakeDescription = __d('cake_dev', 'ProfitTill');
|
| 13532 |
anikendra |
3 |
?>
|
|
|
4 |
<!DOCTYPE html>
|
|
|
5 |
<html lang="en">
|
|
|
6 |
<head>
|
|
|
7 |
<?php echo $this->Html->charset(); ?>
|
|
|
8 |
<meta charset="utf-8">
|
| 13567 |
anikendra |
9 |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
|
|
10 |
<meta name="author" content="">
|
| 13532 |
anikendra |
11 |
<meta name="keywords" content="<?php if(isset($tags)){echo implode(',',$tags);}?>freebies, coupons, cashback"/>
|
|
|
12 |
<meta name="description" content="<?php echo $description;?>"/>
|
|
|
13 |
<meta property="fb:admins" content="100004076526759"/>
|
|
|
14 |
<title><?php echo $cakeDescription ?>: <?php echo trim($title_for_layout); ?></title>
|
| 20706 |
amit.gupta |
15 |
<link rel="stylesheet" href="/css/bootstrap.min.css">
|
| 13685 |
anikendra |
16 |
<link rel="stylesheet" href="<?php echo $base_url;?>css/style.css?v=<?php echo $staticversion;?>">
|
| 13570 |
anikendra |
17 |
<script type="text/javascript" src="<?php echo $base_url;?>js/jquery-1.10.2.js"></script>
|
| 20706 |
amit.gupta |
18 |
<script type="text/javascript" src="/js/bootstrap.min.js"></script>
|
| 13532 |
anikendra |
19 |
<?php
|
|
|
20 |
echo $this->Html->meta('icon');
|
| 13685 |
anikendra |
21 |
// echo $this->Html->css(array('style'));
|
| 13532 |
anikendra |
22 |
echo $this->fetch('meta');
|
|
|
23 |
echo $this->fetch('css');
|
|
|
24 |
echo $this->fetch('script');
|
|
|
25 |
?>
|
| 13633 |
anikendra |
26 |
<script type="text/javascript">
|
| 13659 |
anikendra |
27 |
var me = '<?php echo $logged_user['id'];?>';
|
| 19366 |
naman |
28 |
var myemail = '<?php echo $logged_user['email'];?>';
|
| 13659 |
anikendra |
29 |
var apihost = '<?php echo $apihost;?>';
|
| 15585 |
anikendra |
30 |
var ip = '<?php echo $_SERVER['HTTP_CF_CONNECTING_IP'];?>';
|
| 13633 |
anikendra |
31 |
</script>
|
| 20142 |
naman |
32 |
|
| 17885 |
manish.sha |
33 |
<script type="text/javascript">
|
|
|
34 |
function getC(name)
|
|
|
35 |
{
|
|
|
36 |
var re = new RegExp(name + "=([^;]+)");
|
|
|
37 |
var value = re.exec(document.cookie);
|
|
|
38 |
return (value != null) ? unescape(value[1]) : null;
|
|
|
39 |
}
|
|
|
40 |
var value = getC('txn_comp');
|
|
|
41 |
if(typeof(value) !== 'undefined' && value!==null ){
|
|
|
42 |
if(value=='no'){
|
|
|
43 |
<?php if(isset($localCartHistory)):?>
|
|
|
44 |
var data = '<?php echo json_encode($localCartHistory);?>';
|
|
|
45 |
data = JSON.parse(data);
|
|
|
46 |
var totalCartValue = data.totalAmount;
|
|
|
47 |
var totalCartQuantity = 0;
|
|
|
48 |
var cartItems = {};
|
|
|
49 |
var jsonObjToBeStored = {};
|
|
|
50 |
var shippingCharges = data.shippingCharge;
|
|
|
51 |
var totalSkus = 0;
|
|
|
52 |
|
|
|
53 |
for (var i = 0; i < data.cartItems.length; i++) {
|
|
|
54 |
if(data.cartItems[i].quantity>0){
|
|
|
55 |
var itemDetail = {};
|
|
|
56 |
itemDetail['quantity'] = data.cartItems[i].quantity;
|
|
|
57 |
itemDetail['unitprice'] = data.cartItems[i].sellingPrice;
|
|
|
58 |
itemDetail['productname'] = data.cartItems[i].title;
|
|
|
59 |
itemDetail['brand'] = data.cartItems[i].brand;
|
|
|
60 |
totalSkus = totalSkus+1;
|
|
|
61 |
totalCartQuantity = totalCartQuantity + data.cartItems[i].quantity;
|
|
|
62 |
cartItems[data.cartItems[i].itemId] = itemDetail;
|
|
|
63 |
}
|
|
|
64 |
}
|
|
|
65 |
jsonObjToBeStored['totalCartValue'] = totalCartValue;
|
|
|
66 |
jsonObjToBeStored['totalCartQuantity'] = totalCartQuantity;
|
|
|
67 |
jsonObjToBeStored['totalSkus'] = totalSkus;
|
|
|
68 |
jsonObjToBeStored['shippingCharges'] = shippingCharges;
|
|
|
69 |
jsonObjToBeStored['cartItems'] = cartItems;
|
|
|
70 |
localStorage.setItem('cart_details',JSON.stringify(jsonObjToBeStored));
|
|
|
71 |
<?php endif;?>
|
|
|
72 |
document.cookie = 'txn_comp=; expires=Thu, 01 Jan 1970 00:00:01 GMT;';
|
|
|
73 |
}
|
|
|
74 |
if(value=='yes'){
|
|
|
75 |
localStorage.removeItem('cart_details');
|
|
|
76 |
document.cookie = 'txn_comp=; expires=Thu, 01 Jan 1970 00:00:01 GMT;';
|
|
|
77 |
}
|
|
|
78 |
}
|
|
|
79 |
</script>
|
| 13659 |
anikendra |
80 |
</head>
|
| 19612 |
naman |
81 |
<body onload="loaded()">
|
| 14150 |
anikendra |
82 |
<div class="container">
|
|
|
83 |
<?php echo $this->element('header');?>
|
| 17766 |
manish.sha |
84 |
<?php echo $this->element('footer');?>
|
| 14150 |
anikendra |
85 |
<?php echo $this->Session->flash(); ?>
|
|
|
86 |
<?php echo $this->fetch('content'); ?>
|
|
|
87 |
</div>
|
| 13532 |
anikendra |
88 |
<?php //echo $this->element('footer');?>
|
| 13686 |
anikendra |
89 |
<?php //echo $this->element('sql_dump'); ?>
|
|
|
90 |
<script>
|
|
|
91 |
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
|
|
92 |
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
|
|
93 |
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
|
|
94 |
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
|
|
95 |
ga('create', 'UA-59241805-1', 'auto');
|
|
|
96 |
ga('send', 'pageview');
|
| 14433 |
anikendra |
97 |
ga('set', '&uid', me); // Set the user ID using signed-in user_id.
|
| 13686 |
anikendra |
98 |
</script>
|
| 14992 |
anikendra |
99 |
<script src="<?php echo $base_url;?>js/jquery.timeago.js"></script>
|
| 18185 |
amit.gupta |
100 |
<script src="<?php echo $base_url;?>js/jquery.viewport.mini.js?v=<?php echo $staticversion;?>"></script>
|
| 15550 |
anikendra |
101 |
<script src="<?php echo $base_url;?>js/cassandraMap.js"></script>
|
| 14992 |
anikendra |
102 |
<script type="text/javascript">
|
|
|
103 |
jQuery(document).ready(function() {
|
|
|
104 |
jQuery("time.timeago").timeago();
|
|
|
105 |
});
|
|
|
106 |
</script>
|
| 13532 |
anikendra |
107 |
</body>
|
| 13686 |
anikendra |
108 |
</html>
|