| 18311 |
naman |
1 |
<script>
|
|
|
2 |
$(document).ready(function(){
|
|
|
3 |
$('.seeproduct').click(function(){
|
| 18328 |
naman |
4 |
$('#loadingModal').modal();
|
| 18311 |
naman |
5 |
var proid = $(this).data("id");
|
|
|
6 |
var identifier = $(this).data("identifier");
|
|
|
7 |
var urll = apihost+"categories/saholicdeal/"+proid;
|
|
|
8 |
$.ajax({
|
|
|
9 |
method: "GET",
|
|
|
10 |
url: urll,
|
|
|
11 |
},'json')
|
|
|
12 |
.done(function(msg){
|
|
|
13 |
if (typeof(Storage) !== "undefined") {
|
|
|
14 |
localStorage.removeItem("productdetail");
|
|
|
15 |
localStorage.setItem("productdetail",msg);
|
| 18328 |
naman |
16 |
document.location = apihost+"categories/dealdetail/"+identifier;
|
| 18311 |
naman |
17 |
}
|
|
|
18 |
});
|
|
|
19 |
|
| 18328 |
naman |
20 |
|
| 18311 |
naman |
21 |
});
|
|
|
22 |
});
|
|
|
23 |
</script>
|
|
|
24 |
|
|
|
25 |
<style>
|
|
|
26 |
.seeproduct{cursor: crosshair !important;}
|
|
|
27 |
</style>
|
|
|
28 |
|
| 13672 |
anikendra |
29 |
<div class="container">
|
| 14300 |
anikendra |
30 |
<ul class="nav nav-tabs noborder">
|
|
|
31 |
<li class="col-xs-6 favswitch active" data-type="like">
|
|
|
32 |
<a href="javascript:void(0);" >Liked Deals</a>
|
|
|
33 |
</li>
|
|
|
34 |
<li class="col-xs-6 favswitch" data-type="dislike">
|
|
|
35 |
<a href="javascript:void(0);" >Disliked Deals</a>
|
|
|
36 |
</li>
|
|
|
37 |
</ul>
|
| 13731 |
anikendra |
38 |
<?php echo $this->element('unlikemodal');?>
|
| 14300 |
anikendra |
39 |
<?php //debug($mydislikes);?>
|
| 13672 |
anikendra |
40 |
<?php if(!empty($myfavorites)):?>
|
| 14300 |
anikendra |
41 |
<?php foreach ($myfavorites as $key => $product):?>
|
|
|
42 |
<div class="row card like" id="fav-<?php echo $product['UserAction']['id'];?>">
|
| 18311 |
naman |
43 |
<div class="col-xs-4 productthumb <?php if($product['StoreProduct']['source_id'] == 4):?>seeproduct<?php else:?>viewproduct<?php endif;?>" data-id="<?php echo $product['StoreProduct']['_id'];?>" <?php if($product['StoreProduct']['source_id'] == 4):?>data-identifier="<?php echo $product['StoreProduct']['identifier'];?>"<?php endif;?>>
|
| 13731 |
anikendra |
44 |
<?php if(!empty($product['StoreProduct']['thumbnail'])):?>
|
| 13962 |
anikendra |
45 |
<img src="<?php echo $base_url;?>app/webroot/timthumb.php?h=100&src=<?php echo $product['StoreProduct']['thumbnail'];?>" alt="<?php echo $product['StoreProduct']['source_product_name'];?>" class="productthumb"/>
|
| 13731 |
anikendra |
46 |
<?php else:?>
|
|
|
47 |
<img src="<?php echo $base_url;?>timthumb.php?src=<?php echo $base_url;?>img/noimage.png&h=80" alt="<?php echo $product['StoreProduct']['title'];?>"/>
|
|
|
48 |
<?php endif;?>
|
|
|
49 |
</div>
|
| 18311 |
naman |
50 |
<div class="col-xs-6 productdetails <?php if($product['StoreProduct']['source_id'] == 4):?>seeproduct<?php else:?>viewproduct<?php endif;?>" data-id="<?php echo $product['StoreProduct']['_id'];?>" data-identifier="<?php echo $product['StoreProduct']['identifier'];?>">
|
| 13962 |
anikendra |
51 |
<h5 class="producttitle"><?php echo $product['StoreProduct']['source_product_name'];?></h5>
|
| 14111 |
anikendra |
52 |
<div class="product_short_description <?php if(!isset($product['StoreProduct']['tagline'])):?>hidden<?php endif;?>"><?php echo $product['StoreProduct']['tagline'];?></div>
|
| 13731 |
anikendra |
53 |
<div class="product_prices row">
|
| 14111 |
anikendra |
54 |
<div><span class="rupee"></span><span class="product_price"><?php echo $product['StoreProduct']['available_price'];?></span>
|
| 18311 |
naman |
55 |
<?php if(isset($product['StoreProduct']['cash_back_type']) && !empty($product['StoreProduct']['cash_back_type']) && $product['StoreProduct']['cash_back_type']!=0):?>
|
| 14111 |
anikendra |
56 |
<?php if($product['StoreProduct']['cash_back_type'] == 2):?>
|
| 18311 |
naman |
57 |
+ <span class="cashbackrupee"></span> <span class="cashback"><?php echo $product['StoreProduct']['cash_back'];?></span> Cashback
|
| 20095 |
naman |
58 |
<!-- </div> -->
|
| 14111 |
anikendra |
59 |
<?php else:?>
|
| 18311 |
naman |
60 |
<?php if($product['StoreProduct']['cash_back']>0):?>
|
|
|
61 |
+ <?php echo $product['StoreProduct']['cash_back'];?> % Cashback
|
|
|
62 |
<?php endif;?>
|
|
|
63 |
<?php endif;?>
|
| 14111 |
anikendra |
64 |
<?php endif;?>
|
|
|
65 |
</div>
|
| 13731 |
anikendra |
66 |
</div>
|
| 14111 |
anikendra |
67 |
<div class="dealoffer <?php if(!isset($product['StoreProduct']['offer']) || empty($product['StoreProduct']['offer'])):?>hidden<?php endif;?> row">
|
|
|
68 |
<div class="col-xs-3 offerlabel">
|
|
|
69 |
OFFER
|
|
|
70 |
</div>
|
|
|
71 |
<div class="col-xs-9 offertext">
|
|
|
72 |
<?php echo $product['StoreProduct']['offer'];?>
|
|
|
73 |
</div>
|
|
|
74 |
</div>
|
| 13672 |
anikendra |
75 |
</div>
|
| 13750 |
anikendra |
76 |
<div class="col-xs-2 text-right">
|
| 13731 |
anikendra |
77 |
<div class="deletefav" data-id="<?php echo $product['UserAction']['id'];?>"></div>
|
|
|
78 |
</div>
|
|
|
79 |
</div>
|
| 13672 |
anikendra |
80 |
<?php endforeach;?>
|
| 14300 |
anikendra |
81 |
<div class="row text-center clearfavs like" data-type="like">
|
| 13731 |
anikendra |
82 |
<div class="deleteallfavs"></div>
|
|
|
83 |
<div class="clearlist">Clear List</div>
|
|
|
84 |
</div>
|
| 13732 |
anikendra |
85 |
<?php else:?>
|
| 13737 |
anikendra |
86 |
<h3>Your Favourite list is empty</h3>
|
| 13672 |
anikendra |
87 |
<?php endif;?>
|
| 14300 |
anikendra |
88 |
<?php if(!empty($mydislikes)):?>
|
|
|
89 |
<?php foreach ($mydislikes as $key => $product):?>
|
|
|
90 |
<div class="row card dislike hidden" id="fav-<?php echo $product['UserAction']['id'];?>">
|
| 18311 |
naman |
91 |
<div class="col-xs-4 productthumb <?php if($product['StoreProduct']['source_id'] == 4):?>seeproduct<?php else:?>viewproduct<?php endif;?>" data-id="<?php echo $product['StoreProduct']['_id'];?>" data-identifier="<?php echo $product['StoreProduct']['identifier'];?>">
|
| 14300 |
anikendra |
92 |
<?php if(!empty($product['StoreProduct']['thumbnail'])):?>
|
|
|
93 |
<img src="<?php echo $base_url;?>app/webroot/timthumb.php?h=100&src=<?php echo $product['StoreProduct']['thumbnail'];?>" alt="<?php echo $product['StoreProduct']['source_product_name'];?>" class="productthumb"/>
|
|
|
94 |
<?php else:?>
|
| 17760 |
amit.gupta |
95 |
<img src="<?php echo $base_url;?>timthumb.php?src=<?php echo urlencode ($base_url);?>img/noimage.png&h=80" alt="<?php echo $product['StoreProduct']['title'];?>"/>
|
| 14300 |
anikendra |
96 |
<?php endif;?>
|
|
|
97 |
</div>
|
| 18311 |
naman |
98 |
<div class="col-xs-6 productdetails <?php if($product['StoreProduct']['source_id'] == 4):?>seeproduct<?php else:?>viewproduct<?php endif;?>" data-id="<?php echo $product['StoreProduct']['_id'];?>" data-identifier="<?php echo $product['StoreProduct']['identifier'];?>">
|
| 14300 |
anikendra |
99 |
<h5 class="producttitle"><?php echo $product['StoreProduct']['source_product_name'];?></h5>
|
|
|
100 |
<div class="product_short_description <?php if(!isset($product['StoreProduct']['tagline'])):?>hidden<?php endif;?>"><?php echo $product['StoreProduct']['tagline'];?></div>
|
|
|
101 |
<div class="product_prices row">
|
|
|
102 |
<div><span class="rupee"></span><span class="product_price"><?php echo $product['StoreProduct']['available_price'];?></span>
|
| 18311 |
naman |
103 |
<?php if(isset($product['StoreProduct']['cash_back_type']) && !empty($product['StoreProduct']['cash_back_type']) && $product['StoreProduct']['cash_back_type']!=0):?>
|
| 14300 |
anikendra |
104 |
<?php if($product['StoreProduct']['cash_back_type'] == 2):?>
|
| 18311 |
naman |
105 |
+ <span class="cashbackrupee"></span> <span class="cashback"><?php echo $product['StoreProduct']['cash_back'];?></span> Cashback
|
| 20095 |
naman |
106 |
<!-- </div> -->
|
| 14300 |
anikendra |
107 |
<?php else:?>
|
| 18311 |
naman |
108 |
<?php if($product['StoreProduct']['cash_back']>0):?>
|
|
|
109 |
+ <?php echo $product['StoreProduct']['cash_back'];?> % Cashback
|
|
|
110 |
<?php endif;?>
|
|
|
111 |
<?php endif;?>
|
| 14300 |
anikendra |
112 |
<?php endif;?>
|
|
|
113 |
</div>
|
|
|
114 |
</div>
|
|
|
115 |
<div class="dealoffer <?php if(!isset($product['StoreProduct']['offer']) || empty($product['StoreProduct']['offer'])):?>hidden<?php endif;?> row">
|
|
|
116 |
<div class="col-xs-3 offerlabel">
|
|
|
117 |
OFFER
|
|
|
118 |
</div>
|
|
|
119 |
<div class="col-xs-9 offertext">
|
|
|
120 |
<?php echo $product['StoreProduct']['offer'];?>
|
|
|
121 |
</div>
|
|
|
122 |
</div>
|
|
|
123 |
</div>
|
|
|
124 |
<div class="col-xs-2 text-right">
|
|
|
125 |
<div class="deletefav" data-id="<?php echo $product['UserAction']['id'];?>"></div>
|
|
|
126 |
</div>
|
|
|
127 |
</div>
|
|
|
128 |
<?php endforeach;?>
|
|
|
129 |
<div class="row text-center clearfavs dislike hidden" data-type="dislike">
|
|
|
130 |
<div class="deleteallfavs"></div>
|
|
|
131 |
<div class="clearlist">Clear List</div>
|
|
|
132 |
</div>
|
|
|
133 |
<?php endif;?>
|
| 13698 |
anikendra |
134 |
</div>
|
| 18146 |
amit.gupta |
135 |
<script type="text/javascript" src="/js/jquery.jscroll.min.js?v=<?php echo $staticversion;?>"></script>
|
| 20706 |
amit.gupta |
136 |
<script type="text/javascript" src="/js/bootstrap.min.js"></script>
|
| 13731 |
anikendra |
137 |
<script type="text/javascript" src="/js/profittill.js?v=<?php echo $staticversion;?>"></script>
|