| Line 271... |
Line 271... |
| 271 |
<div class="" data-url="<?php if($deal['source_id'] == 4):?><?php echo $base_url."categories/dealdetail/".$deal['identifier'];?><?php endif;?>">
|
271 |
<div class="" 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):?>
|
272 |
<?php foreach(array_reverse($deal['availabilityInfo'][0]['bulkPricing']) AS $bulkkey => $value):?>
|
| 273 |
|
273 |
|
| 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;?>">
|
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;?>">
|
| 275 |
<?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
|
275 |
<?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
|
| 276 |
<span class="rupee"></span><span style="font-size:13px; color:#ff0000"><strong><?php echo round(($value['price']/($deal['quantity']*$value['quantity'])),2);?></strong></span> per unit for
|
276 |
<span class="rupee" style="margin-top: 3px !important;"></span> <span style="font-size:13px; color:#ff0000"><strong><?php echo round(($value['price']/($deal['quantity']*$value['quantity'])),2);?></strong></span> per unit for
|
| 277 |
<?php
|
277 |
<?php
|
| 278 |
echo $value['quantity']." Pack (".$deal['quantity']*$value['quantity'];
|
278 |
echo $value['quantity']." Pack (".$deal['quantity']*$value['quantity'];
|
| 279 |
if($value['quantity'] == 1){
|
279 |
if($value['quantity'] == 1){
|
| 280 |
echo "pc)";
|
280 |
echo "pc)";
|
| 281 |
}
|
281 |
}
|
| 282 |
else{
|
282 |
else{
|
| 283 |
echo "pcs)";
|
283 |
echo "pcs)";
|
| 284 |
}
|
284 |
}
|
| 285 |
?>
|
285 |
?>
|
| 286 |
<?php else:?>
|
286 |
<?php else:?>
|
| 287 |
<span class="rupee"></span><span style="font-size:13px; color:#ff0000"><strong><?php echo $value['price'];?></strong></span> per unit for <?php echo $value['quantity'];?>
|
287 |
<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'];?>
|
| 288 |
<?php
|
288 |
<?php
|
| 289 |
if($value['quantity'] == 1){
|
289 |
if($value['quantity'] == 1){
|
| 290 |
echo "pc";
|
290 |
echo "pc";
|
| 291 |
}
|
291 |
}
|
| 292 |
else{
|
292 |
else{
|
| Line 304... |
Line 304... |
| 304 |
</div>
|
304 |
</div>
|
| 305 |
<?php endif;?>
|
305 |
<?php endif;?>
|
| 306 |
|
306 |
|
| 307 |
<?php if(isset($deal['ppq']) && !empty($deal['ppq']) &&($deal['ppq']>0) && isset($deal['availabilityInfo'][0]['bulkPricing']) && empty($deal['availabilityInfo'][0]['bulkPricing'])):?>
|
307 |
<?php if(isset($deal['ppq']) && !empty($deal['ppq']) &&($deal['ppq']>0) && isset($deal['availabilityInfo'][0]['bulkPricing']) && empty($deal['availabilityInfo'][0]['bulkPricing'])):?>
|
| 308 |
<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;?>">
|
308 |
<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;?>">
|
| 309 |
<span class="rupee"></span><span style="font-size:13px; color:#ff0000"><strong><?php echo $deal['ppq'];?></strong></span> per unit
|
309 |
<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
|
| 310 |
<?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
|
310 |
<?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
|
| 311 |
|
311 |
|
| 312 |
<font style="size:12px;"><?php echo "for ".$deal['quantity']." pcs";?></font>
|
312 |
<font style="size:12px;"><?php echo "for ".$deal['quantity']." pcs";?></font>
|
| 313 |
<?php endif;?>
|
313 |
<?php endif;?>
|
| 314 |
</div>
|
314 |
</div>
|
| 315 |
<?php endif;?>
|
315 |
<?php endif;?>
|
| 316 |
|
316 |
|
| 317 |
|
317 |
|
| 318 |
<?php if(isset($deal['quantity']) && $deal['quantity']>1 && isset($deal['availabilityInfo'][0]['bulkPricing']) && sizeof($deal['availabilityInfo'][0]['bulkPricing'])<2):?>
|
318 |
<?php if(isset($deal['quantity']) && $deal['quantity']>1 && isset($deal['availabilityInfo'][0]['bulkPricing']) && sizeof($deal['availabilityInfo'][0]['bulkPricing'])<2):?>
|
| 319 |
<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;?>">
|
319 |
<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 |
<span class="rupee"></span><span style="font-size:13px; color:#ff0000"><strong><?php echo ($deal['ppq']*$deal['quantity']);?></strong></span>
|
320 |
<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 |
<?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
|
321 |
<?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
|
| 322 |
|
322 |
|
| 323 |
<font style="color:black;size:12px;"><?php echo "for ".$deal['quantity']." pcs";?></font>
|
323 |
<font style="color:black;size:12px;"><?php echo "for ".$deal['quantity']." pcs";?></font>
|
| 324 |
<?php endif;?>
|
324 |
<?php endif;?>
|
| 325 |
</div>
|
325 |
</div>
|
| Line 332... |
Line 332... |
| 332 |
|
332 |
|
| 333 |
<?php if(!isset($deal['availabilityInfo'][0]['bulkPricing']) || empty($deal['availabilityInfo'][0]['bulkPricing'])):?>
|
333 |
<?php if(!isset($deal['availabilityInfo'][0]['bulkPricing']) || empty($deal['availabilityInfo'][0]['bulkPricing'])):?>
|
| 334 |
|
334 |
|
| 335 |
<?php if(isset($deal['gross_price']) && $deal['gross_price']>$deal['available_price']):?>
|
335 |
<?php if(isset($deal['gross_price']) && $deal['gross_price']>$deal['available_price']):?>
|
| 336 |
<?php if(isset($deal['quantity']) && $deal['quantity']<2):?>
|
336 |
<?php if(isset($deal['quantity']) && $deal['quantity']<2):?>
|
| 337 |
<span class="rupee"></span><span class="red pt2"><?php echo intval($deal['gross_price']);?></span>
|
337 |
<span class="rupee"></span> <span class="red pt2"><?php echo intval($deal['gross_price']);?></span>
|
| 338 |
<?php endif;?>
|
338 |
<?php endif;?>
|
| 339 |
<?php else:?>
|
339 |
<?php else:?>
|
| 340 |
<?php if(isset($deal['quantity']) && $deal['quantity']<2):?>
|
340 |
<?php if(isset($deal['quantity']) && $deal['quantity']<2):?>
|
| 341 |
<span class="rupee"></span> <span class="product_price" data-did="<?php echo $deal['_id']; ?>"><?php echo intval($deal['available_price']);?></span>
|
341 |
<span class="rupee"></span> <span class="product_price" data-did="<?php echo $deal['_id']; ?>"><?php echo intval($deal['available_price']);?></span>
|
| 342 |
|
342 |
|