Subversion Repositories SmartDukaan

Rev

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

Rev 18542 Rev 18552
Line 263... Line 263...
263
		          </div>
263
		          </div>
264
		           <?php endif;?>
264
		           <?php endif;?>
265
 
265
 
266
 
266
 
267
 
267
 
268
		        <?php if (isset($deal['availabilityInfo'][0]['bulkPricing']) && !empty($deal['availabilityInfo'][0]['bulkPricing'])):?>		 
268
		    <?php if (isset($deal['availabilityInfo'][0]['bulkPricing']) && !empty($deal['availabilityInfo'][0]['bulkPricing'])):?>		 
269
	               <div class="" data-url="<?php if($deal['source_id'] == 4):?><?php echo $base_url."categories/dealdetail/".$deal['identifier'];?><?php endif;?>">
269
	               <div class="" data-url="<?php if($deal['source_id'] == 4):?><?php echo $base_url."categories/dealdetail/".$deal['identifier'];?><?php endif;?>">
270
                    <?php foreach(array_reverse($deal['availabilityInfo'][0]['bulkPricing']) AS $bulkkey => $value):?>
270
                    <?php foreach(array_reverse($deal['availabilityInfo'][0]['bulkPricing']) AS $bulkkey => $value):?>
271
                    	
271
                    	
272
	                      <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;?>"> 
272
	                      <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;?>"> 
273
	                        <?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
273
	                        <?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
274
								<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 
274
								<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 
-
 
275
	                          <?php
275
	                          <?php echo $deal['quantity']*$value['quantity'];?> pcs                      
276
	                          	 echo $value['quantity']." Pack (".$deal['quantity']*$value['quantity'];
-
 
277
	                          	 if($value['quantity'] == 1){
-
 
278
	                          	 	echo "pc)";
-
 
279
	                          	 }
-
 
280
	                          	 else{
-
 
281
	                          	 	echo "pcs)";
-
 
282
	                          	 }
-
 
283
	                          	 ?>                       
276
	                        <?php else:?>
284
	                        <?php else:?>
277
	                          <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
285
	                          <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'];?> 
-
 
286
							  <?php 
-
 
287
							  	if($value['quantity'] == 1){
-
 
288
	                          	 	echo "pc";
-
 
289
	                          	 }
-
 
290
	                          	 else{
-
 
291
	                          	 	echo "pcs";
-
 
292
	                          	 }
-
 
293
							  ?>
278
	                        <?php endif;?>
294
	                        <?php endif;?>
279
	           				<?php if($bulkkey ==1 &&  intval(sizeof($deal['availabilityInfo'][0]['bulkPricing'])) >3):?>
295
	           				<?php if($bulkkey ==1 &&  intval(sizeof($deal['availabilityInfo'][0]['bulkPricing'])) >3):?>
280
	                        	 <button type="button" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-chevron-down morebulkprice"></span></button>
296
	                        	 <button type="button" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-chevron-down morebulkprice"></span></button>
281
	                      	<?php endif;?>
297
	                      	<?php endif;?>
282
	                      </div>
298
	                      </div>
Line 294... Line 310...
294
                      	<font style="size:12px;"><?php echo "for ".$deal['quantity']." pcs";?></font>                      
310
                      	<font style="size:12px;"><?php echo "for ".$deal['quantity']." pcs";?></font>                      
295
                      <?php endif;?>
311
                      <?php endif;?>
296
		            </div>
312
		            </div>
297
		          <?php endif;?>
313
		          <?php endif;?>
298
		        
314
		        
-
 
315
 
-
 
316
				<?php if(isset($deal['quantity']) && $deal['quantity']>1 && isset($deal['availabilityInfo'][0]['bulkPricing']) && sizeof($deal['availabilityInfo'][0]['bulkPricing'])<2):?>
-
 
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;?>">                 
-
 
318
		              <span class="rupee"></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):?>
-
 
320
 
-
 
321
                      	<font style="color:black;size:12px;"><?php echo "for ".$deal['quantity']." pcs";?></font>                      
-
 
322
                      <?php endif;?>
-
 
323
		            </div>
-
 
324
		          <?php endif;?>
-
 
325
				
-
 
326
		        
299
		        <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;?>>
327
		        <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;?>>
300
		            <div>
328
		            <div>
301
		              <?php if($key == 0 && isset($deal['showDp']) && $deal['showDp']==1 && !empty($deal['dp'])):?>
329
		              <?php if($key == 0 && isset($deal['showDp']) && $deal['showDp']==1 && !empty($deal['dp'])):?>
302
		              <div class="dp">DP <span class="cashbackrupee"></span> <?php echo $deal['dp'];?></div>
330
		              <div class="dp">DP <span class="cashbackrupee"></span> <?php echo $deal['dp'];?></div>
303
		              <?php endif;?>
331
		              <?php endif;?>