| 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>
|
| 13685 |
anikendra |
15 |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
|
|
|
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>
|
| 13682 |
anikendra |
18 |
<script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/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>
|
| 19366 |
naman |
32 |
|
|
|
33 |
|
| 17885 |
manish.sha |
34 |
<script type="text/javascript">
|
| 19366 |
naman |
35 |
window.smartlook||(function(d) {
|
|
|
36 |
var o=smartlook=function(){ o.api.push(arguments)},s=d.getElementsByTagName('script')[0];
|
|
|
37 |
var c=d.createElement('script');o.api=new Array();c.async=true;c.type='text/javascript';
|
|
|
38 |
c.charset='utf-8';c.src='//rec.getsmartlook.com/bundle.js';s.parentNode.insertBefore(c,s);
|
|
|
39 |
})(document);
|
| 19378 |
naman |
40 |
smartlook('init', '<?php echo Configure::read("smartlookkey");?>');
|
| 19366 |
naman |
41 |
</script>
|
|
|
42 |
|
|
|
43 |
<script>
|
| 19385 |
naman |
44 |
|
| 19366 |
naman |
45 |
smartlook('tag', 'name', me);
|
|
|
46 |
</script>
|
|
|
47 |
|
|
|
48 |
<script type="text/javascript">
|
| 17885 |
manish.sha |
49 |
function getC(name)
|
|
|
50 |
{
|
|
|
51 |
var re = new RegExp(name + "=([^;]+)");
|
|
|
52 |
var value = re.exec(document.cookie);
|
|
|
53 |
return (value != null) ? unescape(value[1]) : null;
|
|
|
54 |
}
|
|
|
55 |
var value = getC('txn_comp');
|
|
|
56 |
if(typeof(value) !== 'undefined' && value!==null ){
|
|
|
57 |
if(value=='no'){
|
|
|
58 |
<?php if(isset($localCartHistory)):?>
|
|
|
59 |
var data = '<?php echo json_encode($localCartHistory);?>';
|
|
|
60 |
data = JSON.parse(data);
|
|
|
61 |
var totalCartValue = data.totalAmount;
|
|
|
62 |
var totalCartQuantity = 0;
|
|
|
63 |
var cartItems = {};
|
|
|
64 |
var jsonObjToBeStored = {};
|
|
|
65 |
var shippingCharges = data.shippingCharge;
|
|
|
66 |
var totalSkus = 0;
|
|
|
67 |
|
|
|
68 |
for (var i = 0; i < data.cartItems.length; i++) {
|
|
|
69 |
if(data.cartItems[i].quantity>0){
|
|
|
70 |
var itemDetail = {};
|
|
|
71 |
itemDetail['quantity'] = data.cartItems[i].quantity;
|
|
|
72 |
itemDetail['unitprice'] = data.cartItems[i].sellingPrice;
|
|
|
73 |
itemDetail['productname'] = data.cartItems[i].title;
|
|
|
74 |
itemDetail['brand'] = data.cartItems[i].brand;
|
|
|
75 |
totalSkus = totalSkus+1;
|
|
|
76 |
totalCartQuantity = totalCartQuantity + data.cartItems[i].quantity;
|
|
|
77 |
cartItems[data.cartItems[i].itemId] = itemDetail;
|
|
|
78 |
}
|
|
|
79 |
}
|
|
|
80 |
jsonObjToBeStored['totalCartValue'] = totalCartValue;
|
|
|
81 |
jsonObjToBeStored['totalCartQuantity'] = totalCartQuantity;
|
|
|
82 |
jsonObjToBeStored['totalSkus'] = totalSkus;
|
|
|
83 |
jsonObjToBeStored['shippingCharges'] = shippingCharges;
|
|
|
84 |
jsonObjToBeStored['cartItems'] = cartItems;
|
|
|
85 |
localStorage.setItem('cart_details',JSON.stringify(jsonObjToBeStored));
|
|
|
86 |
<?php endif;?>
|
|
|
87 |
document.cookie = 'txn_comp=; expires=Thu, 01 Jan 1970 00:00:01 GMT;';
|
|
|
88 |
}
|
|
|
89 |
if(value=='yes'){
|
|
|
90 |
localStorage.removeItem('cart_details');
|
|
|
91 |
document.cookie = 'txn_comp=; expires=Thu, 01 Jan 1970 00:00:01 GMT;';
|
|
|
92 |
}
|
|
|
93 |
}
|
|
|
94 |
</script>
|
| 13659 |
anikendra |
95 |
</head>
|
|
|
96 |
<body>
|
| 13532 |
anikendra |
97 |
<div id="fb-root"></div>
|
| 18962 |
naman |
98 |
|
| 14150 |
anikendra |
99 |
<div class="container">
|
|
|
100 |
<?php echo $this->element('header');?>
|
| 17766 |
manish.sha |
101 |
<?php echo $this->element('footer');?>
|
| 14150 |
anikendra |
102 |
<?php echo $this->Session->flash(); ?>
|
|
|
103 |
<?php echo $this->fetch('content'); ?>
|
|
|
104 |
</div>
|
| 13532 |
anikendra |
105 |
<?php //echo $this->element('footer');?>
|
| 13686 |
anikendra |
106 |
<?php //echo $this->element('sql_dump'); ?>
|
|
|
107 |
<script>
|
|
|
108 |
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
|
|
109 |
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
|
|
110 |
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
|
|
111 |
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
|
|
112 |
ga('create', 'UA-59241805-1', 'auto');
|
|
|
113 |
ga('send', 'pageview');
|
| 14433 |
anikendra |
114 |
ga('set', '&uid', me); // Set the user ID using signed-in user_id.
|
| 13686 |
anikendra |
115 |
</script>
|
| 14992 |
anikendra |
116 |
<script src="<?php echo $base_url;?>js/jquery.timeago.js"></script>
|
| 18185 |
amit.gupta |
117 |
<script src="<?php echo $base_url;?>js/jquery.viewport.mini.js?v=<?php echo $staticversion;?>"></script>
|
| 15550 |
anikendra |
118 |
<script src="<?php echo $base_url;?>js/cassandraMap.js"></script>
|
| 14992 |
anikendra |
119 |
<script type="text/javascript">
|
|
|
120 |
jQuery(document).ready(function() {
|
|
|
121 |
jQuery("time.timeago").timeago();
|
|
|
122 |
});
|
|
|
123 |
</script>
|
| 13532 |
anikendra |
124 |
</body>
|
| 13686 |
anikendra |
125 |
</html>
|