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