| 13715 |
anikendra |
1 |
<!-- template for deals tab -->
|
| 17963 |
naman |
2 |
|
| 17598 |
naman |
3 |
<script>
|
|
|
4 |
$(document).ready(function(){
|
|
|
5 |
$('.uvideo').click(function(){
|
|
|
6 |
var source= $(this).data('source');
|
|
|
7 |
// alert(source);
|
| 17640 |
naman |
8 |
$('#content-add').empty();
|
| 17598 |
naman |
9 |
var content = "<iframe width='100%' height='100%' src='http://www.youtube.com/embed/"+source+"?autoplay=1'></iframe>"
|
| 17640 |
naman |
10 |
$('#content-add').append(content);
|
| 18023 |
amit.gupta |
11 |
var producttitle = $(this).closest(".productdetails").find(".producttitle").html().trim();
|
|
|
12 |
ga('send', 'event', 'Video Link Clicked', producttitle, me);
|
| 17640 |
naman |
13 |
$('#videoModal').modal('show');
|
| 17598 |
naman |
14 |
});
|
|
|
15 |
|
| 17640 |
naman |
16 |
$('.close').click(function(){
|
|
|
17 |
$('#videoModal').modal('hide');
|
|
|
18 |
$('.text-center').empty();
|
|
|
19 |
});
|
|
|
20 |
|
|
|
21 |
$('#videoModal').click(function(){
|
|
|
22 |
$('#content-add').empty();
|
|
|
23 |
// $('.text-center').append('<img src="/img/ajax-loader.gif"/>');
|
|
|
24 |
});
|
|
|
25 |
|
| 17963 |
naman |
26 |
$('.img-overlay a').click(function(){
|
|
|
27 |
$('#loadingModal').modal('show');
|
|
|
28 |
});
|
|
|
29 |
|
|
|
30 |
$('.objectlink a').click(function(){
|
|
|
31 |
$('#loadingModal').modal('show');
|
|
|
32 |
});
|
|
|
33 |
|
|
|
34 |
|
| 17762 |
naman |
35 |
$('.see_more_link a').click(function(){
|
|
|
36 |
$('#loadingModal').modal('show');
|
|
|
37 |
});
|
| 17818 |
manish.sha |
38 |
setTimeout(function () {$('.carterror').fadeOut('slow');}, 20000);
|
| 17598 |
naman |
39 |
});
|
| 17963 |
naman |
40 |
|
|
|
41 |
|
|
|
42 |
|
| 17598 |
naman |
43 |
</script>
|
|
|
44 |
|
| 17640 |
naman |
45 |
<div class="modal fade" id="videoModal">
|
| 17598 |
naman |
46 |
<div class="modal-dialog">
|
|
|
47 |
<div class="modal-content">
|
|
|
48 |
<div class="modal-body">
|
| 17640 |
naman |
49 |
<div class="text-center" id='content-add'>
|
|
|
50 |
|
| 17598 |
naman |
51 |
</div>
|
|
|
52 |
</div>
|
|
|
53 |
</div><!-- /.modal-content -->
|
|
|
54 |
</div><!-- /.modal-dialog -->
|
|
|
55 |
</div>
|
|
|
56 |
|
| 13682 |
anikendra |
57 |
<?php echo $this->element('unlikemodal');?>
|
| 17598 |
naman |
58 |
|
| 17640 |
naman |
59 |
|
| 17963 |
naman |
60 |
|
| 17804 |
manish.sha |
61 |
<?php if(isset($errorstr) && !empty($errorstr)):?>
|
|
|
62 |
<div class="alert alert-warning carterror">
|
|
|
63 |
<a href="#" class="close" data-dismiss="alert">×</a>
|
|
|
64 |
<?php echo $errorstr;?>
|
|
|
65 |
</div>
|
|
|
66 |
<?php endif;?>
|
| 17640 |
naman |
67 |
|
| 17693 |
naman |
68 |
<?php if($response_count ==1 && empty($deals)):?>
|
|
|
69 |
<div class="text-center">
|
|
|
70 |
<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>
|
|
|
71 |
</div>
|
| 17804 |
manish.sha |
72 |
<br><br><br>
|
| 17693 |
naman |
73 |
<?php else:?>
|
| 17640 |
naman |
74 |
|
| 16098 |
anikendra |
75 |
<?php if(!empty($deals) && !empty($deals[0])):?>
|
|
|
76 |
<?php foreach($deals AS $dealarray):?>
|
|
|
77 |
<div class="row card">
|
| 17963 |
naman |
78 |
<?php //debug($dealarray);?>
|
| 16098 |
anikendra |
79 |
<?php foreach ($dealarray as $key => $deal) :?>
|
| 17640 |
naman |
80 |
<?php //debug($deal);?>
|
|
|
81 |
<?php if(empty($deal))continue;?>
|
|
|
82 |
<?php if (!empty($deal['dealObject'])):?>
|
|
|
83 |
|
|
|
84 |
|
|
|
85 |
<!-- <dealobject part start here> -->
|
|
|
86 |
|
| 17898 |
naman |
87 |
<?php //debug($deal);?>
|
|
|
88 |
<?php if($deal['template_id'] == 1):?>
|
|
|
89 |
<div class="subcard">
|
|
|
90 |
<div class="col-xs-4">
|
|
|
91 |
<?php if($key == 0):?>
|
|
|
92 |
|
|
|
93 |
<div class="img-overlay">
|
|
|
94 |
<!-- <div class="product_actions like">
|
|
|
95 |
<span data-id="<?php //echo $deal['_id'];?>" class="likedeal <?php //if(isset($likedDeals[$deal['_id']])):?>active<?php //endif;?>">
|
|
|
96 |
</span>
|
|
|
97 |
</div> -->
|
| 17963 |
naman |
98 |
|
|
|
99 |
|
|
|
100 |
|
|
|
101 |
<div class="productthumb" data-id="<?php echo $deal['_id'];?>" style="8%">
|
|
|
102 |
<img src="<?php echo $base_url;?>app/webroot/timthumb.php?src=<?php echo urlencode ($deal['img_url']);?>&h=100&q=95" />
|
|
|
103 |
</div>
|
|
|
104 |
|
| 17898 |
naman |
105 |
|
|
|
106 |
<!-- <div class="product_actions dislike">
|
|
|
107 |
<span data-id="<?php //echo $deal['_id'];?>" class="dislikedeal <?php //if(isset($disLikedDeals[$deal['_id']])):?>active<?php //endif;?>">
|
|
|
108 |
</span>
|
|
|
109 |
</div> -->
|
|
|
110 |
</div>
|
|
|
111 |
|
|
|
112 |
|
|
|
113 |
<?php else:?>
|
|
|
114 |
<span class="pull-right arrowright"></span>
|
|
|
115 |
<?php endif;?>
|
|
|
116 |
</div>
|
| 17640 |
naman |
117 |
|
| 17963 |
naman |
118 |
<div class="col-xs-8 objectlink">
|
| 17898 |
naman |
119 |
<?php if(isset($deal['link1']) && !empty($deal['link1'])):?>
|
|
|
120 |
<div class="text-small">
|
|
|
121 |
<?php echo $deal['link1'];?>
|
|
|
122 |
</div>
|
|
|
123 |
<?php endif;?>
|
|
|
124 |
|
|
|
125 |
<?php if(isset($deal['link2']) && !empty($deal['link2'])):?>
|
|
|
126 |
<div class="text-small">
|
|
|
127 |
<?php echo $deal['link2'];?>
|
|
|
128 |
</div>
|
|
|
129 |
<?php endif;?>
|
| 17640 |
naman |
130 |
|
| 17898 |
naman |
131 |
<?php if(isset($deal['link3']) && !empty($deal['link3'])):?>
|
|
|
132 |
<div class="text-small">
|
|
|
133 |
<?php echo $deal['link3'];?>
|
|
|
134 |
</div>
|
|
|
135 |
<?php endif;?>
|
| 17640 |
naman |
136 |
|
| 17898 |
naman |
137 |
<?php if(isset($deal['link4']) && !empty($deal['link4'])):?>
|
|
|
138 |
<div class="text-small">
|
|
|
139 |
<?php echo $deal['link4'];?>
|
|
|
140 |
</div>
|
|
|
141 |
<?php endif;?>
|
|
|
142 |
|
|
|
143 |
<?php if(isset($deal['link5']) && !empty($deal['link5'])):?>
|
|
|
144 |
<div class="text-small">
|
|
|
145 |
<?php echo $deal['link5'];?>
|
|
|
146 |
</div>
|
|
|
147 |
<?php endif;?>
|
|
|
148 |
|
|
|
149 |
</div>
|
| 17640 |
naman |
150 |
</div>
|
|
|
151 |
|
| 17898 |
naman |
152 |
<?php endif;?>
|
|
|
153 |
<!-- <for template id 2 start here> -->
|
|
|
154 |
<?php if($deal['template_id'] == 2):?>
|
|
|
155 |
<div class="subcard">
|
|
|
156 |
<div class="col-xs-12" style="padding:0px;">
|
|
|
157 |
|
|
|
158 |
|
|
|
159 |
<div class="img-overlay" style="padding-bottom:5px;">
|
| 17963 |
naman |
160 |
<a href = "<?php echo $deal['link'];?>"><img src="<?php echo $base_url.$deal['img_url'];?>" width='100%'/></a>
|
| 17898 |
naman |
161 |
<br>
|
|
|
162 |
</div>
|
|
|
163 |
|
|
|
164 |
|
|
|
165 |
|
|
|
166 |
</div>
|
|
|
167 |
|
|
|
168 |
|
| 17640 |
naman |
169 |
</div>
|
|
|
170 |
|
| 17898 |
naman |
171 |
<?php endif;?>
|
|
|
172 |
<!-- <for template id 2 ends here> -->
|
| 17640 |
naman |
173 |
|
|
|
174 |
<!-- <dealObject part end here> -->
|
| 17766 |
manish.sha |
175 |
|
| 17640 |
naman |
176 |
<?php else:?>
|
| 17693 |
naman |
177 |
<?php //debug($deal);?>
|
| 17640 |
naman |
178 |
<div class="subcard">
|
| 17766 |
manish.sha |
179 |
<div class="col-xs-4 productimage">
|
| 16098 |
anikendra |
180 |
<?php if($key == 0):?>
|
| 17766 |
manish.sha |
181 |
<div class="img-overlay">
|
|
|
182 |
<div class="product_actions likeit" data-id="<?php echo $deal['_id'];?>" name="likediv_<?php echo $deal['_id'];?>">
|
|
|
183 |
<span class="likedeal <?php if(isset($likedDeals[$deal['_id']])):?>active<?php endif;?>">
|
|
|
184 |
</span>
|
|
|
185 |
</div>
|
|
|
186 |
<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']);?>">
|
| 17835 |
amit.gupta |
187 |
<img src="<?php echo $base_url;?>app/webroot/timthumb.php?src=<?php echo urlencode($deal['thumbnail']);?>&h=100&q=95" />
|
| 17766 |
manish.sha |
188 |
</div>
|
|
|
189 |
<div class="product_actions dislikeit" data-id="<?php echo $deal['_id'];?>" name="dislikediv_<?php echo $deal['_id'];?>">
|
|
|
190 |
<span class="dislikedeal <?php if(isset($disLikedDeals[$deal['_id']])):?>active<?php endif;?>">
|
|
|
191 |
</span>
|
|
|
192 |
</div>
|
|
|
193 |
</div>
|
| 17640 |
naman |
194 |
|
| 17766 |
manish.sha |
195 |
<?php else:?>
|
|
|
196 |
<span class="pull-right arrowright"></span>
|
|
|
197 |
<?php endif;?>
|
| 17640 |
naman |
198 |
|
| 17766 |
manish.sha |
199 |
</div>
|
| 17177 |
naman |
200 |
|
| 17766 |
manish.sha |
201 |
<div class="col-xs-8 <?php if($key == 0):?>productdetails<?php else:?>productsmalldetails<?php endif;?>" data-id="<?php echo $deal['_id'];?>">
|
|
|
202 |
<?php if($key == 0):?>
|
|
|
203 |
<div class="product_title">
|
|
|
204 |
<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']);?>">
|
|
|
205 |
<?php echo $deal['source_product_name'];?>
|
|
|
206 |
</h5>
|
|
|
207 |
</div>
|
|
|
208 |
|
|
|
209 |
<?php endif;?>
|
| 17963 |
naman |
210 |
<div class="col-xs-6 productpricedetails" style="position:relative;min-height:70px;padding-bottom:20px;">
|
| 17766 |
manish.sha |
211 |
<?php if($key == 0):?>
|
|
|
212 |
<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']);?>">
|
|
|
213 |
<?php //echo $deal['tagline'];?>
|
|
|
214 |
<?php
|
|
|
215 |
$str1=preg_replace('/<\/p>/i', '', $deal['tagline']);
|
|
|
216 |
if($str1 != $deal['tagline']) {
|
|
|
217 |
$str=preg_replace('/<p[^>]*>/i', '', $str1);
|
|
|
218 |
echo $str;
|
|
|
219 |
} else {
|
|
|
220 |
echo $deal['tagline'];
|
|
|
221 |
}
|
|
|
222 |
?>
|
|
|
223 |
</div>
|
|
|
224 |
<?php endif;?>
|
|
|
225 |
<?php if((isset($deal['showMrp']) && ($deal['showMrp']==1) && isset($deal['mrp']) && ($deal['mrp']>0))) :?>
|
|
|
226 |
<div class="text-small">
|
|
|
227 |
|
|
|
228 |
<?php if(isset($deal['showMrp']) && ($deal['showMrp']==1) && isset($deal['mrp']) && ($deal['mrp']>0)):?>
|
|
|
229 |
<?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
|
| 17963 |
naman |
230 |
MRP <span class="cashbackrupee"></span> <?php echo round(($deal['mrp']/$deal['quantity']), 2);?>/- per unit.
|
|
|
231 |
<!-- (Total <span class="cashbackrupee"></span> <?php //echo $deal['mrp']?>) -->
|
| 17766 |
manish.sha |
232 |
<?php else:?>
|
| 18003 |
naman |
233 |
MRP <span class="cashbackrupee"></span><?php echo $deal['mrp'];?>
|
| 17766 |
manish.sha |
234 |
<?php endif;?>
|
|
|
235 |
<?php endif;?>
|
|
|
236 |
|
|
|
237 |
</div>
|
|
|
238 |
<?php endif;?>
|
|
|
239 |
|
|
|
240 |
<?php if(isset($deal['ppq']) && !empty($deal['ppq']) &&($deal['ppq']>0)):?>
|
|
|
241 |
<div class="text-small" );?>
|
|
|
242 |
<span class="rupee"></span><span style="font-size:14px; color:#ff0000"><strong><?php echo $deal['ppq'];?></strong></span> /- per unit.
|
|
|
243 |
</div>
|
|
|
244 |
<?php endif;?>
|
|
|
245 |
|
|
|
246 |
<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;?>>
|
|
|
247 |
<div>
|
|
|
248 |
<?php if($key == 0 && isset($deal['showDp']) && $deal['showDp']==1 && !empty($deal['dp'])):?>
|
|
|
249 |
<div class="dp">DP <span class="cashbackrupee"></span> <?php echo $deal['dp'];?></div>
|
|
|
250 |
<?php endif;?>
|
|
|
251 |
<span class="rupee"></span>
|
|
|
252 |
<?php if(isset($deal['gross_price']) && $deal['gross_price']>$deal['available_price']):?>
|
|
|
253 |
<span class="red pt2"><?php echo intval($deal['gross_price']);?></span>
|
|
|
254 |
<?php else:?>
|
| 17963 |
naman |
255 |
<span class="product_price" data-did="<?php echo $deal['_id']; ?>"><?php echo intval($deal['available_price']);?></span>
|
|
|
256 |
<?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
|
|
|
257 |
|
|
|
258 |
<font style="color:black;size:12px;"><?php echo "for ".$deal['quantity']." pcs.";?></font>
|
|
|
259 |
<?php endif;?>
|
|
|
260 |
|
| 17766 |
manish.sha |
261 |
<?php endif;?>
|
|
|
262 |
<?php if(isset($deal['cash_back_type']) && !empty($deal['cash_back_type']) && $deal['cash_back_type']!=0 && $deal['cash_back']>0):?> +
|
|
|
263 |
<?php if($deal['cash_back_type'] == 2):?>
|
|
|
264 |
<span class="cashbackrupee"></span> <span class="cashback"><?php echo $deal['cash_back'];?></span>
|
|
|
265 |
<?php else:?>
|
|
|
266 |
<?php echo $deal['cash_back'];?> %
|
|
|
267 |
<?php endif;?>
|
|
|
268 |
Cashback
|
|
|
269 |
<?php endif;?>
|
|
|
270 |
</div>
|
|
|
271 |
</div>
|
|
|
272 |
|
|
|
273 |
<?php if(isset($deal['gross_price']) && $deal['gross_price']>$deal['available_price']):?>
|
|
|
274 |
<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']);?>">
|
|
|
275 |
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>
|
|
|
276 |
</div>
|
|
|
277 |
<?php endif;?>
|
|
|
278 |
|
|
|
279 |
<?php if(isset($deal['coupon']) && !empty($deal['coupon'])):?>
|
|
|
280 |
<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']);?>">
|
|
|
281 |
Use Coupon <span class="red"><?php echo $deal['coupon'];?></span>
|
|
|
282 |
</div>
|
|
|
283 |
<?php endif;?>
|
|
|
284 |
|
|
|
285 |
<?php if(isset($deal['codAvailable']) && !$deal['codAvailable']):?>
|
|
|
286 |
<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']);?>">
|
|
|
287 |
(COD not available)
|
|
|
288 |
</div>
|
|
|
289 |
<?php else:?>
|
|
|
290 |
<?php if($key!=0):?>
|
|
|
291 |
<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']);?>">
|
|
|
292 |
(COD available)
|
|
|
293 |
</div>
|
|
|
294 |
<?php endif;?>
|
|
|
295 |
<?php endif;?>
|
|
|
296 |
|
|
|
297 |
<div class="dealoffer <?php if(!isset($deal['offer']) || empty($deal['offer'])):?>hidden<?php endif;?> row">
|
|
|
298 |
<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']);?>">
|
|
|
299 |
<?php //echo $this->Text->truncate($deal['offer'],140);?>
|
|
|
300 |
<?php
|
|
|
301 |
if(strlen($deal['offer'])>0){
|
|
|
302 |
echo $deal['offer'];
|
|
|
303 |
}
|
|
|
304 |
else if($deal['source_id'] == 4){
|
|
|
305 |
echo "Exclusive price @ProfitMandi";
|
|
|
306 |
}
|
|
|
307 |
?>
|
|
|
308 |
</div>
|
|
|
309 |
|
|
|
310 |
</div>
|
|
|
311 |
|
|
|
312 |
<?php if(isset($deal['videoLink']) && !empty($deal['videoLink'])):?>
|
| 17598 |
naman |
313 |
|
| 17766 |
manish.sha |
314 |
<div class="text-small" style = "padding-top:4px;padding-bottom:4px;">
|
|
|
315 |
<button type="button" class="btn btn-default btn-sm uvideo" data-source="<?php echo $deal['videoLink'];?>">
|
|
|
316 |
<span class="glyphicon glyphicon-play-circle"></span> Play Video
|
|
|
317 |
</button>
|
|
|
318 |
</div>
|
|
|
319 |
<?php endif;?>
|
|
|
320 |
|
| 17963 |
naman |
321 |
|
| 17804 |
manish.sha |
322 |
<?php $colors=0;
|
| 17818 |
manish.sha |
323 |
$colorsAvailable = array();
|
| 17804 |
manish.sha |
324 |
if($deal['source_id']==4 && isset($deal['availabilityInfo']) && count($deal['availabilityInfo']) >1){
|
|
|
325 |
foreach ($deal['availabilityInfo'] as $key => $value){
|
|
|
326 |
if($value['color']!=''){
|
|
|
327 |
$colors= $colors+1;
|
| 17818 |
manish.sha |
328 |
if($value['availability']>0){
|
|
|
329 |
array_push($colorsAvailable,$value);
|
|
|
330 |
}
|
| 17804 |
manish.sha |
331 |
}
|
|
|
332 |
}
|
|
|
333 |
}
|
|
|
334 |
?>
|
| 17818 |
manish.sha |
335 |
<?php if($colors>1 && count($colorsAvailable)>1):?>
|
| 17766 |
manish.sha |
336 |
<div class="see_more_colors" data-id="<?php echo $deal['skuBundleId']?>">
|
|
|
337 |
<span class="morecolors"><u>View More Colors</u></span>
|
|
|
338 |
</div>
|
| 17804 |
manish.sha |
339 |
<?php endif;?>
|
| 17963 |
naman |
340 |
|
|
|
341 |
|
|
|
342 |
<?php if(isset($deal['filterLink']) && !empty($deal['filterLink']) && isset($deal['filterText']) && !empty($deal['filterText'])):?>
|
|
|
343 |
<div class='see_more_link' style='position:absolute; bottom: 0px;'>
|
|
|
344 |
<?php if(count($dealarray) >1):?>
|
|
|
345 |
<?php if($key == 1):?>
|
|
|
346 |
<a href = <?php echo $deal['filterLink'];?> style='color:#A8A5A5;'><u><?php echo $deal['filterText'];?></u></a>
|
|
|
347 |
<?php endif;?>
|
|
|
348 |
<?php else:?>
|
|
|
349 |
<a href = <?php echo $deal['filterLink'];?> style='color:#A8A5A5;'><u><?php echo $deal['filterText'];?></u></a>
|
|
|
350 |
<?php endif;?>
|
|
|
351 |
</div>
|
|
|
352 |
|
|
|
353 |
<?php endif;?>
|
| 17766 |
manish.sha |
354 |
|
|
|
355 |
</div>
|
|
|
356 |
|
|
|
357 |
<?php if($deal['source_id']==4):?>
|
| 17906 |
manish.sha |
358 |
<?php if(isset($deal['availabilityInfo']) && count($deal['availabilityInfo'])>0 && $deal['availabilityInfo'][0]['maxQuantity']>0):?>
|
| 17766 |
manish.sha |
359 |
<div class="col-xs-2 cartaddition">
|
| 18007 |
manish.sha |
360 |
<div class="input-group number-spinner">
|
| 17766 |
manish.sha |
361 |
<span class="input-group-btn data-up">
|
| 18007 |
manish.sha |
362 |
<button class="btn btn-default plusqtybutton" 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 |
363 |
</span>
|
| 17950 |
manish.sha |
364 |
<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 |
365 |
<span class="input-group-btn data-dwn">
|
| 18007 |
manish.sha |
366 |
<button class="btn btn-default minusqtybutton" 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 |
367 |
</span>
|
|
|
368 |
</div>
|
|
|
369 |
</div>
|
|
|
370 |
|
| 17804 |
manish.sha |
371 |
<?php endif;?>
|
| 17766 |
manish.sha |
372 |
<?php endif;?>
|
|
|
373 |
</div>
|
|
|
374 |
|
|
|
375 |
|
| 17640 |
naman |
376 |
</div>
|
| 17818 |
manish.sha |
377 |
<?php if($deal['source_id']==4 && isset($deal['availabilityInfo']) && count($colorsAvailable) >1 && $colors>1):?>
|
| 17766 |
manish.sha |
378 |
<div class="morecoloroptions_<?php echo $deal['skuBundleId']?> hidden"
|
|
|
379 |
style="background: #fff;">
|
| 17804 |
manish.sha |
380 |
<div class="col-xs-2"></div>
|
|
|
381 |
<div class="col-xs-10 button-checkbox text-left">
|
| 17818 |
manish.sha |
382 |
<?php for($i=0; $i<count($colorsAvailable); $i=$i+2){
|
|
|
383 |
$value = $colorsAvailable[$i];
|
| 17804 |
manish.sha |
384 |
?>
|
|
|
385 |
<button type="button" class="btn btn-xs choosecolor colorbtn" 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>
|
|
|
386 |
<?php
|
|
|
387 |
$j = $i+1;
|
| 17818 |
manish.sha |
388 |
$value = $colorsAvailable[$j];
|
|
|
389 |
if($j<count($colorsAvailable)){?>
|
| 17804 |
manish.sha |
390 |
<button type="button" class="btn btn-xs choosecolor colorbtn" 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>
|
|
|
391 |
|
|
|
392 |
<?php }?>
|
|
|
393 |
<?php }?>
|
| 17766 |
manish.sha |
394 |
</div>
|
| 17804 |
manish.sha |
395 |
|
| 17766 |
manish.sha |
396 |
</div>
|
| 17804 |
manish.sha |
397 |
<?php endif;?>
|
| 17640 |
naman |
398 |
|
| 17766 |
manish.sha |
399 |
<?php endif;?>
|
| 17640 |
naman |
400 |
|
|
|
401 |
|
|
|
402 |
|
| 16098 |
anikendra |
403 |
<?php endforeach;?>
|
|
|
404 |
</div>
|
| 16368 |
anikendra |
405 |
<?php endforeach;?>
|
| 17640 |
naman |
406 |
|
|
|
407 |
|
| 16368 |
anikendra |
408 |
<?php if(!$noscrolling):?>
|
|
|
409 |
<?php if($this->params->controller=='store_products'):?>
|
|
|
410 |
<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>
|
|
|
411 |
<?php else:?>
|
| 18017 |
naman |
412 |
<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 |
413 |
|
| 18017 |
naman |
414 |
<!-- <p class="text-center"><a class="btn btn-primary infitescroller" href="<?php //echo $nexturl;?>">Load More</a></p> -->
|
| 17696 |
naman |
415 |
|
| 17963 |
naman |
416 |
|
| 16368 |
anikendra |
417 |
<?php endif;?>
|
|
|
418 |
<?php endif;?>
|
| 13719 |
anikendra |
419 |
<?php else:?>
|
| 16368 |
anikendra |
420 |
<?php if($page==1):?>
|
|
|
421 |
<h4>The content you requested couldn't be found</h4>
|
|
|
422 |
<div class="text-center">
|
|
|
423 |
<button type="button" class="btn btn-xs btn-primary refresh">Retry</button>
|
|
|
424 |
</div>
|
|
|
425 |
<?php endif;?>
|
| 17193 |
anikendra |
426 |
<?php endif;?>
|
| 17693 |
naman |
427 |
|
|
|
428 |
|
|
|
429 |
|
|
|
430 |
<?php endif;?>
|