| Line -... |
Line 1... |
| - |
|
1 |
<script>
|
| - |
|
2 |
$(document).ready(function(){
|
| - |
|
3 |
$('.seeproduct').click(function(){
|
| - |
|
4 |
var proid = $(this).data("id");
|
| - |
|
5 |
var identifier = $(this).data("identifier");
|
| - |
|
6 |
var urll = apihost+"categories/saholicdeal/"+proid;
|
| - |
|
7 |
$.ajax({
|
| - |
|
8 |
method: "GET",
|
| - |
|
9 |
url: urll,
|
| - |
|
10 |
},'json')
|
| - |
|
11 |
.done(function(msg){
|
| - |
|
12 |
if (typeof(Storage) !== "undefined") {
|
| - |
|
13 |
localStorage.removeItem("productdetail");
|
| - |
|
14 |
localStorage.setItem("productdetail",msg);
|
| - |
|
15 |
}
|
| - |
|
16 |
});
|
| - |
|
17 |
|
| - |
|
18 |
document.location = apihost+"categories/dealdetail/"+identifier;
|
| - |
|
19 |
});
|
| - |
|
20 |
});
|
| - |
|
21 |
</script>
|
| - |
|
22 |
|
| - |
|
23 |
<style>
|
| - |
|
24 |
.seeproduct{cursor: crosshair !important;}
|
| - |
|
25 |
</style>
|
| - |
|
26 |
|
| 1 |
<div class="container">
|
27 |
<div class="container">
|
| 2 |
<ul class="nav nav-tabs noborder">
|
28 |
<ul class="nav nav-tabs noborder">
|
| 3 |
<li class="col-xs-6 favswitch active" data-type="like">
|
29 |
<li class="col-xs-6 favswitch active" data-type="like">
|
| 4 |
<a href="javascript:void(0);" >Liked Deals</a>
|
30 |
<a href="javascript:void(0);" >Liked Deals</a>
|
| 5 |
</li>
|
31 |
</li>
|
| Line 10... |
Line 36... |
| 10 |
<?php echo $this->element('unlikemodal');?>
|
36 |
<?php echo $this->element('unlikemodal');?>
|
| 11 |
<?php //debug($mydislikes);?>
|
37 |
<?php //debug($mydislikes);?>
|
| 12 |
<?php if(!empty($myfavorites)):?>
|
38 |
<?php if(!empty($myfavorites)):?>
|
| 13 |
<?php foreach ($myfavorites as $key => $product):?>
|
39 |
<?php foreach ($myfavorites as $key => $product):?>
|
| 14 |
<div class="row card like" id="fav-<?php echo $product['UserAction']['id'];?>">
|
40 |
<div class="row card like" id="fav-<?php echo $product['UserAction']['id'];?>">
|
| 15 |
<div class="col-xs-4 productthumb viewproduct" data-id="<?php echo $product['StoreProduct']['_id'];?>">
|
41 |
<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;?>>
|
| 16 |
<?php if(!empty($product['StoreProduct']['thumbnail'])):?>
|
42 |
<?php if(!empty($product['StoreProduct']['thumbnail'])):?>
|
| 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"/>
|
43 |
<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"/>
|
| 18 |
<?php else:?>
|
44 |
<?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'];?>"/>
|
45 |
<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;?>
|
46 |
<?php endif;?>
|
| 21 |
</div>
|
47 |
</div>
|
| 22 |
<div class="col-xs-6 productdetails viewproduct" data-id="<?php echo $product['StoreProduct']['_id'];?>">
|
48 |
<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'];?>">
|
| 23 |
<h5 class="producttitle"><?php echo $product['StoreProduct']['source_product_name'];?></h5>
|
49 |
<h5 class="producttitle"><?php echo $product['StoreProduct']['source_product_name'];?></h5>
|
| 24 |
<div class="product_short_description <?php if(!isset($product['StoreProduct']['tagline'])):?>hidden<?php endif;?>"><?php echo $product['StoreProduct']['tagline'];?></div>
|
50 |
<div class="product_short_description <?php if(!isset($product['StoreProduct']['tagline'])):?>hidden<?php endif;?>"><?php echo $product['StoreProduct']['tagline'];?></div>
|
| 25 |
<div class="product_prices row">
|
51 |
<div class="product_prices row">
|
| 26 |
<div><span class="rupee"></span><span class="product_price"><?php echo $product['StoreProduct']['available_price'];?></span>
|
52 |
<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):?> +
|
53 |
<?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):?>
|
54 |
<?php if($product['StoreProduct']['cash_back_type'] == 2):?>
|
| 29 |
<span class="cashbackrupee"></span> <span class="cashback"><?php echo $product['StoreProduct']['cash_back'];?></span>
|
55 |
+ <span class="cashbackrupee"></span> <span class="cashback"><?php echo $product['StoreProduct']['cash_back'];?></span> Cashback
|
| 30 |
</div>
|
56 |
</div>
|
| 31 |
<?php else:?>
|
57 |
<?php else:?>
|
| - |
|
58 |
<?php if($product['StoreProduct']['cash_back']>0):?>
|
| 32 |
<?php echo $product['StoreProduct']['cash_back'];?> %
|
59 |
+ <?php echo $product['StoreProduct']['cash_back'];?> % Cashback
|
| - |
|
60 |
<?php endif;?>
|
| 33 |
<?php endif;?> Cashback
|
61 |
<?php endif;?>
|
| 34 |
<?php endif;?>
|
62 |
<?php endif;?>
|
| 35 |
</div>
|
63 |
</div>
|
| 36 |
</div>
|
64 |
</div>
|
| 37 |
<div class="dealoffer <?php if(!isset($product['StoreProduct']['offer']) || empty($product['StoreProduct']['offer'])):?>hidden<?php endif;?> row">
|
65 |
<div class="dealoffer <?php if(!isset($product['StoreProduct']['offer']) || empty($product['StoreProduct']['offer'])):?>hidden<?php endif;?> row">
|
| 38 |
<div class="col-xs-3 offerlabel">
|
66 |
<div class="col-xs-3 offerlabel">
|
| Line 56... |
Line 84... |
| 56 |
<h3>Your Favourite list is empty</h3>
|
84 |
<h3>Your Favourite list is empty</h3>
|
| 57 |
<?php endif;?>
|
85 |
<?php endif;?>
|
| 58 |
<?php if(!empty($mydislikes)):?>
|
86 |
<?php if(!empty($mydislikes)):?>
|
| 59 |
<?php foreach ($mydislikes as $key => $product):?>
|
87 |
<?php foreach ($mydislikes as $key => $product):?>
|
| 60 |
<div class="row card dislike hidden" id="fav-<?php echo $product['UserAction']['id'];?>">
|
88 |
<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'];?>">
|
89 |
<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'];?>">
|
| 62 |
<?php if(!empty($product['StoreProduct']['thumbnail'])):?>
|
90 |
<?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"/>
|
91 |
<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:?>
|
92 |
<?php else:?>
|
| 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'];?>"/>
|
93 |
<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'];?>"/>
|
| 66 |
<?php endif;?>
|
94 |
<?php endif;?>
|
| 67 |
</div>
|
95 |
</div>
|
| 68 |
<div class="col-xs-6 productdetails viewproduct" data-id="<?php echo $product['StoreProduct']['_id'];?>">
|
96 |
<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'];?>">
|
| 69 |
<h5 class="producttitle"><?php echo $product['StoreProduct']['source_product_name'];?></h5>
|
97 |
<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>
|
98 |
<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">
|
99 |
<div class="product_prices row">
|
| 72 |
<div><span class="rupee"></span><span class="product_price"><?php echo $product['StoreProduct']['available_price'];?></span>
|
100 |
<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):?> +
|
101 |
<?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):?>
|
102 |
<?php if($product['StoreProduct']['cash_back_type'] == 2):?>
|
| 75 |
<span class="cashbackrupee"></span> <span class="cashback"><?php echo $product['StoreProduct']['cash_back'];?></span>
|
103 |
+ <span class="cashbackrupee"></span> <span class="cashback"><?php echo $product['StoreProduct']['cash_back'];?></span> Cashback
|
| 76 |
</div>
|
104 |
</div>
|
| 77 |
<?php else:?>
|
105 |
<?php else:?>
|
| - |
|
106 |
<?php if($product['StoreProduct']['cash_back']>0):?>
|
| 78 |
<?php echo $product['StoreProduct']['cash_back'];?> %
|
107 |
+ <?php echo $product['StoreProduct']['cash_back'];?> % Cashback
|
| - |
|
108 |
<?php endif;?>
|
| 79 |
<?php endif;?> Cashback
|
109 |
<?php endif;?>
|
| 80 |
<?php endif;?>
|
110 |
<?php endif;?>
|
| 81 |
</div>
|
111 |
</div>
|
| 82 |
</div>
|
112 |
</div>
|
| 83 |
<div class="dealoffer <?php if(!isset($product['StoreProduct']['offer']) || empty($product['StoreProduct']['offer'])):?>hidden<?php endif;?> row">
|
113 |
<div class="dealoffer <?php if(!isset($product['StoreProduct']['offer']) || empty($product['StoreProduct']['offer'])):?>hidden<?php endif;?> row">
|
| 84 |
<div class="col-xs-3 offerlabel">
|
114 |
<div class="col-xs-3 offerlabel">
|