| Line 60... |
Line 60... |
| 60 |
<?php endif;?>
|
60 |
<?php endif;?>
|
| 61 |
|
61 |
|
| 62 |
</div>
|
62 |
</div>
|
| 63 |
<?php endif;?>
|
63 |
<?php endif;?>
|
| 64 |
|
64 |
|
| - |
|
65 |
<?php if($key == 0 && isset($deal['showDp']) && $deal['showDp']==1 && !empty($deal['dp'])):?>
|
| - |
|
66 |
<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>
|
| - |
|
67 |
<?php endif;?>
|
| - |
|
68 |
|
| 65 |
<!-- bulk price started-->
|
69 |
<!-- bulk price started-->
|
| 66 |
<?php if (isset($deal['availabilityInfo'][0]['bulkPricing']) && !empty($deal['availabilityInfo'][0]['bulkPricing'])):?>
|
70 |
<?php if (isset($deal['availabilityInfo'][0]['bulkPricing']) && !empty($deal['availabilityInfo'][0]['bulkPricing'])):?>
|
| 67 |
|
- |
|
| 68 |
|
- |
|
| 69 |
<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;?>">
|
| 70 |
<?php foreach(array_reverse($deal['availabilityInfo'][0]['bulkPricing']) AS $bulkkey => $value):?>
|
72 |
<?php foreach(array_reverse($deal['availabilityInfo'][0]['bulkPricing']) AS $bulkkey => $value):?>
|
| 71 |
|
73 |
|
| 72 |
<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;?>">
|
| 73 |
<?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
|
75 |
<?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
|
| 74 |
<span class="rupee"></span><span style="font-size:13px; color:#ff0000"><strong><?php echo ($value['price']/($deal['quantity']*$value['quantity']));?></strong></span> per unit for
|
76 |
<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
|
| - |
|
77 |
<?php
|
| 75 |
<?php echo $deal['quantity']*$value['quantity'];?> pcs
|
78 |
echo $value['quantity']." Pack (".$deal['quantity']*$value['quantity'];
|
| - |
|
79 |
if($value['quantity'] == 1){
|
| - |
|
80 |
echo "pc)";
|
| - |
|
81 |
}
|
| - |
|
82 |
else{
|
| - |
|
83 |
echo "pcs)";
|
| - |
|
84 |
}
|
| - |
|
85 |
?>
|
| 76 |
<?php else:?>
|
86 |
<?php else:?>
|
| 77 |
<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'];?> pcs
|
87 |
<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'];?>
|
| - |
|
88 |
<?php
|
| - |
|
89 |
if($value['quantity'] == 1){
|
| - |
|
90 |
echo "pc";
|
| - |
|
91 |
}
|
| - |
|
92 |
else{
|
| - |
|
93 |
echo "pcs";
|
| - |
|
94 |
}
|
| - |
|
95 |
?>
|
| 78 |
<?php endif;?>
|
96 |
<?php endif;?>
|
| 79 |
<?php if($bulkkey ==1 && intval(sizeof($deal['availabilityInfo'][0]['bulkPricing'])) >3):?>
|
97 |
<?php if($bulkkey ==1 && intval(sizeof($deal['availabilityInfo'][0]['bulkPricing'])) >3):?>
|
| 80 |
<button type="button" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-chevron-down morebulkprice"></span></button>
|
98 |
<button type="button" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-chevron-down morebulkprice"></span></button>
|
| 81 |
<?php endif;?>
|
99 |
<?php endif;?>
|
| 82 |
</div>
|
100 |
</div>
|
| 83 |
|
101 |
|
| 84 |
|
102 |
|
| 85 |
<?php endforeach;?>
|
103 |
<?php endforeach;?>
|
| 86 |
</div>
|
104 |
</div>
|
| 87 |
<?php endif;?>
|
105 |
<?php endif;?>
|
| 88 |
|
106 |
|
| 89 |
<!-- bulk price ended-->
|
107 |
<!-- bulk price ended-->
|
| 90 |
|
108 |
|
| 91 |
<?php if(isset($deal['ppq']) && !empty($deal['ppq']) &&($deal['ppq']>0) && isset($deal['availabilityInfo'][0]['bulkPricing']) && empty($deal['availabilityInfo'][0]['bulkPricing'])):?>
|
109 |
<?php if(isset($deal['ppq']) && !empty($deal['ppq']) &&($deal['ppq']>0) && isset($deal['availabilityInfo'][0]['bulkPricing']) && empty($deal['availabilityInfo'][0]['bulkPricing'])):?>
|
| - |
|
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;?>">
|
| - |
|
111 |
<span class="rupee"></span><span style="font-size:13px; color:#ff0000"><strong><?php echo $deal['ppq'];?></strong></span> per unit
|
| - |
|
112 |
<?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
|
| - |
|
113 |
|
| - |
|
114 |
<font style="size:12px;"><?php echo "for ".$deal['quantity']." pcs";?></font>
|
| 92 |
<div class="text-small">
|
115 |
<?php endif;?>
|
| - |
|
116 |
</div>
|
| - |
|
117 |
<?php endif;?>
|
| - |
|
118 |
|
| - |
|
119 |
<?php if(isset($deal['quantity']) && $deal['quantity']>1 && isset($deal['availabilityInfo'][0]['bulkPricing']) && sizeof($deal['availabilityInfo'][0]['bulkPricing'])<2):?>
|
| - |
|
120 |
<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;?>">
|
| 93 |
<span class="rupee"></span><span style="font-size:14px; color:#ff0000"><strong><?php echo $deal['ppq'];?></strong></span> /- per unit.
|
121 |
<span class="rupee"></span><span style="font-size:13px; color:#ff0000"><strong><?php echo ($deal['ppq']*$deal['quantity']);?></strong></span>
|
| - |
|
122 |
<?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
|
| - |
|
123 |
|
| - |
|
124 |
<font style="color:black;size:12px;"><?php echo "for ".$deal['quantity']." pcs";?></font>
|
| - |
|
125 |
<?php endif;?>
|
| 94 |
</div>
|
126 |
</div>
|
| 95 |
<?php endif;?>
|
127 |
<?php endif;?>
|
| 96 |
|
128 |
|
| 97 |
<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;?>>
|
| 98 |
<div>
|
- |
|
| 99 |
<?php if($key == 0 && isset($deal['showDp']) && $deal['showDp']==1 && !empty($deal['dp'])):?>
|
- |
|
| 100 |
<div class="dp">DP <span class="cashbackrupee"></span> <?php echo $deal['dp'];?></div>
|
- |
|
| 101 |
<?php endif;?>
|
130 |
<div style="margin-top:0px;">
|
| 102 |
|
131 |
|
| 103 |
<?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'])):?>
|
| 104 |
|
133 |
|
| 105 |
<span class="rupee"></span>
|
134 |
<span class="rupee"></span>
|
| 106 |
<?php if(isset($deal['gross_price']) && $deal['gross_price']>$deal['available_price']):?>
|
135 |
<?php if(isset($deal['gross_price']) && $deal['gross_price']>$deal['available_price']):?>
|