| 13715 |
anikendra |
1 |
<!-- template for deals tab -->
|
| 18524 |
naman |
2 |
<script type="text/javascript">
|
| 18660 |
naman |
3 |
$(document).on('click','.morebulkprice',function(e){
|
|
|
4 |
e.stopPropagation();
|
|
|
5 |
if($(this).find('.glyphicon').hasClass('glyphicon-chevron-down'))
|
| 18524 |
naman |
6 |
{
|
|
|
7 |
$(this).parent().parent().parent().find('.bulkpricingclass').removeClass('hidden');
|
| 18660 |
naman |
8 |
$(this).find('.glyphicon').removeClass('glyphicon-chevron-down');
|
|
|
9 |
$(this).find('.glyphicon').addClass('glyphicon-chevron-up');
|
| 18524 |
naman |
10 |
}
|
|
|
11 |
else
|
|
|
12 |
{
|
|
|
13 |
$(this).parent().parent().parent().find('.bulkpricingclass').addClass('hidden');
|
| 18660 |
naman |
14 |
$(this).find('.glyphicon').removeClass('glyphicon-chevron-up');
|
|
|
15 |
$(this).find('.glyphicon').addClass('glyphicon-chevron-down');
|
| 18524 |
naman |
16 |
}
|
|
|
17 |
});
|
| 17598 |
naman |
18 |
$(document).ready(function(){
|
| 18731 |
naman |
19 |
|
|
|
20 |
|
|
|
21 |
var tot_count = 0;
|
|
|
22 |
var id = setInterval(frame, 5000);
|
|
|
23 |
function frame() {
|
|
|
24 |
if (tot_count == 3) {
|
|
|
25 |
clearInterval(id);
|
|
|
26 |
} else {
|
|
|
27 |
tot_count++;
|
|
|
28 |
setTimeout(function(){
|
|
|
29 |
$('.see_more_link a').css({'background-color':'#FAF56B'});
|
|
|
30 |
setTimeout(function(){$('.see_more_link a').css({'background-color':''})}, 1500);
|
|
|
31 |
},1000);
|
|
|
32 |
}
|
|
|
33 |
}
|
|
|
34 |
|
|
|
35 |
|
|
|
36 |
|
| 17598 |
naman |
37 |
$('.uvideo').click(function(){
|
| 18370 |
naman |
38 |
window.history.pushState('forward', null, './forward');
|
| 17598 |
naman |
39 |
var source= $(this).data('source');
|
|
|
40 |
// alert(source);
|
| 17640 |
naman |
41 |
$('#content-add').empty();
|
| 17598 |
naman |
42 |
var content = "<iframe width='100%' height='100%' src='http://www.youtube.com/embed/"+source+"?autoplay=1'></iframe>"
|
| 17640 |
naman |
43 |
$('#content-add').append(content);
|
| 18023 |
amit.gupta |
44 |
var producttitle = $(this).closest(".productdetails").find(".producttitle").html().trim();
|
|
|
45 |
ga('send', 'event', 'Video Link Clicked', producttitle, me);
|
| 17640 |
naman |
46 |
$('#videoModal').modal('show');
|
| 17598 |
naman |
47 |
});
|
|
|
48 |
|
| 18370 |
naman |
49 |
if (window.history && window.history.pushState) {
|
|
|
50 |
|
|
|
51 |
$(window).on('popstate', function() {
|
|
|
52 |
$('#videoModal').modal('hide');
|
|
|
53 |
$('.text-center').empty();
|
|
|
54 |
});
|
|
|
55 |
|
|
|
56 |
}
|
|
|
57 |
|
| 17640 |
naman |
58 |
$('.close').click(function(){
|
|
|
59 |
$('#videoModal').modal('hide');
|
|
|
60 |
$('.text-center').empty();
|
|
|
61 |
});
|
|
|
62 |
|
|
|
63 |
$('#videoModal').click(function(){
|
|
|
64 |
$('#content-add').empty();
|
| 18370 |
naman |
65 |
window.history.back();
|
| 17640 |
naman |
66 |
// $('.text-center').append('<img src="/img/ajax-loader.gif"/>');
|
|
|
67 |
});
|
|
|
68 |
|
| 17963 |
naman |
69 |
$('.img-overlay a').click(function(){
|
|
|
70 |
$('#loadingModal').modal('show');
|
|
|
71 |
});
|
|
|
72 |
|
|
|
73 |
$('.objectlink a').click(function(){
|
|
|
74 |
$('#loadingModal').modal('show');
|
|
|
75 |
});
|
|
|
76 |
|
|
|
77 |
|
| 17762 |
naman |
78 |
$('.see_more_link a').click(function(){
|
| 18067 |
naman |
79 |
setCookie('brandschosen', '', -1, true);
|
|
|
80 |
setCookie('subcategorieschosen','',-1, true);
|
|
|
81 |
$('#loadingModal').modal('show');
|
| 17762 |
naman |
82 |
});
|
| 17818 |
manish.sha |
83 |
setTimeout(function () {$('.carterror').fadeOut('slow');}, 20000);
|
| 17598 |
naman |
84 |
});
|
| 17963 |
naman |
85 |
|
|
|
86 |
|
|
|
87 |
|
| 17598 |
naman |
88 |
</script>
|
|
|
89 |
|
| 17640 |
naman |
90 |
<div class="modal fade" id="videoModal">
|
| 17598 |
naman |
91 |
<div class="modal-dialog">
|
|
|
92 |
<div class="modal-content">
|
|
|
93 |
<div class="modal-body">
|
| 17640 |
naman |
94 |
<div class="text-center" id='content-add'>
|
|
|
95 |
|
| 17598 |
naman |
96 |
</div>
|
|
|
97 |
</div>
|
|
|
98 |
</div><!-- /.modal-content -->
|
|
|
99 |
</div><!-- /.modal-dialog -->
|
|
|
100 |
</div>
|
|
|
101 |
|
| 13682 |
anikendra |
102 |
<?php echo $this->element('unlikemodal');?>
|
| 17598 |
naman |
103 |
|
| 17640 |
naman |
104 |
|
| 17963 |
naman |
105 |
|
| 17804 |
manish.sha |
106 |
<?php if(isset($errorstr) && !empty($errorstr)):?>
|
|
|
107 |
<div class="alert alert-warning carterror">
|
|
|
108 |
<a href="#" class="close" data-dismiss="alert">×</a>
|
|
|
109 |
<?php echo $errorstr;?>
|
|
|
110 |
</div>
|
|
|
111 |
<?php endif;?>
|
| 17640 |
naman |
112 |
|
| 17693 |
naman |
113 |
<?php if($response_count ==1 && empty($deals)):?>
|
|
|
114 |
<div class="text-center">
|
|
|
115 |
<span class="nodeals" data-href="<?php echo $base_url;?>search/?user_id=<?php echo $logged_user['id'];?>">Didn't find your deal? Search for it</span>
|
|
|
116 |
</div>
|
| 17804 |
manish.sha |
117 |
<br><br><br>
|
| 17693 |
naman |
118 |
<?php else:?>
|
| 17640 |
naman |
119 |
|
| 16098 |
anikendra |
120 |
<?php if(!empty($deals) && !empty($deals[0])):?>
|
|
|
121 |
<?php foreach($deals AS $dealarray):?>
|
|
|
122 |
<div class="row card">
|
| 17963 |
naman |
123 |
<?php //debug($dealarray);?>
|
| 16098 |
anikendra |
124 |
<?php foreach ($dealarray as $key => $deal) :?>
|
| 18731 |
naman |
125 |
<?php debug($deal);?>
|
| 17640 |
naman |
126 |
<?php if(empty($deal))continue;?>
|
|
|
127 |
<?php if (!empty($deal['dealObject'])):?>
|
|
|
128 |
|
|
|
129 |
|
|
|
130 |
<!-- <dealobject part start here> -->
|
|
|
131 |
|
| 17898 |
naman |
132 |
<?php //debug($deal);?>
|
|
|
133 |
<?php if($deal['template_id'] == 1):?>
|
|
|
134 |
<div class="subcard">
|
|
|
135 |
<div class="col-xs-4">
|
|
|
136 |
<?php if($key == 0):?>
|
|
|
137 |
|
|
|
138 |
<div class="img-overlay">
|
|
|
139 |
<!-- <div class="product_actions like">
|
|
|
140 |
<span data-id="<?php //echo $deal['_id'];?>" class="likedeal <?php //if(isset($likedDeals[$deal['_id']])):?>active<?php //endif;?>">
|
|
|
141 |
</span>
|
|
|
142 |
</div> -->
|
| 17963 |
naman |
143 |
|
|
|
144 |
|
|
|
145 |
|
|
|
146 |
<div class="productthumb" data-id="<?php echo $deal['_id'];?>" style="8%">
|
|
|
147 |
<img src="<?php echo $base_url;?>app/webroot/timthumb.php?src=<?php echo urlencode ($deal['img_url']);?>&h=100&q=95" />
|
|
|
148 |
</div>
|
|
|
149 |
|
| 17898 |
naman |
150 |
|
|
|
151 |
<!-- <div class="product_actions dislike">
|
|
|
152 |
<span data-id="<?php //echo $deal['_id'];?>" class="dislikedeal <?php //if(isset($disLikedDeals[$deal['_id']])):?>active<?php //endif;?>">
|
|
|
153 |
</span>
|
|
|
154 |
</div> -->
|
|
|
155 |
</div>
|
|
|
156 |
|
|
|
157 |
|
|
|
158 |
<?php else:?>
|
|
|
159 |
<span class="pull-right arrowright"></span>
|
|
|
160 |
<?php endif;?>
|
|
|
161 |
</div>
|
| 17640 |
naman |
162 |
|
| 17963 |
naman |
163 |
<div class="col-xs-8 objectlink">
|
| 17898 |
naman |
164 |
<?php if(isset($deal['link1']) && !empty($deal['link1'])):?>
|
|
|
165 |
<div class="text-small">
|
|
|
166 |
<?php echo $deal['link1'];?>
|
|
|
167 |
</div>
|
|
|
168 |
<?php endif;?>
|
|
|
169 |
|
|
|
170 |
<?php if(isset($deal['link2']) && !empty($deal['link2'])):?>
|
|
|
171 |
<div class="text-small">
|
|
|
172 |
<?php echo $deal['link2'];?>
|
|
|
173 |
</div>
|
|
|
174 |
<?php endif;?>
|
| 17640 |
naman |
175 |
|
| 17898 |
naman |
176 |
<?php if(isset($deal['link3']) && !empty($deal['link3'])):?>
|
|
|
177 |
<div class="text-small">
|
|
|
178 |
<?php echo $deal['link3'];?>
|
|
|
179 |
</div>
|
|
|
180 |
<?php endif;?>
|
| 17640 |
naman |
181 |
|
| 17898 |
naman |
182 |
<?php if(isset($deal['link4']) && !empty($deal['link4'])):?>
|
|
|
183 |
<div class="text-small">
|
|
|
184 |
<?php echo $deal['link4'];?>
|
|
|
185 |
</div>
|
|
|
186 |
<?php endif;?>
|
|
|
187 |
|
|
|
188 |
<?php if(isset($deal['link5']) && !empty($deal['link5'])):?>
|
|
|
189 |
<div class="text-small">
|
|
|
190 |
<?php echo $deal['link5'];?>
|
|
|
191 |
</div>
|
|
|
192 |
<?php endif;?>
|
|
|
193 |
|
|
|
194 |
</div>
|
| 17640 |
naman |
195 |
</div>
|
|
|
196 |
|
| 17898 |
naman |
197 |
<?php endif;?>
|
|
|
198 |
<!-- <for template id 2 start here> -->
|
|
|
199 |
<?php if($deal['template_id'] == 2):?>
|
|
|
200 |
<div class="subcard">
|
|
|
201 |
<div class="col-xs-12" style="padding:0px;">
|
|
|
202 |
|
|
|
203 |
|
|
|
204 |
<div class="img-overlay" style="padding-bottom:5px;">
|
| 17963 |
naman |
205 |
<a href = "<?php echo $deal['link'];?>"><img src="<?php echo $base_url.$deal['img_url'];?>" width='100%'/></a>
|
| 17898 |
naman |
206 |
<br>
|
|
|
207 |
</div>
|
|
|
208 |
|
|
|
209 |
|
|
|
210 |
|
|
|
211 |
</div>
|
|
|
212 |
|
|
|
213 |
|
| 17640 |
naman |
214 |
</div>
|
|
|
215 |
|
| 17898 |
naman |
216 |
<?php endif;?>
|
|
|
217 |
<!-- <for template id 2 ends here> -->
|
| 17640 |
naman |
218 |
|
|
|
219 |
<!-- <dealObject part end here> -->
|
| 17766 |
manish.sha |
220 |
|
| 17640 |
naman |
221 |
<?php else:?>
|
| 17693 |
naman |
222 |
<?php //debug($deal);?>
|
| 17640 |
naman |
223 |
<div class="subcard">
|
| 17766 |
manish.sha |
224 |
<div class="col-xs-4 productimage">
|
| 16098 |
anikendra |
225 |
<?php if($key == 0):?>
|
| 17766 |
manish.sha |
226 |
<div class="img-overlay">
|
|
|
227 |
<div class="product_actions likeit" data-id="<?php echo $deal['_id'];?>" name="likediv_<?php echo $deal['_id'];?>">
|
|
|
228 |
<span class="likedeal <?php if(isset($likedDeals[$deal['_id']])):?>active<?php endif;?>">
|
|
|
229 |
</span>
|
|
|
230 |
</div>
|
| 18227 |
naman |
231 |
<div class="productthumb <?php if($deal['source_id'] == 4):?>accsproduct<?php else:?>viewproduct<?php endif;?>" data-url="<?php if($deal['source_id'] == 4):?><?php echo $base_url."categories/dealdetail/".$deal['identifier'];?><?php else:?><?php echo $deal['marketPlaceUrl'];?><?php endif;?>" data-id="<?php echo $deal['_id'];?>" data-source="<?php echo $deal['source_id'];?>" data-price="<?php echo intval($deal['available_price']);?>">
|
| 17835 |
amit.gupta |
232 |
<img src="<?php echo $base_url;?>app/webroot/timthumb.php?src=<?php echo urlencode($deal['thumbnail']);?>&h=100&q=95" />
|
| 17766 |
manish.sha |
233 |
</div>
|
|
|
234 |
<div class="product_actions dislikeit" data-id="<?php echo $deal['_id'];?>" name="dislikediv_<?php echo $deal['_id'];?>">
|
|
|
235 |
<span class="dislikedeal <?php if(isset($disLikedDeals[$deal['_id']])):?>active<?php endif;?>">
|
|
|
236 |
</span>
|
|
|
237 |
</div>
|
|
|
238 |
</div>
|
| 17640 |
naman |
239 |
|
| 17766 |
manish.sha |
240 |
<?php else:?>
|
|
|
241 |
<span class="pull-right arrowright"></span>
|
|
|
242 |
<?php endif;?>
|
| 17640 |
naman |
243 |
|
| 17766 |
manish.sha |
244 |
</div>
|
| 17177 |
naman |
245 |
|
| 17766 |
manish.sha |
246 |
<div class="col-xs-8 <?php if($key == 0):?>productdetails<?php else:?>productsmalldetails<?php endif;?>" data-id="<?php echo $deal['_id'];?>">
|
|
|
247 |
<?php if($key == 0):?>
|
|
|
248 |
<div class="product_title">
|
| 18227 |
naman |
249 |
<h5 class="producttitle <?php if($deal['source_id'] == 4):?>accsproduct<?php else:?>viewproduct<?php endif;?>" data-id="<?php echo $deal['_id'];?>" data-url="<?php if($deal['source_id'] == 4):?><?php echo $base_url."categories/dealdetail/".$deal['identifier'];?><?php else:?><?php echo $deal['marketPlaceUrl'];?><?php endif;?>" data-source="<?php echo $deal['source_id'];?>" data-price="<?php echo intval($deal['available_price']);?>">
|
| 17766 |
manish.sha |
250 |
<?php echo $deal['source_product_name'];?>
|
|
|
251 |
</h5>
|
|
|
252 |
</div>
|
|
|
253 |
|
|
|
254 |
<?php endif;?>
|
| 17963 |
naman |
255 |
<div class="col-xs-6 productpricedetails" style="position:relative;min-height:70px;padding-bottom:20px;">
|
| 17766 |
manish.sha |
256 |
<?php if($key == 0):?>
|
| 18227 |
naman |
257 |
<div class="<?php if($deal['source_id'] == 4):?>accsproduct<?php else:?>viewproduct<?php endif;?> <?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 if($deal['source_id'] == 4):?><?php echo $base_url."categories/dealdetail/".$deal['identifier'];?><?php else:?><?php echo $deal['marketPlaceUrl'];?><?php endif;?>" data-price="<?php echo intval($deal['available_price']);?>">
|
| 17766 |
manish.sha |
258 |
<?php //echo $deal['tagline'];?>
|
|
|
259 |
<?php
|
|
|
260 |
$str1=preg_replace('/<\/p>/i', '', $deal['tagline']);
|
|
|
261 |
if($str1 != $deal['tagline']) {
|
|
|
262 |
$str=preg_replace('/<p[^>]*>/i', '', $str1);
|
|
|
263 |
echo $str;
|
|
|
264 |
} else {
|
|
|
265 |
echo $deal['tagline'];
|
|
|
266 |
}
|
|
|
267 |
?>
|
|
|
268 |
</div>
|
|
|
269 |
<?php endif;?>
|
|
|
270 |
<?php if((isset($deal['showMrp']) && ($deal['showMrp']==1) && isset($deal['mrp']) && ($deal['mrp']>0))) :?>
|
|
|
271 |
<div class="text-small">
|
|
|
272 |
|
|
|
273 |
<?php if(isset($deal['showMrp']) && ($deal['showMrp']==1) && isset($deal['mrp']) && ($deal['mrp']>0)):?>
|
|
|
274 |
<?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
|
| 18436 |
naman |
275 |
MRP <span class="cashbackrupee"></span> <?php echo round(($deal['mrp']/$deal['quantity']), 2);?> per unit
|
| 17963 |
naman |
276 |
<!-- (Total <span class="cashbackrupee"></span> <?php //echo $deal['mrp']?>) -->
|
| 17766 |
manish.sha |
277 |
<?php else:?>
|
| 18003 |
naman |
278 |
MRP <span class="cashbackrupee"></span><?php echo $deal['mrp'];?>
|
| 17766 |
manish.sha |
279 |
<?php endif;?>
|
|
|
280 |
<?php endif;?>
|
|
|
281 |
|
|
|
282 |
</div>
|
|
|
283 |
<?php endif;?>
|
| 18436 |
naman |
284 |
|
| 18562 |
naman |
285 |
<?php if($key == 0 && isset($deal['showDp']) && $deal['showDp']==1 && !empty($deal['dp'])):?>
|
|
|
286 |
<div class="dp <?php if($deal['source_id'] == 4):?>accsproduct<?php else:?>viewproduct<?php endif;?>" data-id="<?php echo $deal['_id'];?>" data-source="<?php echo $deal['source_id'];?>" data-url="<?php if($deal['source_id'] == 4):?><?php echo $base_url."categories/dealdetail/".$deal['identifier'];?><?php else:?><?php echo $deal['marketPlaceUrl'];?><?php endif;?>" data-price="<?php echo intval($deal['available_price']);?>" style="margin-top:2px;">DP <span class="cashbackrupee"></span> <?php echo $deal['dp'];?></div>
|
|
|
287 |
<?php endif;?>
|
| 18660 |
naman |
288 |
|
| 18694 |
naman |
289 |
<?php if($deal['source_id'] == 4):?>
|
|
|
290 |
<?php foreach($deal['availabilityInfo'] as $infokey => $infoval):?>
|
| 18660 |
naman |
291 |
<?php if (isset($infoval['bulkPricing']) && !empty($infoval['bulkPricing'])):?>
|
| 18711 |
naman |
292 |
<div class="accsproduct priceshow <?php echo "priceshow".$infoval['item_id']."ps".$infokey;?> <?php if($infokey > 0):?>hidden<?php endif;?>" data-url="<?php if($deal['source_id'] == 4):?><?php echo $base_url."categories/dealdetail/".$deal['identifier'];?><?php endif;?>" data-id="<?php echo $deal['_id'];?>" data-source="<?php echo $deal['source_id'];?>" data-price="<?php echo intval($deal['available_price']);?>">
|
| 18660 |
naman |
293 |
<?php foreach(array_reverse($infoval['bulkPricing']) AS $bulkkey => $value):?>
|
| 18524 |
naman |
294 |
|
| 18660 |
naman |
295 |
<div class="<?php echo "select".$infoval['item_id']."a".$value['quantity'];?> text-small<?php if($bulkkey >1 && $bulkkey <= intval(sizeof($infoval['bulkPricing']))-2 && intval(sizeof($infoval['bulkPricing'])) !=3):?> bulkpricingclass hidden<?php endif;?>" data-url="<?php if($deal['source_id'] == 4):?><?php echo $base_url."categories/dealdetail/".$deal['identifier'];?><?php endif;?>">
|
|
|
296 |
|
|
|
297 |
<?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
|
|
|
298 |
<span class="rupee" style="margin-top: 3px !important;"></span> <span style="font-size:13px; color:#ff0000"><strong><?php echo round(($value['price']/($deal['quantity'])),2);?></strong></span> per unit for
|
|
|
299 |
<?php
|
| 18665 |
naman |
300 |
echo $value['quantity']."+ Pack (".$deal['quantity']*$value['quantity'];
|
| 18660 |
naman |
301 |
if($value['quantity'] == 1){
|
|
|
302 |
echo "pc)";
|
|
|
303 |
}
|
|
|
304 |
else{
|
|
|
305 |
echo "pcs)";
|
|
|
306 |
}
|
|
|
307 |
?>
|
|
|
308 |
<?php else:?>
|
| 18676 |
naman |
309 |
<span class="rupee" style="margin-top: 3px !important;"></span> <span style="font-size:13px; color:#ff0000"><strong><?php echo $value['price'];?></strong></span> per unit for <?php echo $value['quantity']."+";?>
|
| 18660 |
naman |
310 |
<?php
|
|
|
311 |
if($value['quantity'] == 1){
|
|
|
312 |
echo "pc";
|
|
|
313 |
}
|
|
|
314 |
else{
|
|
|
315 |
echo "pcs";
|
|
|
316 |
}
|
|
|
317 |
?>
|
|
|
318 |
<?php endif;?>
|
|
|
319 |
|
|
|
320 |
<?php if($bulkkey ==1 && intval(sizeof($infoval['bulkPricing'])) >3):?>
|
|
|
321 |
<button type="button" class="btn btn-default btn-xs morebulkprice"><span class="glyphicon glyphicon-chevron-down"></span></button>
|
| 18524 |
naman |
322 |
<?php endif;?>
|
|
|
323 |
</div>
|
|
|
324 |
|
|
|
325 |
|
| 18436 |
naman |
326 |
<?php endforeach;?>
|
|
|
327 |
</div>
|
| 18582 |
naman |
328 |
<?php else:?>
|
|
|
329 |
<?php if(isset($deal['ppq']) && !empty($deal['ppq']) &&($deal['ppq']>0)):?>
|
| 18711 |
naman |
330 |
<div class="priceshow <?php echo "priceshow".$infoval['item_id']."ps".$infokey;?> <?php if($infokey > 0):?>hidden<?php endif;?> text-small<?php if($deal['source_id'] == 4):?> accsproduct<?php endif;?>" data-url="<?php if($deal['source_id'] == 4):?><?php echo $base_url."categories/dealdetail/".$deal['identifier'];?><?php endif;?>" data-id="<?php echo $deal['_id'];?>" data-source="<?php echo $deal['source_id'];?>" data-price="<?php echo intval($deal['available_price']);?>">
|
| 18570 |
naman |
331 |
<span class="rupee" style="margin-top: 3px !important;"></span> <span style="font-size:13px; color:#ff0000"><strong><?php echo $deal['ppq'];?></strong></span> /- per unit
|
|
|
332 |
|
| 17766 |
manish.sha |
333 |
</div>
|
|
|
334 |
<?php endif;?>
|
|
|
335 |
|
| 18552 |
naman |
336 |
|
| 18582 |
naman |
337 |
<?php if(isset($deal['quantity']) && $deal['quantity']>1 ):?>
|
| 18711 |
naman |
338 |
<div class="priceshow <?php echo "priceshow".$infoval['item_id']."ps".$infokey;?> <?php if($infokey > 0):?>hidden<?php endif;?> text-small<?php if($deal['source_id'] == 4):?> accsproduct<?php endif;?>" data-url="<?php if($deal['source_id'] == 4):?><?php echo $base_url."categories/dealdetail/".$deal['identifier'];?><?php endif;?>" data-id="<?php echo $deal['_id'];?>" data-source="<?php echo $deal['source_id'];?>" data-price="<?php echo intval($deal['available_price']);?>">
|
| 18563 |
naman |
339 |
<span class="rupee" style="margin-top: 3px !important;"></span> <span style="font-size:13px; color:#ff0000"><strong><?php echo ($deal['ppq']*$deal['quantity']);?></strong></span>
|
| 18552 |
naman |
340 |
<?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
|
|
|
341 |
|
|
|
342 |
<font style="color:black;size:12px;"><?php echo "for ".$deal['quantity']." pcs";?></font>
|
|
|
343 |
<?php endif;?>
|
|
|
344 |
</div>
|
|
|
345 |
<?php endif;?>
|
| 18582 |
naman |
346 |
|
|
|
347 |
<?php endif;?>
|
|
|
348 |
|
| 18660 |
naman |
349 |
<?php endforeach;?>
|
| 18694 |
naman |
350 |
<?php endif;?>
|
| 18552 |
naman |
351 |
|
| 18227 |
naman |
352 |
<div <?php if(!empty($deal['coupon'])):?>style="margin:0 !important"<?php endif;?> class="product_prices <?php if($deal['source_id'] == 4):?>accsproduct<?php else:?>viewproduct<?php endif;?>" data-id="<?php echo $deal['_id'];?>" data-source="<?php echo $deal['source_id'];?>" data-url="<?php if($deal['source_id'] == 4):?><?php echo $base_url."categories/dealdetail/".$deal['identifier'];?><?php else:?><?php echo $deal['marketPlaceUrl'];?><?php endif;?>" data-price="<?php echo intval($deal['available_price']);?>" <?php if($key > 0):?>style='margin:0;'<?php endif;?>>
|
| 18660 |
naman |
353 |
|
| 18694 |
naman |
354 |
<?php if( $deal['source_id'] == 4 && isset($deal['availabilityInfo']) && sizeof($deal['availabilityInfo'])>1):?>
|
| 18665 |
naman |
355 |
<?php foreach($deal['availabilityInfo'] as $infokeyy => $infovall):?>
|
|
|
356 |
<div class="priceshow <?php echo "priceshow".$infovall['item_id']."ps".$infokeyy;?> <?php if($infokeyy > 0):?>hidden<?php endif;?>"style="margin-top:0px;">
|
| 18660 |
naman |
357 |
<?php if(!isset($infovall['bulkPricing']) || empty($infovall['bulkPricing'])):?>
|
|
|
358 |
<?php if(isset($deal['gross_price']) && $deal['gross_price']>$deal['available_price']):?>
|
|
|
359 |
<?php if(isset($deal['quantity']) && $deal['quantity']<2):?>
|
|
|
360 |
<span class="rupee"></span> <span class="red pt2"><?php echo intval($deal['gross_price']);?></span>
|
|
|
361 |
<?php endif;?>
|
|
|
362 |
<?php else:?>
|
|
|
363 |
<?php if(isset($deal['quantity']) && $deal['quantity']<2):?>
|
|
|
364 |
<span class="rupee"></span> <span class="product_price" data-did="<?php echo $deal['_id']; ?>"><?php echo intval($deal['available_price']);?></span>
|
|
|
365 |
|
|
|
366 |
<?php endif;?>
|
|
|
367 |
<?php endif;?>
|
| 18524 |
naman |
368 |
<?php endif;?>
|
| 18660 |
naman |
369 |
|
|
|
370 |
|
|
|
371 |
|
|
|
372 |
<?php if(isset($deal['cash_back_type']) && !empty($deal['cash_back_type']) && $deal['cash_back_type']!=0 && $deal['cash_back']>0):?> +
|
|
|
373 |
<?php if($deal['cash_back_type'] == 2):?>
|
|
|
374 |
<span class="cashbackrupee"></span> <span class="cashback"><?php echo $deal['cash_back'];?></span>
|
|
|
375 |
<?php else:?>
|
|
|
376 |
<?php echo $deal['cash_back'];?> %
|
|
|
377 |
<?php endif;?>
|
|
|
378 |
Cashback
|
|
|
379 |
<?php endif;?>
|
|
|
380 |
</div>
|
|
|
381 |
|
|
|
382 |
<?php endforeach;?>
|
|
|
383 |
<?php else:?>
|
|
|
384 |
<?php if(!isset($deal['availabilityInfo'][0]['bulkPricing']) || empty($deal['availabilityInfo'][0]['bulkPricing'])):?>
|
|
|
385 |
<div class="" style="margin-top:0px;">
|
|
|
386 |
|
|
|
387 |
<?php if(isset($deal['gross_price']) && $deal['gross_price']>$deal['available_price']):?>
|
|
|
388 |
<?php if(isset($deal['quantity']) && $deal['quantity']<2):?>
|
|
|
389 |
<span class="rupee"></span> <span class="red pt2"><?php echo intval($deal['gross_price']);?></span>
|
|
|
390 |
<?php endif;?>
|
|
|
391 |
<?php else:?>
|
|
|
392 |
<?php if(isset($deal['quantity']) && $deal['quantity']<2):?>
|
|
|
393 |
<span class="rupee"></span> <span class="product_price" data-did="<?php echo $deal['_id']; ?>"><?php echo intval($deal['available_price']);?></span>
|
|
|
394 |
|
|
|
395 |
<?php endif;?>
|
|
|
396 |
<?php endif;?>
|
|
|
397 |
|
|
|
398 |
|
|
|
399 |
|
|
|
400 |
|
|
|
401 |
<?php if(isset($deal['cash_back_type']) && !empty($deal['cash_back_type']) && $deal['cash_back_type']!=0 && $deal['cash_back']>0):?> +
|
|
|
402 |
<?php if($deal['cash_back_type'] == 2):?>
|
|
|
403 |
<span class="cashbackrupee"></span> <span class="cashback"><?php echo $deal['cash_back'];?></span>
|
|
|
404 |
<?php else:?>
|
|
|
405 |
<?php echo $deal['cash_back'];?> %
|
|
|
406 |
<?php endif;?>
|
|
|
407 |
Cashback
|
|
|
408 |
<?php endif;?>
|
|
|
409 |
</div>
|
|
|
410 |
<?php endif;?>
|
|
|
411 |
<?php endif;?>
|
| 17766 |
manish.sha |
412 |
</div>
|
|
|
413 |
|
|
|
414 |
<?php if(isset($deal['gross_price']) && $deal['gross_price']>$deal['available_price']):?>
|
| 18227 |
naman |
415 |
<div class="text-small <?php if($deal['source_id'] == 4):?>accsproduct<?php else:?>viewproduct<?php endif;?>" data-id="<?php echo $deal['_id'];?>" data-source="<?php echo $deal['source_id'];?>" data-url="<?php if($deal['source_id'] == 4):?><?php echo $base_url."categories/dealdetail/".$deal['identifier'];?><?php else:?><?php echo $deal['marketPlaceUrl'];?><?php endif;?>" data-price="<?php echo intval($deal['available_price']);?>">
|
| 17766 |
manish.sha |
416 |
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>
|
|
|
417 |
</div>
|
|
|
418 |
<?php endif;?>
|
|
|
419 |
|
|
|
420 |
<?php if(isset($deal['coupon']) && !empty($deal['coupon'])):?>
|
| 18227 |
naman |
421 |
<div class="text-small <?php if($deal['source_id'] == 4):?>accsproduct<?php else:?>viewproduct<?php endif;?>" data-id="<?php echo $deal['_id'];?>" data-source="<?php echo $deal['source_id'];?>" data-url="<?php if($deal['source_id'] == 4):?><?php echo $base_url."categories/dealdetail/".$deal['identifier'];?><?php else:?><?php echo $deal['marketPlaceUrl'];?><?php endif;?>" data-price="<?php echo intval($deal['available_price']);?>">
|
| 17766 |
manish.sha |
422 |
Use Coupon <span class="red"><?php echo $deal['coupon'];?></span>
|
|
|
423 |
</div>
|
|
|
424 |
<?php endif;?>
|
|
|
425 |
|
|
|
426 |
<?php if(isset($deal['codAvailable']) && !$deal['codAvailable']):?>
|
| 18542 |
naman |
427 |
|
| 18227 |
naman |
428 |
<div class="text-small <?php if($deal['source_id'] == 4):?>accsproduct<?php else:?>viewproduct<?php endif;?>" data-id="<?php echo $deal['_id'];?>" data-source="<?php echo $deal['source_id'];?>" data-url="<?php if($deal['source_id'] == 4):?><?php echo $base_url."categories/dealdetail/".$deal['identifier'];?><?php else:?><?php echo $deal['marketPlaceUrl'];?><?php endif;?>" data-price="<?php echo intval($deal['available_price']);?>">
|
| 17766 |
manish.sha |
429 |
(COD not available)
|
|
|
430 |
</div>
|
|
|
431 |
<?php else:?>
|
|
|
432 |
<?php if($key!=0):?>
|
| 18227 |
naman |
433 |
<div class="text-small <?php if($deal['source_id'] == 4):?>accsproduct<?php else:?>viewproduct<?php endif;?>" data-id="<?php echo $deal['_id'];?>" data-source="<?php echo $deal['source_id'];?>" data-url="<?php if($deal['source_id'] == 4):?><?php echo $base_url."categories/dealdetail/".$deal['identifier'];?><?php else:?><?php echo $deal['marketPlaceUrl'];?><?php endif;?>" data-price="<?php echo intval($deal['available_price']);?>">
|
| 17766 |
manish.sha |
434 |
(COD available)
|
|
|
435 |
</div>
|
|
|
436 |
<?php endif;?>
|
|
|
437 |
<?php endif;?>
|
|
|
438 |
|
|
|
439 |
<div class="dealoffer <?php if(!isset($deal['offer']) || empty($deal['offer'])):?>hidden<?php endif;?> row">
|
|
|
440 |
<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']);?>">
|
|
|
441 |
<?php //echo $this->Text->truncate($deal['offer'],140);?>
|
|
|
442 |
<?php
|
|
|
443 |
if(strlen($deal['offer'])>0){
|
|
|
444 |
echo $deal['offer'];
|
|
|
445 |
}
|
|
|
446 |
else if($deal['source_id'] == 4){
|
|
|
447 |
echo "Exclusive price @ProfitMandi";
|
|
|
448 |
}
|
|
|
449 |
?>
|
|
|
450 |
</div>
|
|
|
451 |
|
|
|
452 |
</div>
|
| 18436 |
naman |
453 |
|
| 17766 |
manish.sha |
454 |
<?php if(isset($deal['videoLink']) && !empty($deal['videoLink'])):?>
|
| 17598 |
naman |
455 |
|
| 17766 |
manish.sha |
456 |
<div class="text-small" style = "padding-top:4px;padding-bottom:4px;">
|
|
|
457 |
<button type="button" class="btn btn-default btn-sm uvideo" data-source="<?php echo $deal['videoLink'];?>">
|
|
|
458 |
<span class="glyphicon glyphicon-play-circle"></span> Play Video
|
|
|
459 |
</button>
|
|
|
460 |
</div>
|
|
|
461 |
<?php endif;?>
|
|
|
462 |
|
| 17963 |
naman |
463 |
|
| 17804 |
manish.sha |
464 |
<?php $colors=0;
|
| 17818 |
manish.sha |
465 |
$colorsAvailable = array();
|
| 17804 |
manish.sha |
466 |
if($deal['source_id']==4 && isset($deal['availabilityInfo']) && count($deal['availabilityInfo']) >1){
|
|
|
467 |
foreach ($deal['availabilityInfo'] as $key => $value){
|
|
|
468 |
if($value['color']!=''){
|
|
|
469 |
$colors= $colors+1;
|
| 17818 |
manish.sha |
470 |
if($value['availability']>0){
|
|
|
471 |
array_push($colorsAvailable,$value);
|
|
|
472 |
}
|
| 17804 |
manish.sha |
473 |
}
|
|
|
474 |
}
|
|
|
475 |
}
|
|
|
476 |
?>
|
| 17818 |
manish.sha |
477 |
<?php if($colors>1 && count($colorsAvailable)>1):?>
|
| 17766 |
manish.sha |
478 |
<div class="see_more_colors" data-id="<?php echo $deal['skuBundleId']?>">
|
|
|
479 |
<span class="morecolors"><u>View More Colors</u></span>
|
|
|
480 |
</div>
|
| 17804 |
manish.sha |
481 |
<?php endif;?>
|
| 17963 |
naman |
482 |
|
|
|
483 |
|
| 18731 |
naman |
484 |
<?php //if(isset($deal['filterLink']) && !empty($deal['filterLink']) && isset($deal['filterText']) && !empty($deal['filterText'])):?>
|
|
|
485 |
<?php if((isset($deal['filterLinkBrand']) && !empty($deal['filterLinkBrand'])) || (isset($deal['filterLinkSubCategory']) && !empty($deal['filterLinkSubCategory']))):?>
|
|
|
486 |
|
|
|
487 |
|
|
|
488 |
|
|
|
489 |
<div class='see_more_link' style='position:absolute; bottom: 0px;'>More
|
| 17963 |
naman |
490 |
<?php if(count($dealarray) >1):?>
|
| 18731 |
naman |
491 |
<?php if($key == 1):?>
|
|
|
492 |
<?php if(isset($deal['filterLinkBrand']) && !empty($deal['filterLinkBrand'])):?>
|
|
|
493 |
<a href = <?php echo $deal['filterLinkBrand'];?> style='color:#A8A5A5;'><u><?php echo $deal['filterTextBrand'];?></u></a>
|
|
|
494 |
<?php endif;?>
|
|
|
495 |
<?php if(isset($deal['filterLinkSubCategory']) && !empty($deal['filterLinkSubCategory'])):?>
|
|
|
496 |
<a href = <?php echo $deal['filterLinkSubCategory'];?> style='color:#A8A5A5;'><u><?php echo $deal['filterTextSubCategory'];?></u></a>
|
|
|
497 |
<?php endif;?>
|
|
|
498 |
<?php endif;?>
|
|
|
499 |
<?php else:?>
|
|
|
500 |
<?php if(isset($deal['filterLinkBrand']) && !empty($deal['filterLinkBrand'])):?>
|
|
|
501 |
<a href = <?php echo $deal['filterLinkBrand'];?> style='color:#A8A5A5;'><u><?php echo $deal['filterTextBrand'];?></u></a>
|
|
|
502 |
<?php endif;?>
|
|
|
503 |
<?php if(isset($deal['filterLinkSubCategory']) && !empty($deal['filterLinkSubCategory'])):?>
|
|
|
504 |
<a href = <?php echo $deal['filterLinkSubCategory'];?> style='color:#A8A5A5;'><u><?php echo $deal['filterTextSubCategory'];?></u></a>
|
|
|
505 |
<?php endif;?>
|
|
|
506 |
<?php endif;?>
|
| 17963 |
naman |
507 |
</div>
|
|
|
508 |
|
| 18731 |
naman |
509 |
<?php endif;?>
|
| 17766 |
manish.sha |
510 |
|
|
|
511 |
</div>
|
|
|
512 |
|
|
|
513 |
<?php if($deal['source_id']==4):?>
|
| 17906 |
manish.sha |
514 |
<?php if(isset($deal['availabilityInfo']) && count($deal['availabilityInfo'])>0 && $deal['availabilityInfo'][0]['maxQuantity']>0):?>
|
| 17766 |
manish.sha |
515 |
<div class="col-xs-2 cartaddition">
|
| 18007 |
manish.sha |
516 |
<div class="input-group number-spinner">
|
| 17766 |
manish.sha |
517 |
<span class="input-group-btn data-up">
|
| 18660 |
naman |
518 |
<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>
|
| 17766 |
manish.sha |
519 |
</span>
|
| 17950 |
manish.sha |
520 |
<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>
|
| 17766 |
manish.sha |
521 |
<span class="input-group-btn data-dwn">
|
| 18436 |
naman |
522 |
<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>
|
| 17766 |
manish.sha |
523 |
</span>
|
|
|
524 |
</div>
|
|
|
525 |
</div>
|
|
|
526 |
|
| 17804 |
manish.sha |
527 |
<?php endif;?>
|
| 17766 |
manish.sha |
528 |
<?php endif;?>
|
|
|
529 |
</div>
|
|
|
530 |
|
|
|
531 |
|
| 17640 |
naman |
532 |
</div>
|
| 17818 |
manish.sha |
533 |
<?php if($deal['source_id']==4 && isset($deal['availabilityInfo']) && count($colorsAvailable) >1 && $colors>1):?>
|
| 17766 |
manish.sha |
534 |
<div class="morecoloroptions_<?php echo $deal['skuBundleId']?> hidden"
|
|
|
535 |
style="background: #fff;">
|
| 17804 |
manish.sha |
536 |
<div class="col-xs-2"></div>
|
|
|
537 |
<div class="col-xs-10 button-checkbox text-left">
|
| 17818 |
manish.sha |
538 |
<?php for($i=0; $i<count($colorsAvailable); $i=$i+2){
|
|
|
539 |
$value = $colorsAvailable[$i];
|
| 17804 |
manish.sha |
540 |
?>
|
| 18660 |
naman |
541 |
<button type="button" data-setsetect="<?php echo "priceshow".$value['item_id']."ps".$i;?>" class="btn btn-xs choosecolor colorbtn" data-minquantity="<?php echo $value['minBuyQuantity'];?>" <?php printf('data-bulkpricing = "%s"',htmlspecialchars(json_encode($value['bulkPricing']), ENT_QUOTES, 'UTF-8'));?> data-quantitystep="<?php echo $value['quantityStep'];?>" data-id="<?php echo $value['item_id'];?>" data-price="<?php echo $value['sellingPrice'];?>" data-did="<?php echo $deal['_id'];?>" data-color="primary" data-max="<?php echo $value['maxQuantity'];?>"><?php echo strtoupper($value['color']);?></button>
|
| 17804 |
manish.sha |
542 |
<?php
|
|
|
543 |
$j = $i+1;
|
| 17818 |
manish.sha |
544 |
$value = $colorsAvailable[$j];
|
|
|
545 |
if($j<count($colorsAvailable)){?>
|
| 18660 |
naman |
546 |
<button type="button" data-setsetect="<?php echo "priceshow".$value['item_id']."ps".$j;?>" class="btn btn-xs choosecolor colorbtn" data-minquantity="<?php echo $value['minBuyQuantity'];?>" <?php printf('data-bulkpricing = "%s"',htmlspecialchars(json_encode($value['bulkPricing']), ENT_QUOTES, 'UTF-8'));?> data-quantitystep="<?php echo $value['quantityStep'];?>" data-id="<?php echo $value['item_id'];?>" data-price="<?php echo $value['sellingPrice'];?>" data-did="<?php echo $deal['_id'];?>" data-color="primary" data-max="<?php echo $value['maxQuantity'];?>"><?php echo strtoupper($value['color']);?></button><br>
|
| 17804 |
manish.sha |
547 |
|
|
|
548 |
<?php }?>
|
|
|
549 |
<?php }?>
|
| 17766 |
manish.sha |
550 |
</div>
|
| 17804 |
manish.sha |
551 |
|
| 17766 |
manish.sha |
552 |
</div>
|
| 17804 |
manish.sha |
553 |
<?php endif;?>
|
| 17640 |
naman |
554 |
|
| 17766 |
manish.sha |
555 |
<?php endif;?>
|
| 17640 |
naman |
556 |
|
|
|
557 |
|
|
|
558 |
|
| 16098 |
anikendra |
559 |
<?php endforeach;?>
|
|
|
560 |
</div>
|
| 16368 |
anikendra |
561 |
<?php endforeach;?>
|
| 17640 |
naman |
562 |
|
|
|
563 |
|
| 16368 |
anikendra |
564 |
<?php if(!$noscrolling):?>
|
|
|
565 |
<?php if($this->params->controller=='store_products'):?>
|
|
|
566 |
<p class="text-center"><a class="btn btn-primary infitescroller" href="/store_products/getdeals/?page=<?php echo $page+1;?>&sort=<?php echo $sort;?>&direction=<?php echo $direction;?><?php echo $filterstr;?>">Load More</a></p>
|
|
|
567 |
<?php else:?>
|
| 18064 |
naman |
568 |
<!-- <p class="text-center"><a class="btn btn-primary infitescroller" href="/categories/getdeals/<?php //echo $id;?>/?page=<?php //echo ($page+1);?>&sort=<?php //echo $sort;?>&direction=<?php //echo $direction;?><?php //echo $filterstr;?>">Load More</a></p> -->
|
| 17963 |
naman |
569 |
|
| 18064 |
naman |
570 |
<p class="text-center"><a class="btn btn-primary infitescroller" href="<?php echo $nexturl;?>">Load More</a></p>
|
| 17696 |
naman |
571 |
|
| 17963 |
naman |
572 |
|
| 16368 |
anikendra |
573 |
<?php endif;?>
|
|
|
574 |
<?php endif;?>
|
| 13719 |
anikendra |
575 |
<?php else:?>
|
| 16368 |
anikendra |
576 |
<?php if($page==1):?>
|
|
|
577 |
<h4>The content you requested couldn't be found</h4>
|
|
|
578 |
<div class="text-center">
|
|
|
579 |
<button type="button" class="btn btn-xs btn-primary refresh">Retry</button>
|
|
|
580 |
</div>
|
|
|
581 |
<?php endif;?>
|
| 17193 |
anikendra |
582 |
<?php endif;?>
|
| 17693 |
naman |
583 |
|
|
|
584 |
|
|
|
585 |
|
|
|
586 |
<?php endif;?>
|