| Line 71... |
Line 71... |
| 71 |
<div class="" data-url="<?php if($deal['source_id'] == 4):?><?php echo $base_url."categories/dealdetail/".$deal['identifier'];?><?php endif;?>">
|
71 |
<div class="" data-url="<?php if($deal['source_id'] == 4):?><?php echo $base_url."categories/dealdetail/".$deal['identifier'];?><?php endif;?>">
|
| 72 |
<?php foreach(array_reverse($deal['availabilityInfo'][0]['bulkPricing']) AS $bulkkey => $value):?>
|
72 |
<?php foreach(array_reverse($deal['availabilityInfo'][0]['bulkPricing']) AS $bulkkey => $value):?>
|
| 73 |
|
73 |
|
| 74 |
<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;?>">
|
74 |
<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;?>">
|
| 75 |
<?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
|
75 |
<?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
|
| 76 |
<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
|
76 |
<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
|
| 77 |
<?php
|
77 |
<?php
|
| 78 |
echo $value['quantity']." Pack (".$deal['quantity']*$value['quantity'];
|
78 |
echo $value['quantity']." Pack (".$deal['quantity']*$value['quantity'];
|
| 79 |
if($value['quantity'] == 1){
|
79 |
if($value['quantity'] == 1){
|
| 80 |
echo "pc)";
|
80 |
echo "pc)";
|
| 81 |
}
|
81 |
}
|
| Line 100... |
Line 100... |
| 100 |
</div>
|
100 |
</div>
|
| 101 |
|
101 |
|
| 102 |
|
102 |
|
| 103 |
<?php endforeach;?>
|
103 |
<?php endforeach;?>
|
| 104 |
</div>
|
104 |
</div>
|
| 105 |
<?php endif;?>
|
- |
|
| 106 |
|
105 |
|
| 107 |
<!-- bulk price ended-->
|
106 |
<?php else:?>
|
| 108 |
|
- |
|
| 109 |
<?php if(isset($deal['ppq']) && !empty($deal['ppq']) &&($deal['ppq']>0) && isset($deal['availabilityInfo'][0]['bulkPricing']) && empty($deal['availabilityInfo'][0]['bulkPricing'])):?>
|
107 |
<?php if(isset($deal['ppq']) && !empty($deal['ppq']) &&($deal['ppq']>0)):?>
|
| 110 |
<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;?>">
|
108 |
<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;?>">
|
| 111 |
<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
|
109 |
<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
|
| 112 |
|
110 |
|
| 113 |
</div>
|
111 |
</div>
|
| 114 |
<?php endif;?>
|
112 |
<?php endif;?>
|
| 115 |
|
113 |
|
| - |
|
114 |
|
| 116 |
<?php if(isset($deal['quantity']) && $deal['quantity']>1 && isset($deal['availabilityInfo'][0]['bulkPricing']) && sizeof($deal['availabilityInfo'][0]['bulkPricing'])<2):?>
|
115 |
<?php if(isset($deal['quantity']) && $deal['quantity']>1 ):?>
|
| 117 |
<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;?>">
|
116 |
<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;?>">
|
| 118 |
<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>
|
117 |
<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>
|
| 119 |
<?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
|
118 |
<?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
|
| 120 |
|
119 |
|
| 121 |
<font style="color:black;size:12px;"><?php echo "for ".$deal['quantity']." pcs";?></font>
|
120 |
<font style="color:black;size:12px;"><?php echo "for ".$deal['quantity']." pcs";?></font>
|
| 122 |
<?php endif;?>
|
121 |
<?php endif;?>
|
| 123 |
</div>
|
122 |
</div>
|
| 124 |
<?php endif;?>
|
123 |
<?php endif;?>
|
| - |
|
124 |
<?php endif;?>
|
| - |
|
125 |
|
| - |
|
126 |
<!-- bulk price ended-->
|
| - |
|
127 |
|
| 125 |
|
128 |
|
| 126 |
<div <?php if(!empty($deal['coupon'])):?>style="margin:0 !important"<?php endif;?> class="product_prices accsproduct" 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;?>>
|
129 |
<div <?php if(!empty($deal['coupon'])):?>style="margin:0 !important"<?php endif;?> class="product_prices accsproduct" 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;?>>
|
| 127 |
<div style="margin-top:0px;">
|
130 |
<div style="margin-top:0px;">
|
| 128 |
|
131 |
|
| 129 |
<?php if(!isset($deal['availabilityInfo'][0]['bulkPricing']) || empty($deal['availabilityInfo'][0]['bulkPricing'])):?>
|
132 |
<?php if(!isset($deal['availabilityInfo'][0]['bulkPricing']) || empty($deal['availabilityInfo'][0]['bulkPricing'])):?>
|