Rev 20095 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<script>$(document).ready(function(){$('.seeproduct').click(function(){$('#loadingModal').modal();var proid = $(this).data("id");var identifier = $(this).data("identifier");var urll = apihost+"categories/saholicdeal/"+proid;$.ajax({method: "GET",url: urll,},'json').done(function(msg){if (typeof(Storage) !== "undefined") {localStorage.removeItem("productdetail");localStorage.setItem("productdetail",msg);document.location = apihost+"categories/dealdetail/"+identifier;}});});});</script><style>.seeproduct{cursor: crosshair !important;}</style><div class="container"><ul class="nav nav-tabs noborder"><li class="col-xs-6 favswitch active" data-type="like"><a href="javascript:void(0);" >Liked Deals</a></li><li class="col-xs-6 favswitch" data-type="dislike"><a href="javascript:void(0);" >Disliked Deals</a></li></ul><?php echo $this->element('unlikemodal');?><?php //debug($mydislikes);?><?php if(!empty($myfavorites)):?><?php foreach ($myfavorites as $key => $product):?><div class="row card like" id="fav-<?php echo $product['UserAction']['id'];?>"><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;?>><?php if(!empty($product['StoreProduct']['thumbnail'])):?><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"/><?php else:?><img src="<?php echo $base_url;?>timthumb.php?src=<?php echo $base_url;?>img/noimage.png&h=80" alt="<?php echo $product['StoreProduct']['title'];?>"/><?php endif;?></div><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'];?>"><h5 class="producttitle"><?php echo $product['StoreProduct']['source_product_name'];?></h5><div class="product_short_description <?php if(!isset($product['StoreProduct']['tagline'])):?>hidden<?php endif;?>"><?php echo $product['StoreProduct']['tagline'];?></div><div class="product_prices row"><div><span class="rupee"></span><span class="product_price"><?php echo $product['StoreProduct']['available_price'];?></span><?php if(isset($product['StoreProduct']['cash_back_type']) && !empty($product['StoreProduct']['cash_back_type']) && $product['StoreProduct']['cash_back_type']!=0):?><?php if($product['StoreProduct']['cash_back_type'] == 2):?>+ <span class="cashbackrupee"></span> <span class="cashback"><?php echo $product['StoreProduct']['cash_back'];?></span> Cashback<!-- </div> --><?php else:?><?php if($product['StoreProduct']['cash_back']>0):?>+ <?php echo $product['StoreProduct']['cash_back'];?> % Cashback<?php endif;?><?php endif;?><?php endif;?></div></div><div class="dealoffer <?php if(!isset($product['StoreProduct']['offer']) || empty($product['StoreProduct']['offer'])):?>hidden<?php endif;?> row"><div class="col-xs-3 offerlabel">OFFER</div><div class="col-xs-9 offertext"><?php echo $product['StoreProduct']['offer'];?></div></div></div><div class="col-xs-2 text-right"><div class="deletefav" data-id="<?php echo $product['UserAction']['id'];?>"></div></div></div><?php endforeach;?><div class="row text-center clearfavs like" data-type="like"><div class="deleteallfavs"></div><div class="clearlist">Clear List</div></div><?php else:?><h3>Your Favourite list is empty</h3><?php endif;?><?php if(!empty($mydislikes)):?><?php foreach ($mydislikes as $key => $product):?><div class="row card dislike hidden" id="fav-<?php echo $product['UserAction']['id'];?>"><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'];?>"><?php if(!empty($product['StoreProduct']['thumbnail'])):?><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"/><?php else:?><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'];?>"/><?php endif;?></div><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'];?>"><h5 class="producttitle"><?php echo $product['StoreProduct']['source_product_name'];?></h5><div class="product_short_description <?php if(!isset($product['StoreProduct']['tagline'])):?>hidden<?php endif;?>"><?php echo $product['StoreProduct']['tagline'];?></div><div class="product_prices row"><div><span class="rupee"></span><span class="product_price"><?php echo $product['StoreProduct']['available_price'];?></span><?php if(isset($product['StoreProduct']['cash_back_type']) && !empty($product['StoreProduct']['cash_back_type']) && $product['StoreProduct']['cash_back_type']!=0):?><?php if($product['StoreProduct']['cash_back_type'] == 2):?>+ <span class="cashbackrupee"></span> <span class="cashback"><?php echo $product['StoreProduct']['cash_back'];?></span> Cashback<!-- </div> --><?php else:?><?php if($product['StoreProduct']['cash_back']>0):?>+ <?php echo $product['StoreProduct']['cash_back'];?> % Cashback<?php endif;?><?php endif;?><?php endif;?></div></div><div class="dealoffer <?php if(!isset($product['StoreProduct']['offer']) || empty($product['StoreProduct']['offer'])):?>hidden<?php endif;?> row"><div class="col-xs-3 offerlabel">OFFER</div><div class="col-xs-9 offertext"><?php echo $product['StoreProduct']['offer'];?></div></div></div><div class="col-xs-2 text-right"><div class="deletefav" data-id="<?php echo $product['UserAction']['id'];?>"></div></div></div><?php endforeach;?><div class="row text-center clearfavs dislike hidden" data-type="dislike"><div class="deleteallfavs"></div><div class="clearlist">Clear List</div></div><?php endif;?></div><script type="text/javascript" src="/js/jquery.jscroll.min.js?v=<?php echo $staticversion;?>"></script><script type="text/javascript" src="/js/bootstrap.min.js"></script><script type="text/javascript" src="/js/profittill.js?v=<?php echo $staticversion;?>"></script>