Subversion Repositories SmartDukaan

Rev

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

Rev 18537 Rev 18542
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($deal['availabilityInfo'][0]['bulkPricing'] AS $key => $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($key >1 && $key <=  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 echo $deal['quantity']*$value['quantity'];?> pcs                      
275
	                          <?php echo $deal['quantity']*$value['quantity'];?> pcs                      
276
	                        <?php else:?>
276
	                        <?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
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
278
	                        <?php endif;?>
278
	                        <?php endif;?>
279
	           				<?php if($key ==1 &&  intval(sizeof($deal['availabilityInfo'][0]['bulkPricing'])) >3):?>
279
	           				<?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>
280
	                        	 <button type="button" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-chevron-down morebulkprice"></span></button>
281
	                      	<?php endif;?>
281
	                      	<?php endif;?>
282
	                      </div>
282
	                      </div>
283
	                      
283
	                      
284
	                      
284
	                      
Line 339... Line 339...
339
		            Use Coupon <span class="red"><?php echo $deal['coupon'];?></span>
339
		            Use Coupon <span class="red"><?php echo $deal['coupon'];?></span>
340
		          </div>
340
		          </div>
341
		          <?php endif;?>
341
		          <?php endif;?>
342
		          
342
		          
343
		          <?php if(isset($deal['codAvailable']) && !$deal['codAvailable']):?>
343
		          <?php if(isset($deal['codAvailable']) && !$deal['codAvailable']):?>
-
 
344
		          
344
		          <div class="text-small <?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']);?>">
345
		          <div class="text-small <?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']);?>">
345
		            (COD not available)
346
		            (COD not available)
346
		          </div>
347
		          </div>
347
		          <?php else:?>
348
		          <?php else:?>
348
		            <?php if($key!=0):?>
349
		            <?php if($key!=0):?>