| 13715 |
anikendra |
1 |
<!-- template for deals tab -->
|
| 13682 |
anikendra |
2 |
<?php echo $this->element('unlikemodal');?>
|
| 13567 |
anikendra |
3 |
<?php if(!empty($deals)):?>
|
| 13794 |
anikendra |
4 |
<?php foreach($deals AS $dealjson):?>
|
|
|
5 |
<?php $deal = json_decode($dealjson,true);?>
|
| 13715 |
anikendra |
6 |
<div class="row card">
|
| 13794 |
anikendra |
7 |
<div class="col-xs-4 productthumb viewproduct" data-id="<?php echo $deal['_id'];?>">
|
|
|
8 |
<img src="<?php echo $base_url;?>app/webroot/timthumb.php?src=<?php echo $deal['thumbnail'];?>&h=100" />
|
| 13715 |
anikendra |
9 |
</div>
|
| 13794 |
anikendra |
10 |
<div class="col-xs-6 productdetails viewproduct" data-id="<?php echo $deal['_id'];?>">
|
|
|
11 |
<h5 class="producttitle" ><?php echo $deal['source_product_name'];?></h5>
|
|
|
12 |
<div class="product_short_description <?php if(!isset($deal['tagline'])):?>hidden<?php endif;?>"><?php echo $deal['tagline'];?></div>
|
| 13717 |
anikendra |
13 |
<div class="product_prices">
|
| 13794 |
anikendra |
14 |
<div><span class="rupee"></span><span class="product_price"><?php echo $deal['available_price'];?></span></div>
|
| 13926 |
anikendra |
15 |
<?php if(isset($deal['cashBackAmount']) && !empty($deal['cashBackAmount'])):?><div><span class="cashbacklabel">Cashback</span><span class="cashbackrupee"></span> <span class="cashback"><?php echo $deal['cashBackAmount'];?></span></div><?php endif;?>
|
| 13717 |
anikendra |
16 |
</div>
|
| 13794 |
anikendra |
17 |
<div class="dealoffer <?php if(!isset($deal['offer']) || empty($deal['offer'])):?>hidden<?php endif;?> row">
|
| 13715 |
anikendra |
18 |
<div class="col-xs-3 offerlabel">
|
|
|
19 |
OFFER
|
|
|
20 |
</div>
|
|
|
21 |
<div class="col-xs-9 offertext">
|
| 13808 |
anikendra |
22 |
<?php echo $deal['offer'];?>
|
| 13715 |
anikendra |
23 |
</div>
|
|
|
24 |
</div>
|
|
|
25 |
</div>
|
| 13717 |
anikendra |
26 |
<div class="col-xs-2 pull-right product_actions">
|
| 13719 |
anikendra |
27 |
<ul class="list-unstyled">
|
| 13794 |
anikendra |
28 |
<li data-id="<?php echo $deal['_id'];?>" class="likedeal <?php if(isset($likedDeals[$deal['_id']])):?>active<?php endif;?>">
|
| 13567 |
anikendra |
29 |
</li>
|
| 13794 |
anikendra |
30 |
<li data-id="<?php echo $deal['_id'];?>" class="dislikedeal <?php if(isset($disLikedDeals[$deal['_id']])):?>active<?php endif;?>">
|
| 13567 |
anikendra |
31 |
</li>
|
|
|
32 |
</ul>
|
|
|
33 |
</div>
|
|
|
34 |
</div>
|
|
|
35 |
<?php endforeach;?>
|
| 13719 |
anikendra |
36 |
<?php if($this->params->controller=='store_products'):?>
|
| 13815 |
anikendra |
37 |
<p class="text-center"><a class="btn btn-primary" href="/store_products/getdeals/?page=<?php echo $page+1;?>&sort=<?php echo $sort;?>&direction=<?php echo $direction;?>">Load More</a></p>
|
| 13719 |
anikendra |
38 |
<?php else:?>
|
| 13815 |
anikendra |
39 |
<p class="text-center"><a class="btn btn-primary" href="/categories/getdeals/<?php echo $id;?>/?page=<?php echo ($page+1);?>&sort=<?php echo $sort;?>&direction=<?php echo $direction;?>">Load More</a></p>
|
| 13719 |
anikendra |
40 |
<?php endif;?>
|
|
|
41 |
<?php endif;?>
|