| 13672 |
anikendra |
1 |
<div class="container">
|
| 14300 |
anikendra |
2 |
<ul class="nav nav-tabs noborder">
|
|
|
3 |
<li class="col-xs-6 favswitch active" data-type="like">
|
|
|
4 |
<a href="javascript:void(0);" >Liked Deals</a>
|
|
|
5 |
</li>
|
|
|
6 |
<li class="col-xs-6 favswitch" data-type="dislike">
|
|
|
7 |
<a href="javascript:void(0);" >Disliked Deals</a>
|
|
|
8 |
</li>
|
|
|
9 |
</ul>
|
| 13731 |
anikendra |
10 |
<?php echo $this->element('unlikemodal');?>
|
| 14300 |
anikendra |
11 |
<?php //debug($mydislikes);?>
|
| 13672 |
anikendra |
12 |
<?php if(!empty($myfavorites)):?>
|
| 14300 |
anikendra |
13 |
<?php foreach ($myfavorites as $key => $product):?>
|
|
|
14 |
<div class="row card like" id="fav-<?php echo $product['UserAction']['id'];?>">
|
| 13962 |
anikendra |
15 |
<div class="col-xs-4 productthumb viewproduct" data-id="<?php echo $product['StoreProduct']['_id'];?>">
|
| 13731 |
anikendra |
16 |
<?php if(!empty($product['StoreProduct']['thumbnail'])):?>
|
| 13962 |
anikendra |
17 |
<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 |
18 |
<?php else:?>
|
|
|
19 |
<img src="<?php echo $base_url;?>timthumb.php?src=<?php echo $base_url;?>img/noimage.png&h=80" alt="<?php echo $product['StoreProduct']['title'];?>"/>
|
|
|
20 |
<?php endif;?>
|
|
|
21 |
</div>
|
| 13962 |
anikendra |
22 |
<div class="col-xs-6 productdetails viewproduct" data-id="<?php echo $product['StoreProduct']['_id'];?>">
|
|
|
23 |
<h5 class="producttitle"><?php echo $product['StoreProduct']['source_product_name'];?></h5>
|
| 14111 |
anikendra |
24 |
<div class="product_short_description <?php if(!isset($product['StoreProduct']['tagline'])):?>hidden<?php endif;?>"><?php echo $product['StoreProduct']['tagline'];?></div>
|
| 13731 |
anikendra |
25 |
<div class="product_prices row">
|
| 14111 |
anikendra |
26 |
<div><span class="rupee"></span><span class="product_price"><?php echo $product['StoreProduct']['available_price'];?></span>
|
|
|
27 |
<?php if(isset($product['StoreProduct']['cash_back_type']) && !empty($product['StoreProduct']['cash_back_type']) && $product['StoreProduct']['cash_back_type']!=0):?> +
|
|
|
28 |
<?php if($product['StoreProduct']['cash_back_type'] == 2):?>
|
|
|
29 |
<span class="cashbackrupee"></span> <span class="cashback"><?php echo $product['StoreProduct']['cash_back'];?></span>
|
|
|
30 |
</div>
|
|
|
31 |
<?php else:?>
|
|
|
32 |
<?php echo $product['StoreProduct']['cash_back'];?> %
|
|
|
33 |
<?php endif;?> Cashback
|
|
|
34 |
<?php endif;?>
|
|
|
35 |
</div>
|
| 13731 |
anikendra |
36 |
</div>
|
| 14111 |
anikendra |
37 |
<div class="dealoffer <?php if(!isset($product['StoreProduct']['offer']) || empty($product['StoreProduct']['offer'])):?>hidden<?php endif;?> row">
|
|
|
38 |
<div class="col-xs-3 offerlabel">
|
|
|
39 |
OFFER
|
|
|
40 |
</div>
|
|
|
41 |
<div class="col-xs-9 offertext">
|
|
|
42 |
<?php echo $product['StoreProduct']['offer'];?>
|
|
|
43 |
</div>
|
|
|
44 |
</div>
|
| 13672 |
anikendra |
45 |
</div>
|
| 13750 |
anikendra |
46 |
<div class="col-xs-2 text-right">
|
| 13731 |
anikendra |
47 |
<div class="deletefav" data-id="<?php echo $product['UserAction']['id'];?>"></div>
|
|
|
48 |
</div>
|
|
|
49 |
</div>
|
| 13672 |
anikendra |
50 |
<?php endforeach;?>
|
| 14300 |
anikendra |
51 |
<div class="row text-center clearfavs like" data-type="like">
|
| 13731 |
anikendra |
52 |
<div class="deleteallfavs"></div>
|
|
|
53 |
<div class="clearlist">Clear List</div>
|
|
|
54 |
</div>
|
| 13732 |
anikendra |
55 |
<?php else:?>
|
| 13737 |
anikendra |
56 |
<h3>Your Favourite list is empty</h3>
|
| 13672 |
anikendra |
57 |
<?php endif;?>
|
| 14300 |
anikendra |
58 |
<?php if(!empty($mydislikes)):?>
|
|
|
59 |
<?php foreach ($mydislikes as $key => $product):?>
|
|
|
60 |
<div class="row card dislike hidden" id="fav-<?php echo $product['UserAction']['id'];?>">
|
|
|
61 |
<div class="col-xs-4 productthumb viewproduct" data-id="<?php echo $product['StoreProduct']['_id'];?>">
|
|
|
62 |
<?php if(!empty($product['StoreProduct']['thumbnail'])):?>
|
|
|
63 |
<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"/>
|
|
|
64 |
<?php else:?>
|
| 17760 |
amit.gupta |
65 |
<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 |
66 |
<?php endif;?>
|
|
|
67 |
</div>
|
|
|
68 |
<div class="col-xs-6 productdetails viewproduct" data-id="<?php echo $product['StoreProduct']['_id'];?>">
|
|
|
69 |
<h5 class="producttitle"><?php echo $product['StoreProduct']['source_product_name'];?></h5>
|
|
|
70 |
<div class="product_short_description <?php if(!isset($product['StoreProduct']['tagline'])):?>hidden<?php endif;?>"><?php echo $product['StoreProduct']['tagline'];?></div>
|
|
|
71 |
<div class="product_prices row">
|
|
|
72 |
<div><span class="rupee"></span><span class="product_price"><?php echo $product['StoreProduct']['available_price'];?></span>
|
|
|
73 |
<?php if(isset($product['StoreProduct']['cash_back_type']) && !empty($product['StoreProduct']['cash_back_type']) && $product['StoreProduct']['cash_back_type']!=0):?> +
|
|
|
74 |
<?php if($product['StoreProduct']['cash_back_type'] == 2):?>
|
|
|
75 |
<span class="cashbackrupee"></span> <span class="cashback"><?php echo $product['StoreProduct']['cash_back'];?></span>
|
|
|
76 |
</div>
|
|
|
77 |
<?php else:?>
|
|
|
78 |
<?php echo $product['StoreProduct']['cash_back'];?> %
|
|
|
79 |
<?php endif;?> Cashback
|
|
|
80 |
<?php endif;?>
|
|
|
81 |
</div>
|
|
|
82 |
</div>
|
|
|
83 |
<div class="dealoffer <?php if(!isset($product['StoreProduct']['offer']) || empty($product['StoreProduct']['offer'])):?>hidden<?php endif;?> row">
|
|
|
84 |
<div class="col-xs-3 offerlabel">
|
|
|
85 |
OFFER
|
|
|
86 |
</div>
|
|
|
87 |
<div class="col-xs-9 offertext">
|
|
|
88 |
<?php echo $product['StoreProduct']['offer'];?>
|
|
|
89 |
</div>
|
|
|
90 |
</div>
|
|
|
91 |
</div>
|
|
|
92 |
<div class="col-xs-2 text-right">
|
|
|
93 |
<div class="deletefav" data-id="<?php echo $product['UserAction']['id'];?>"></div>
|
|
|
94 |
</div>
|
|
|
95 |
</div>
|
|
|
96 |
<?php endforeach;?>
|
|
|
97 |
<div class="row text-center clearfavs dislike hidden" data-type="dislike">
|
|
|
98 |
<div class="deleteallfavs"></div>
|
|
|
99 |
<div class="clearlist">Clear List</div>
|
|
|
100 |
</div>
|
|
|
101 |
<?php endif;?>
|
| 13698 |
anikendra |
102 |
</div>
|
| 18146 |
amit.gupta |
103 |
<script type="text/javascript" src="/js/jquery.jscroll.min.js?v=<?php echo $staticversion;?>"></script>
|
| 13731 |
anikendra |
104 |
<script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
|
|
|
105 |
<script type="text/javascript" src="/js/profittill.js?v=<?php echo $staticversion;?>"></script>
|