Subversion Repositories SmartDukaan

Rev

Rev 18584 | Rev 18660 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 18584 Rev 18614
Line 269... Line 269...
269
 
269
 
270
		    <?php if (isset($deal['availabilityInfo'][0]['bulkPricing']) && !empty($deal['availabilityInfo'][0]['bulkPricing'])):?>		 
270
		    <?php if (isset($deal['availabilityInfo'][0]['bulkPricing']) && !empty($deal['availabilityInfo'][0]['bulkPricing'])):?>		 
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
	                      <span class = "accsproduct" data-url="<?php echo $base_url."categories/dealdetail/".$deal['identifier'];?>"> 
275
	                        <?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
276
		                        <?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
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'])),2);?></strong></span> per unit for 
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 
277
	                          <?php
278
		                          <?php
278
	                          	 echo $value['quantity']." Pack (".$deal['quantity']*$value['quantity'];
279
		                          	 echo $value['quantity']." Pack (".$deal['quantity']*$value['quantity'];
279
	                          	 if($value['quantity'] == 1){
280
		                          	 if($value['quantity'] == 1){
280
	                          	 	echo "pc)";
281
		                          	 	echo "pc)";
281
	                          	 }
282
		                          	 }
282
	                          	 else{
283
		                          	 else{
283
	                          	 	echo "pcs)";
284
		                          	 	echo "pcs)";
284
	                          	 }
285
		                          	 }
285
	                          	 ?>                       
286
		                          	 ?>                       
286
	                        <?php else:?>
287
		                        <?php else:?>
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
		                          <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 
289
								  <?php 
289
							  	if($value['quantity'] == 1){
290
								  	if($value['quantity'] == 1){
290
	                          	 	echo "pc";
291
		                          	 	echo "pc";
291
	                          	 }
292
		                          	 }
292
	                          	 else{
293
		                          	 else{
293
	                          	 	echo "pcs";
294
		                          	 	echo "pcs";
294
	                          	 }
295
		                          	 }
295
							  ?>
296
								  ?>
296
	                        <?php endif;?>
297
		                        <?php endif;?>
-
 
298
	                        </span>
297
	           				<?php if($bulkkey ==1 &&  intval(sizeof($deal['availabilityInfo'][0]['bulkPricing'])) >3):?>
299
	           				<?php if($bulkkey ==1 &&  intval(sizeof($deal['availabilityInfo'][0]['bulkPricing'])) >3):?>
298
	                        	 <button type="button" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-chevron-down morebulkprice"></span></button>
300
	                        	 <button type="button" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-chevron-down morebulkprice"></span></button>
299
	                      	<?php endif;?>
301
	                      	<?php endif;?>
300
	                      </div>
302
	                      </div>
301
	                      
303