Rev 18224 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<script type="text/javascript" src="<?php echo $base_url;?>js/iscroll.js"></script><script type="text/javascript" src="<?php echo $base_url;?>js/profittill.js"></script><script type="text/javascript" src="<?php echo $base_url;?>js/checkout.js"></script><script type="text/javascript" src="<?php echo $base_url;?>js/jquery.viewport.mini.js"></script><script>$(document).ready(function(){var topmargin = $(".card").height();var value = " "+topmargin+"px 5px 5px 5px";$('#detailcontent').css("margin",value);});function loaded () {myScroll = new IScroll('#wrapper', { scrollX: true, scrollY: false, mouseWheel: true, click: true, tap: true });}var a;var b;function togglelist(e, id) {var el = document.getElementById(id);if ((a != undefined) && (b != null) && (a != el)) {a.style.display = 'none';b.innerHTML = '+';}if (el.style.display != 'none') {el.style.display = 'none';e.currentTarget.children[1].innerHTML = '+';} else {el.style.display = '';e.currentTarget.children[1].innerHTML = '-';}a = el;b = e.currentTarget.children[1];}</script><style>.pd-tab {background: #e5e6e0;color: #555555;text-transform: capitalize;padding: 7px 5px;font: 1.2em Helvetica, Arial, sans-serif;margin-bottom: 2px;width:100%;}.pd-tab span:nth-of-type(1) {float: left;margin-top: 3px;}.pd-tab span:nth-of-type(2) {float: right;font: 1.2em Helvetica, Arial, sans-serif;}.pd-tab-open {width:90%;margin: 10px;}.pd-tab-open table {border: #f2f3ef solid 1px;width: 99%;border-collapse: collapse;color: #555555;margin-bottom: 10px;}.pd-tab-open table th {background: #f2f3ef;font: 1em Helvetica, Arial, sans-serif;padding: 5px 0 5px 5px;text-align: left;}.pd-tab-open table td {font: 1em Helvetica, Arial, sans-serif;text-align: center;border-bottom: #f2f3ef solid 1px;padding: 5px 3px;}.pd-tab-open table td:nth-of-type(1) {border-right: #f2f3ef solid 1px;text-align: left;width: 25%;}.pd-tab-open table td:nth-of-type(2) {text-align: left;padding-left: 4px;box-sizing: border-box;-webkit-box-sizing: border-box;-moz-box-sizing: border-box;}.pd-tab-open .detail-div {color: #555555;text-align: left;font: 1.2em Helvetica, Arial, sans-serif;}#wrapper {position: absolute;z-index: 1;top: 5px;bottom: 48px;left: 0;width: 100%;height: 130px;overflow: hidden;}#scroller {position: absolute;z-index: 1;-webkit-tap-highlight-color: rgba(0,0,0,0);/*width: 560px;*/-webkit-transform: translateZ(0);-moz-transform: translateZ(0);-ms-transform: translateZ(0);-o-transform: translateZ(0);transform: translateZ(0);-webkit-touch-callout: none;-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;-webkit-text-size-adjust: none;-moz-text-size-adjust: none;-ms-text-size-adjust: none;-o-text-size-adjust: none;text-size-adjust: none;}#scroller ul {list-style: none;padding: 0;margin: 0;width: 100%;text-align: center;}#scroller li {display: block;float: left;width: 140px;border-right: 1px solid #ccc;background-color: #fafafa;font-size: 14px;}.pd-images {padding: 5px 10px;border: #f1f1f1 solid 1}.goback {z-index:10; height: 32px; width: 32px; position: absolute;top:120px;padding:4px;}</style><div class="row card" style="position:fixed;width:100%;z-index:2;top:-5px;"><div class="subcard"><div class="col-xs-4 productimage"><?php if($key == 0):?><div class="img-overlay"><div class="product_actions likeit" data-id="<?php echo $deal['_id'];?>" name="likediv_<?php echo $deal['_id'];?>"><span class="likedeal <?php if(isset($likedDeals[$deal['_id']])):?>active<?php endif;?>"></span></div><div class="productthumb viewproduct" data-url="<?php echo $deal['marketPlaceUrl'];?>" data-id="<?php echo $deal['_id'];?>" data-source="<?php echo $deal['source_id'];?>" data-price="<?php echo intval($deal['available_price']);?>"><img src="<?php echo $base_url;?>app/webroot/timthumb.php?src=<?php echo urlencode($deal['thumbnail']);?>&h=100&q=95" /></div><div class="product_actions dislikeit" data-id="<?php echo $deal['_id'];?>" name="dislikediv_<?php echo $deal['_id'];?>"><span class="dislikedeal <?php if(isset($disLikedDeals[$deal['_id']])):?>active<?php endif;?>"></span></div></div><?php else:?><span class="pull-right arrowright"></span><?php endif;?></div><div class="col-xs-8 <?php if($key == 0):?>productdetails<?php else:?>productsmalldetails<?php endif;?>" data-id="<?php echo $deal['_id'];?>"><?php if($key == 0):?><div class="product_title"><h5 class="producttitle viewproduct" data-id="<?php echo $deal['_id'];?>" data-url="<?php echo $deal['marketPlaceUrl'];?>" data-source="<?php echo $deal['source_id'];?>" data-price="<?php echo intval($deal['available_price']);?>"><?php echo $deal['source_product_name'];?></h5></div><?php endif;?><div class="col-xs-6 productpricedetails" style="position:relative;min-height:70px;padding-bottom:20px;"><?php if($key == 0):?><div class="viewproduct <?php if(strlen(strip_tags($deal['tagline'],'<p>')) == strlen($deal['tagline'])):?>product_short_description<?php endif;?> <?php if(!isset($deal['tagline'])):?>hidden<?php endif;?>" data-id="<?php echo $deal['_id'];?>" data-source="<?php echo $deal['source_id'];?>" data-url="<?php echo $deal['marketPlaceUrl'];?>" data-price="<?php echo intval($deal['available_price']);?>"><?php //echo $deal['tagline'];?><?php$str1=preg_replace('/<\/p>/i', '', $deal['tagline']);if($str1 != $deal['tagline']) {$str=preg_replace('/<p[^>]*>/i', '', $str1);echo $str;} else {echo $deal['tagline'];}?></div><?php endif;?><?php if((isset($deal['showMrp']) && ($deal['showMrp']==1) && isset($deal['mrp']) && ($deal['mrp']>0))) :?><div class="text-small"><?php if(isset($deal['showMrp']) && ($deal['showMrp']==1) && isset($deal['mrp']) && ($deal['mrp']>0)):?><?php if(isset($deal['quantity']) && $deal['quantity']>1):?>MRP <span class="cashbackrupee"></span> <?php echo round(($deal['mrp']/$deal['quantity']), 2);?>/- per unit.<!-- (Total <span class="cashbackrupee"></span> <?php //echo $deal['mrp']?>) --><?php else:?>MRP <span class="cashbackrupee"></span><?php echo $deal['mrp'];?><?php endif;?><?php endif;?></div><?php endif;?><?php if (isset($deal['availabilityInfo'][0]['bulkPricing']) && !empty($deal['availabilityInfo'][0]['bulkPricing'])):?><?php foreach(array_reverse($deal['availabilityInfo'][0]['bulkPricing']) AS $value):?><div class="text-small"><?php if(isset($deal['quantity']) && $deal['quantity']>1):?><span class="rupee"></span><span style="font-size:14px; color:#ff0000"><strong><?php echo ($value['price']/($deal['quantity']*$value['quantity']));?></strong></span> /- per unit for<?php echo $deal['quantity']*$value['quantity'];?> pcs.<?php else:?><span class="rupee"></span><span style="font-size:14px; color:#ff0000"><strong><?php echo $value['price'];?></strong></span> /- per unit for <?php echo $value['quantity'];?> pcs.<?php endif;?></div><?php endforeach;?><?php endif;?><?php if(isset($deal['ppq']) && !empty($deal['ppq']) &&($deal['ppq']>0)):?><div class="text-small"><span class="rupee"></span><span style="font-size:14px; color:#ff0000"><strong><?php echo $deal['ppq'];?></strong></span> /- per unit<?php if(isset($deal['quantity']) && $deal['quantity']>1):?><font style="size:12px;"><?php echo "for ".$deal['quantity']." pcs.";?></font><?php endif;?></div><?php endif;?><div <?php if(!empty($deal['coupon'])):?>style="margin:0 !important"<?php endif;?> class="product_prices viewproduct" data-id="<?php echo $deal['_id'];?>" data-source="<?php echo $deal['source_id'];?>" data-url="<?php echo $deal['marketPlaceUrl'];?>" data-price="<?php echo intval($deal['available_price']);?>" <?php if($key > 0):?>style='margin:0;'<?php endif;?>><div><?php if($key == 0 && isset($deal['showDp']) && $deal['showDp']==1 && !empty($deal['dp'])):?><div class="dp">DP <span class="cashbackrupee"></span> <?php echo $deal['dp'];?></div><?php endif;?><?php if(isset($deal['cash_back_type']) && !empty($deal['cash_back_type']) && $deal['cash_back_type']!=0 && $deal['cash_back']>0):?> +<?php if($deal['cash_back_type'] == 2):?><span class="cashbackrupee"></span> <span class="cashback"><?php echo $deal['cash_back'];?></span><?php else:?><?php echo $deal['cash_back'];?> %<?php endif;?>Cashback<?php endif;?></div></div><?php if(isset($deal['gross_price']) && $deal['gross_price']>$deal['available_price']):?><div class="text-small viewproduct" data-id="<?php echo $deal['_id'];?>" data-source="<?php echo $deal['source_id'];?>" data-url="<?php echo $deal['marketPlaceUrl'];?>" data-price="<?php echo intval($deal['available_price']);?>">Paytm cashback <?php echo ($deal['gross_price']-$deal['available_price']);?><br/> Net Price = <span class='product_price'><span class="rupee"></span> <?php echo $deal['available_price'];?></span></div><?php endif;?><?php if(isset($deal['coupon']) && !empty($deal['coupon'])):?><div class="text-small viewproduct" data-id="<?php echo $deal['_id'];?>" data-source="<?php echo $deal['source_id'];?>" data-url="<?php echo $deal['marketPlaceUrl'];?>" data-price="<?php echo intval($deal['available_price']);?>">Use Coupon <span class="red"><?php echo $deal['coupon'];?></span></div><?php endif;?><?php if(isset($deal['codAvailable']) && !$deal['codAvailable']):?><div class="text-small viewproduct" data-id="<?php echo $deal['_id'];?>" data-source="<?php echo $deal['source_id'];?>" data-url="<?php echo $deal['marketPlaceUrl'];?>" data-price="<?php echo intval($deal['available_price']);?>">(COD not available)</div><?php else:?><?php if($key!=0):?><div class="text-small viewproduct" data-id="<?php echo $deal['_id'];?>" data-source="<?php echo $deal['source_id'];?>" data-url="<?php echo $deal['marketPlaceUrl'];?>" data-price="<?php echo intval($deal['available_price']);?>">(COD available)</div><?php endif;?><?php endif;?><div class="dealoffer <?php if(!isset($deal['offer']) || empty($deal['offer'])):?>hidden<?php endif;?> row"><div class="<?php if(strlen(strip_tags($deal['offer'],'<p>')) == strlen($deal['offer'])):?>offerhasnohtml<?php endif;?> offertext" data-fulltext="<?php echo strip_tags($deal['offer']);?>"><?php //echo $this->Text->truncate($deal['offer'],140);?><?phpif(strlen($deal['offer'])>0){echo $deal['offer'];}else if($deal['source_id'] == 4){echo "Exclusive price @ProfitMandi";}?></div></div><?php if(isset($deal['videoLink']) && !empty($deal['videoLink'])):?><div class="text-small" style = "padding-top:4px;padding-bottom:4px;"><button type="button" class="btn btn-default btn-sm uvideo" data-source="<?php echo $deal['videoLink'];?>"><span class="glyphicon glyphicon-play-circle"></span> Play Video</button></div><?php endif;?><?php $colors=0;$colorsAvailable = array();if($deal['source_id']==4 && isset($deal['availabilityInfo']) && count($deal['availabilityInfo']) >1){foreach ($deal['availabilityInfo'] as $key => $value){if($value['color']!=''){$colors= $colors+1;if($value['availability']>0){array_push($colorsAvailable,$value);}}}}?><?php if($colors>1 && count($colorsAvailable)>1):?><div class="see_more_colors" data-id="<?php echo $deal['skuBundleId']?>"><span class="morecolors"><u>View More Colors</u></span></div><?php endif;?><?php if(isset($deal['filterLink']) && !empty($deal['filterLink']) && isset($deal['filterText']) && !empty($deal['filterText'])):?><div class='see_more_link' style='position:absolute; bottom: 0px;'><?php if(count($dealarray) >1):?><?php if($key == 1):?><a href = <?php echo $deal['filterLink'];?> style='color:#A8A5A5;'><u><?php echo $deal['filterText'];?></u></a><?php endif;?><?php else:?><a href = <?php echo $deal['filterLink'];?> style='color:#A8A5A5;'><u><?php echo $deal['filterText'];?></u></a><?php endif;?></div><?php endif;?></div><?php if($deal['source_id']==4):?><?php if(isset($deal['availabilityInfo']) && count($deal['availabilityInfo'])>0 && $deal['availabilityInfo'][0]['maxQuantity']>0):?><div class="col-xs-2 cartaddition"><div class="input-group number-spinner"><span class="input-group-btn data-up"><button class="btn btn-default plusqtybutton" data-minquantity="<?php echo $deal['availabilityInfo'][0]['minBuyQuantity'];?>" <?php printf('data-bulkpricing = "%s"',htmlspecialchars(json_encode($deal['availabilityInfo'][0]['bulkPricing']), ENT_QUOTES, 'UTF-8'));?> data-quantitystep="<?php echo $deal['availabilityInfo'][0]['quantityStep'];?>" data-id="<?php echo $deal['availabilityInfo'][0]['item_id'];?>" data-price="<?php echo intval($deal['availabilityInfo'][0]['sellingPrice']);?>" data-did="<?php echo $deal['_id'];?>" data-dir="up" data-name="<?php echo $deal['source_product_name'];?>" data-brand="<?php echo $deal['brand'];?>" data-identifier="<?php echo $deal['identifier']; ?>"><span class="glyphicon glyphicon-plus plusqty"></span></button></span><input type="text" class="itemquantity" value="0" min="0" max="<?php echo $deal['availabilityInfo'][0]['maxQuantity'];?>" data-did="<?php echo $deal['_id'];?>" autocomplete="off" readonly><span class="input-group-btn data-dwn"><button class="btn btn-default minusqtybutton" data-minquantity="<?php echo $deal['availabilityInfo'][0]['minBuyQuantity'];?>" <?php printf('data-bulkpricing = "%s"',htmlspecialchars(json_encode($deal['availabilityInfo'][0]['bulkPricing']), ENT_QUOTES, 'UTF-8'));?> data-quantitystep="<?php echo $deal['availabilityInfo'][0]['quantityStep'];?>" data-id="<?php echo $deal['availabilityInfo'][0]['item_id'];?>" data-price="<?php echo intval($deal['availabilityInfo'][0]['sellingPrice']);?>" data-did="<?php echo $deal['_id'];?>" data-dir="dwn" data-name="<?php echo $deal['source_product_name'];?>" data-brand="<?php echo $deal['brand'];?>" data-identifier="<?php echo $deal['identifier']; ?>"><span class="glyphicon glyphicon-minus minusqty"></span></button></span></div></div><?php endif;?><?php endif;?></div></div></div><div id = "detailcontent" style="background:white;position:relative;"><div id="wrapper" style="background:white;"><div id="scroller" style='width: <?php echo count($dealinfo['entity']['images'])*140;?>px;'><ul><?php foreach($dealinfo['entity']['images'] as $image){?><?php //echo $image['url'];?><li class='pd-images'><img src="<?php echo $image['url'];?>" height="120px" width="120px"></li><?php } ?></ul></div></div><div style="position:absolute;top:135px;background:white;width:100%;"><?php if(isset($dealinfo['entity']['keySpecs']) && !empty($dealinfo['entity']['keySpecs'])):?><div class="pd-tab clearfix" ><span>Highlights</span></div><div class="pd-tab-open" id="tab1"><div class="detail-div"><?php foreach($dealinfo['entity']['keySpecs'] as $value):?><?php echo "<div>".$value."</div>";?><?php endforeach;?></div></div><?php endif;?><?php if(isset($dealinfo['entity']['packageContents']) && !empty($dealinfo['entity']['packageContents'])):?><div class="pd-tab clearfix" ><span>Package Contents</span></div><div class="pd-tab-open" id="tab1"><div class="detail-div"><?php foreach($dealinfo['entity']['packageContents'] as $value):?><?php echo "<div>".$value."</div>";?><?php endforeach;?></div></div><?php endif;?><?php if(isset($dealinfo['entity']['detailedSpecs']) && !empty($dealinfo['entity']['detailedSpecs'])):?><div class="pd-tab clearfix" onclick="togglelist(event,'tab2')"><span>Detailed Specifications</span><span>+</span></div><div class="pd-tab-open" id="tab2" style="width:96%;display:none"><div class="detail-div"><?php foreach($dealinfo['entity']['detailedSpecs'] as $key=> $value):?><table><tr><th colspan="2"><?php echo $value['title']; ?></th></tr><?php foreach ($value['specs'] as $item) {?><tr><td><?php echo $item['name'];?></td><td><?php echo implode('',$item['values']);?></td></tr><?php }?></table><?php endforeach;?></div></div><?php endif;?></div></div><?php echo $this->element('footer');?>