| Line 1... |
Line 1... |
| 1 |
<!-- template for deals tab -->
|
1 |
<!-- template for deals tab -->
|
| 2 |
<script type="text/javascript">
|
2 |
<script type="text/javascript">
|
| 3 |
$(document).on('click','.morebulkprice',function(){
|
3 |
$(document).on('click','.morebulkprice',function(e){
|
| - |
|
4 |
e.stopPropagation();
|
| 4 |
if($(this).hasClass('glyphicon-chevron-down'))
|
5 |
if($(this).find('.glyphicon').hasClass('glyphicon-chevron-down'))
|
| 5 |
{
|
6 |
{
|
| 6 |
$(this).parent().parent().parent().find('.bulkpricingclass').removeClass('hidden');
|
7 |
$(this).parent().parent().parent().find('.bulkpricingclass').removeClass('hidden');
|
| 7 |
$(this).removeClass('glyphicon-chevron-down');
|
8 |
$(this).find('.glyphicon').removeClass('glyphicon-chevron-down');
|
| 8 |
$(this).addClass('glyphicon-chevron-up');
|
9 |
$(this).find('.glyphicon').addClass('glyphicon-chevron-up');
|
| 9 |
}
|
10 |
}
|
| 10 |
else
|
11 |
else
|
| 11 |
{
|
12 |
{
|
| 12 |
$(this).parent().parent().parent().find('.bulkpricingclass').addClass('hidden');
|
13 |
$(this).parent().parent().parent().find('.bulkpricingclass').addClass('hidden');
|
| 13 |
$(this).removeClass('glyphicon-chevron-up');
|
14 |
$(this).find('.glyphicon').removeClass('glyphicon-chevron-up');
|
| 14 |
$(this).addClass('glyphicon-chevron-down');
|
15 |
$(this).find('.glyphicon').addClass('glyphicon-chevron-down');
|
| 15 |
}
|
16 |
}
|
| 16 |
});
|
17 |
});
|
| 17 |
$(document).ready(function(){
|
18 |
$(document).ready(function(){
|
| 18 |
$('.uvideo').click(function(){
|
19 |
$('.uvideo').click(function(){
|
| 19 |
window.history.pushState('forward', null, './forward');
|
20 |
window.history.pushState('forward', null, './forward');
|
| Line 264... |
Line 265... |
| 264 |
<?php endif;?>
|
265 |
<?php endif;?>
|
| 265 |
|
266 |
|
| 266 |
<?php if($key == 0 && isset($deal['showDp']) && $deal['showDp']==1 && !empty($deal['dp'])):?>
|
267 |
<?php if($key == 0 && isset($deal['showDp']) && $deal['showDp']==1 && !empty($deal['dp'])):?>
|
| 267 |
<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>
|
268 |
<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>
|
| 268 |
<?php endif;?>
|
269 |
<?php endif;?>
|
| - |
|
270 |
|
| 269 |
|
271 |
|
| - |
|
272 |
<?php foreach($deal['availabilityInfo'] as $infokey => $infoval):?>
|
| 270 |
<?php if (isset($deal['availabilityInfo'][0]['bulkPricing']) && !empty($deal['availabilityInfo'][0]['bulkPricing'])):?>
|
273 |
<?php if (isset($infoval['bulkPricing']) && !empty($infoval['bulkPricing'])):?>
|
| 271 |
<div class="" data-url="<?php if($deal['source_id'] == 4):?><?php echo $base_url."categories/dealdetail/".$deal['identifier'];?><?php endif;?>">
|
274 |
<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;?>">
|
| 272 |
<?php foreach(array_reverse($deal['availabilityInfo'][0]['bulkPricing']) AS $bulkkey => $value):?>
|
275 |
<?php foreach(array_reverse($infoval['bulkPricing']) AS $bulkkey => $value):?>
|
| 273 |
|
276 |
|
| 274 |
<div class="<?php echo "select".$deal['availabilityInfo'][0]['item_id']."a".$value['quantity'];?> text-small<?php if($bulkkey >1 && $bulkkey <= intval(sizeof($deal['availabilityInfo'][0]['bulkPricing']))-2 && intval(sizeof($deal['availabilityInfo'][0]['bulkPricing'])) !=3):?> bulkpricingclass hidden<?php endif;?>" data-url="<?php if($deal['source_id'] == 4):?><?php echo $base_url."categories/dealdetail/".$deal['identifier'];?><?php endif;?>">
|
277 |
<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;?>">
|
| 275 |
<span class = "accsproduct" data-url="<?php echo $base_url."categories/dealdetail/".$deal['identifier'];?>">
|
278 |
|
| 276 |
<?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
|
279 |
<?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
|
| 277 |
<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
|
280 |
<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
|
| 278 |
<?php
|
281 |
<?php
|
| 279 |
echo $value['quantity']." Pack (".$deal['quantity']*$value['quantity'];
|
282 |
echo $value['quantity']." Pack (".$deal['quantity']*$value['quantity'];
|
| 280 |
if($value['quantity'] == 1){
|
283 |
if($value['quantity'] == 1){
|
| 281 |
echo "pc)";
|
284 |
echo "pc)";
|
| 282 |
}
|
285 |
}
|
| 283 |
else{
|
286 |
else{
|
| 284 |
echo "pcs)";
|
287 |
echo "pcs)";
|
| 285 |
}
|
288 |
}
|
| 286 |
?>
|
289 |
?>
|
| 287 |
<?php else:?>
|
290 |
<?php else:?>
|
| 288 |
<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'];?>
|
291 |
<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'];?>
|
| 289 |
<?php
|
292 |
<?php
|
| 290 |
if($value['quantity'] == 1){
|
293 |
if($value['quantity'] == 1){
|
| 291 |
echo "pc";
|
294 |
echo "pc";
|
| 292 |
}
|
295 |
}
|
| 293 |
else{
|
296 |
else{
|
| 294 |
echo "pcs";
|
297 |
echo "pcs";
|
| 295 |
}
|
298 |
}
|
| 296 |
?>
|
299 |
?>
|
| 297 |
<?php endif;?>
|
300 |
<?php endif;?>
|
| 298 |
</span>
|
301 |
|
| 299 |
<?php if($bulkkey ==1 && intval(sizeof($deal['availabilityInfo'][0]['bulkPricing'])) >3):?>
|
302 |
<?php if($bulkkey ==1 && intval(sizeof($infoval['bulkPricing'])) >3):?>
|
| 300 |
<button type="button" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-chevron-down morebulkprice"></span></button>
|
303 |
<button type="button" class="btn btn-default btn-xs morebulkprice"><span class="glyphicon glyphicon-chevron-down"></span></button>
|
| 301 |
<?php endif;?>
|
304 |
<?php endif;?>
|
| 302 |
</div>
|
305 |
</div>
|
| 303 |
|
306 |
|
| 304 |
|
307 |
|
| 305 |
<?php endforeach;?>
|
308 |
<?php endforeach;?>
|
| 306 |
</div>
|
309 |
</div>
|
| 307 |
<?php else:?>
|
310 |
<?php else:?>
|
| 308 |
<?php if(isset($deal['ppq']) && !empty($deal['ppq']) &&($deal['ppq']>0)):?>
|
311 |
<?php if(isset($deal['ppq']) && !empty($deal['ppq']) &&($deal['ppq']>0)):?>
|
| 309 |
<div class="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;?>">
|
312 |
<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;?>">
|
| 310 |
<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
|
313 |
<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
|
| 311 |
|
314 |
|
| 312 |
</div>
|
315 |
</div>
|
| 313 |
<?php endif;?>
|
316 |
<?php endif;?>
|
| 314 |
|
317 |
|
| 315 |
|
318 |
|
| 316 |
<?php if(isset($deal['quantity']) && $deal['quantity']>1 ):?>
|
319 |
<?php if(isset($deal['quantity']) && $deal['quantity']>1 ):?>
|
| 317 |
<div class="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;?>">
|
320 |
<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;?>">
|
| 318 |
<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>
|
321 |
<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>
|
| 319 |
<?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
|
322 |
<?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
|
| 320 |
|
323 |
|
| 321 |
<font style="color:black;size:12px;"><?php echo "for ".$deal['quantity']." pcs";?></font>
|
324 |
<font style="color:black;size:12px;"><?php echo "for ".$deal['quantity']." pcs";?></font>
|
| 322 |
<?php endif;?>
|
325 |
<?php endif;?>
|
| 323 |
</div>
|
326 |
</div>
|
| 324 |
<?php endif;?>
|
327 |
<?php endif;?>
|
| 325 |
|
328 |
|
| 326 |
<?php endif;?>
|
329 |
<?php endif;?>
|
| 327 |
|
330 |
|
| 328 |
|
331 |
<?php endforeach;?>
|
| 329 |
|
332 |
|
| 330 |
|
333 |
|
| 331 |
<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;?>>
|
334 |
<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;?>>
|
| 332 |
<div style="margin-top:0px;">
|
- |
|
| 333 |
|
335 |
|
| - |
|
336 |
<?php if(isset($deal['availabilityInfo']) && sizeof($deal['availabilityInfo'])>1):?>
|
| - |
|
337 |
<?php foreach($deal['availabilityInfo'] as $infokeyy => $infovall):?>
|
| 334 |
|
338 |
|
| - |
|
339 |
<div class="priceshow <?php echo "priceshow".$infovall['item_id']."ps".$infokeyy;?> <?php if($infokey > 0):?>hidden<?php endif;?>"style="margin-top:0px;">
|
| 335 |
<?php if(!isset($deal['availabilityInfo'][0]['bulkPricing']) || empty($deal['availabilityInfo'][0]['bulkPricing'])):?>
|
340 |
<?php if(!isset($infovall['bulkPricing']) || empty($infovall['bulkPricing'])):?>
|
| 336 |
<?php if(isset($deal['gross_price']) && $deal['gross_price']>$deal['available_price']):?>
|
341 |
<?php if(isset($deal['gross_price']) && $deal['gross_price']>$deal['available_price']):?>
|
| 337 |
<?php if(isset($deal['quantity']) && $deal['quantity']<2):?>
|
342 |
<?php if(isset($deal['quantity']) && $deal['quantity']<2):?>
|
| 338 |
<span class="rupee"></span> <span class="red pt2"><?php echo intval($deal['gross_price']);?></span>
|
343 |
<span class="rupee"></span> <span class="red pt2"><?php echo intval($deal['gross_price']);?></span>
|
| 339 |
<?php endif;?>
|
344 |
<?php endif;?>
|
| 340 |
<?php else:?>
|
345 |
<?php else:?>
|
| 341 |
<?php if(isset($deal['quantity']) && $deal['quantity']<2):?>
|
346 |
<?php if(isset($deal['quantity']) && $deal['quantity']<2):?>
|
| 342 |
<span class="rupee"></span> <span class="product_price" data-did="<?php echo $deal['_id']; ?>"><?php echo intval($deal['available_price']);?></span>
|
347 |
<span class="rupee"></span> <span class="product_price" data-did="<?php echo $deal['_id']; ?>"><?php echo intval($deal['available_price']);?></span>
|
| 343 |
|
348 |
|
| 344 |
<?php endif;?>
|
349 |
<?php endif;?>
|
| - |
|
350 |
<?php endif;?>
|
| 345 |
<?php endif;?>
|
351 |
<?php endif;?>
|
| - |
|
352 |
|
| - |
|
353 |
|
| - |
|
354 |
|
| - |
|
355 |
<?php if(isset($deal['cash_back_type']) && !empty($deal['cash_back_type']) && $deal['cash_back_type']!=0 && $deal['cash_back']>0):?> +
|
| - |
|
356 |
<?php if($deal['cash_back_type'] == 2):?>
|
| - |
|
357 |
<span class="cashbackrupee"></span> <span class="cashback"><?php echo $deal['cash_back'];?></span>
|
| - |
|
358 |
<?php else:?>
|
| - |
|
359 |
<?php echo $deal['cash_back'];?> %
|
| - |
|
360 |
<?php endif;?>
|
| - |
|
361 |
Cashback
|
| 346 |
<?php endif;?>
|
362 |
<?php endif;?>
|
| - |
|
363 |
</div>
|
| - |
|
364 |
|
| - |
|
365 |
<?php endforeach;?>
|
| - |
|
366 |
<?php else:?>
|
| - |
|
367 |
<?php if(!isset($deal['availabilityInfo'][0]['bulkPricing']) || empty($deal['availabilityInfo'][0]['bulkPricing'])):?>
|
| - |
|
368 |
<div class="" style="margin-top:0px;">
|
| - |
|
369 |
|
| - |
|
370 |
<?php if(isset($deal['gross_price']) && $deal['gross_price']>$deal['available_price']):?>
|
| - |
|
371 |
<?php if(isset($deal['quantity']) && $deal['quantity']<2):?>
|
| - |
|
372 |
<span class="rupee"></span> <span class="red pt2"><?php echo intval($deal['gross_price']);?></span>
|
| - |
|
373 |
<?php endif;?>
|
| - |
|
374 |
<?php else:?>
|
| - |
|
375 |
<?php if(isset($deal['quantity']) && $deal['quantity']<2):?>
|
| - |
|
376 |
<span class="rupee"></span> <span class="product_price" data-did="<?php echo $deal['_id']; ?>"><?php echo intval($deal['available_price']);?></span>
|
| - |
|
377 |
|
| - |
|
378 |
<?php endif;?>
|
| - |
|
379 |
<?php endif;?>
|
| - |
|
380 |
|
| - |
|
381 |
|
| 347 |
|
382 |
|
| 348 |
|
383 |
|
| 349 |
<?php if(isset($deal['cash_back_type']) && !empty($deal['cash_back_type']) && $deal['cash_back_type']!=0 && $deal['cash_back']>0):?> +
|
384 |
<?php if(isset($deal['cash_back_type']) && !empty($deal['cash_back_type']) && $deal['cash_back_type']!=0 && $deal['cash_back']>0):?> +
|
| 350 |
<?php if($deal['cash_back_type'] == 2):?>
|
385 |
<?php if($deal['cash_back_type'] == 2):?>
|
| 351 |
<span class="cashbackrupee"></span> <span class="cashback"><?php echo $deal['cash_back'];?></span>
|
386 |
<span class="cashbackrupee"></span> <span class="cashback"><?php echo $deal['cash_back'];?></span>
|
| 352 |
<?php else:?>
|
387 |
<?php else:?>
|
| 353 |
<?php echo $deal['cash_back'];?> %
|
388 |
<?php echo $deal['cash_back'];?> %
|
| 354 |
<?php endif;?>
|
389 |
<?php endif;?>
|
| 355 |
Cashback
|
390 |
Cashback
|
| 356 |
<?php endif;?>
|
391 |
<?php endif;?>
|
| 357 |
</div>
|
392 |
</div>
|
| - |
|
393 |
<?php endif;?>
|
| - |
|
394 |
<?php endif;?>
|
| 358 |
</div>
|
395 |
</div>
|
| 359 |
|
396 |
|
| 360 |
<?php if(isset($deal['gross_price']) && $deal['gross_price']>$deal['available_price']):?>
|
397 |
<?php if(isset($deal['gross_price']) && $deal['gross_price']>$deal['available_price']):?>
|
| 361 |
<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']);?>">
|
398 |
<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']);?>">
|
| 362 |
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>
|
399 |
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>
|
| Line 446... |
Line 483... |
| 446 |
<?php if($deal['source_id']==4):?>
|
483 |
<?php if($deal['source_id']==4):?>
|
| 447 |
<?php if(isset($deal['availabilityInfo']) && count($deal['availabilityInfo'])>0 && $deal['availabilityInfo'][0]['maxQuantity']>0):?>
|
484 |
<?php if(isset($deal['availabilityInfo']) && count($deal['availabilityInfo'])>0 && $deal['availabilityInfo'][0]['maxQuantity']>0):?>
|
| 448 |
<div class="col-xs-2 cartaddition">
|
485 |
<div class="col-xs-2 cartaddition">
|
| 449 |
<div class="input-group number-spinner">
|
486 |
<div class="input-group number-spinner">
|
| 450 |
<span class="input-group-btn data-up">
|
487 |
<span class="input-group-btn data-up">
|
| 451 |
<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>
|
488 |
<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>
|
| 452 |
</span>
|
489 |
</span>
|
| 453 |
<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>
|
490 |
<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>
|
| 454 |
<span class="input-group-btn data-dwn">
|
491 |
<span class="input-group-btn data-dwn">
|
| 455 |
<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>
|
492 |
<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>
|
| 456 |
</span>
|
493 |
</span>
|
| Line 469... |
Line 506... |
| 469 |
<div class="col-xs-2"></div>
|
506 |
<div class="col-xs-2"></div>
|
| 470 |
<div class="col-xs-10 button-checkbox text-left">
|
507 |
<div class="col-xs-10 button-checkbox text-left">
|
| 471 |
<?php for($i=0; $i<count($colorsAvailable); $i=$i+2){
|
508 |
<?php for($i=0; $i<count($colorsAvailable); $i=$i+2){
|
| 472 |
$value = $colorsAvailable[$i];
|
509 |
$value = $colorsAvailable[$i];
|
| 473 |
?>
|
510 |
?>
|
| 474 |
<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>
|
511 |
<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>
|
| 475 |
<?php
|
512 |
<?php
|
| 476 |
$j = $i+1;
|
513 |
$j = $i+1;
|
| 477 |
$value = $colorsAvailable[$j];
|
514 |
$value = $colorsAvailable[$j];
|
| 478 |
if($j<count($colorsAvailable)){?>
|
515 |
if($j<count($colorsAvailable)){?>
|
| 479 |
<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>
|
516 |
<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>
|
| 480 |
|
517 |
|
| 481 |
<?php }?>
|
518 |
<?php }?>
|
| 482 |
<?php }?>
|
519 |
<?php }?>
|
| 483 |
</div>
|
520 |
</div>
|
| 484 |
|
521 |
|