Rev 18146 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<!-- Template for category tab with slider --><script>$(document).ready(function(){setTimeout(function () {$('.carterror').fadeOut('slow');}, 20000);});</script><?php if(isset($errorstr) && !empty($errorstr)):?><div class="alert alert-warning carterror"><a href="#" class="close" data-dismiss="alert">×</a><?php echo $errorstr;?></div><?php endif;?><?php echo $this->element('unlikemodal');?><?php if(!empty($deals)):?><?php foreach($deals AS $categoryId => $catdeals):?><div class="subheader row"><div class="col-xs-6"><h4><?php echo $categories[$categoryId];?></h4></div><div class="col-xs-6 text-right"><a href="/category/<?php echo $categoryId;?>"><h5>See All ></h5></a></div></div><div class="scrollable"><ul class="list-unstyled list-inline swipable row"><?php foreach ($catdeals as $key => $deal):?><li class="list"><div class="product_image img img-responsive"><img src="<?php echo $base_url;?>app/webroot/timthumb.php?h=120&src=<?php echo $deal[0]['StoreProduct']['thumbnail'];?>" class="viewproduct productthumb" data-id="<?php echo $deal[0]['StoreProduct']['id'];?>"><ul class="product_actions list-unstyled"><li data-id="<?php echo $deal[0]['StoreProduct']['id'];?>" class="likedeal <?php if(isset($likedDeals[$deal[0]['StoreProduct']['id']])):?>active<?php endif;?>"></li><li data-id="<?php echo $deal[0]['StoreProduct']['id'];?>" class="dislikedeal <?php if(isset($disLikedDeals[$deal[0]['StoreProduct']['id']])):?>active<?php endif;?>"></li></ul></div><div class="clearfix"></div><h5 class="viewproduct producttitle" data-id="<?php echo $deal[0]['StoreProduct']['id'];?>" ><?php echo $this->Text->truncate($deal[0]['StoreProduct']['title'],140,array('ellipsis' => '...','exact' => false));?></h5><p class="product_short_description <?php if(!isset($deal[0]['StoreProduct']['tagline'])):?>noshow<?php endif;?>"><?php echo $deal[0]['StoreProduct']['tagline'];?></p><p class="product_prices"><span class="rupee"></span><span class="product_price"><?php echo $deal[0]['StoreProduct']['available_price'];?></span><?php if(isset($deal[0]['StoreProduct']['cashback']) && !empty($deal[0]['StoreProduct']['cashback'])):?><span class="product_cashback"><label>Cashback</label><span class="rupee"></span> <?php echo $deal[0]['StoreProduct']['cashback'];?></span></span><?php endif;?></p><div class="dealoffer <?php if(!isset($deal[0]['StoreProduct']['offer']) || empty($deal[0]['StoreProduct']['offer'])):?>noshow<?php endif;?>"><div class="row"><div class="col-xs-3 offerlabel">OFFER</div><div class="col-xs-9 offertext"><?php echo $deal[0]['StoreProduct']['offer'];?></div></div></div></li><?php endforeach;?></ul></div><?php endforeach;?><?php endif;?><script type="text/javascript" src="/js/jquery.jscroll.min.js"></script><script type="text/javascript" src="/js/profittill.js?v=<?php echo $staticversion;?>"></script>