Subversion Repositories SmartDukaan

Rev

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

Rev 18676 Rev 18694
Line 266... Line 266...
266
 
266
 
267
			<?php if($key == 0 && isset($deal['showDp']) && $deal['showDp']==1 && !empty($deal['dp'])):?>
267
			<?php if($key == 0 && isset($deal['showDp']) && $deal['showDp']==1 && !empty($deal['dp'])):?>
268
		              <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>
268
		              <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>
269
		    <?php endif;?>
269
		    <?php endif;?>
270
		    
270
		    
271
		    
271
<?php if($deal['source_id'] == 4):?>	    
272
<?php foreach($deal['availabilityInfo'] as $infokey => $infoval):?>
272
	<?php foreach($deal['availabilityInfo'] as $infokey => $infoval):?>
273
		    <?php if (isset($infoval['bulkPricing']) && !empty($infoval['bulkPricing'])):?>		 
273
		    <?php if (isset($infoval['bulkPricing']) && !empty($infoval['bulkPricing'])):?>		 
274
	               <div class="accsproduct priceshow <?php echo "priceshow".$infoval['item_id']."ps".$infokey;?> <?php if($infokey > 0):?>hidden<?php endif;?>" data-url="<?php if($deal['source_id'] == 4):?><?php echo $base_url."categories/dealdetail/".$deal['identifier'];?><?php endif;?>">
274
	               <div class="accsproduct priceshow <?php echo "priceshow".$infoval['item_id']."ps".$infokey;?> <?php if($infokey > 0):?>hidden<?php endif;?>" data-url="<?php if($deal['source_id'] == 4):?><?php echo $base_url."categories/dealdetail/".$deal['identifier'];?><?php endif;?>">
275
                    <?php foreach(array_reverse($infoval['bulkPricing']) AS $bulkkey => $value):?>
275
                    <?php foreach(array_reverse($infoval['bulkPricing']) AS $bulkkey => $value):?>
276
                    	
276
                    	
277
	                      <div class="<?php echo "select".$infoval['item_id']."a".$value['quantity'];?> text-small<?php if($bulkkey >1 && $bulkkey <=  intval(sizeof($infoval['bulkPricing']))-2 && intval(sizeof($infoval['bulkPricing'])) !=3):?> bulkpricingclass hidden<?php endif;?>" data-url="<?php if($deal['source_id'] == 4):?><?php echo $base_url."categories/dealdetail/".$deal['identifier'];?><?php endif;?>"> 
277
	                      <div class="<?php echo "select".$infoval['item_id']."a".$value['quantity'];?> text-small<?php if($bulkkey >1 && $bulkkey <=  intval(sizeof($infoval['bulkPricing']))-2 && intval(sizeof($infoval['bulkPricing'])) !=3):?> bulkpricingclass hidden<?php endif;?>" data-url="<?php if($deal['source_id'] == 4):?><?php echo $base_url."categories/dealdetail/".$deal['identifier'];?><?php endif;?>"> 
Line 327... Line 327...
327
		          <?php endif;?>
327
		          <?php endif;?>
328
                 
328
                 
329
            <?php endif;?>
329
            <?php endif;?>
330
              
330
              
331
	<?php endforeach;?>	        
331
	<?php endforeach;?>	        
332
				
332
<?php endif;?>				
333
		        
333
		        
334
		        <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;?>>
334
		        <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;?>>
335
		            
335
		            
336
		            <?php if(isset($deal['availabilityInfo']) && sizeof($deal['availabilityInfo'])>1):?>  
336
		            <?php if( $deal['source_id'] == 4 && isset($deal['availabilityInfo']) && sizeof($deal['availabilityInfo'])>1):?>  
337
		            	<?php foreach($deal['availabilityInfo'] as $infokeyy => $infovall):?>		            		            
337
		            	<?php foreach($deal['availabilityInfo'] as $infokeyy => $infovall):?>		            		            
338
		            	<div class="priceshow <?php echo "priceshow".$infovall['item_id']."ps".$infokeyy;?> <?php if($infokeyy > 0):?>hidden<?php endif;?>"style="margin-top:0px;">
338
		            	<div class="priceshow <?php echo "priceshow".$infovall['item_id']."ps".$infokeyy;?> <?php if($infokeyy > 0):?>hidden<?php endif;?>"style="margin-top:0px;">
339
			              <?php if(!isset($infovall['bulkPricing']) || empty($infovall['bulkPricing'])):?>
339
			              <?php if(!isset($infovall['bulkPricing']) || empty($infovall['bulkPricing'])):?>
340
				              <?php if(isset($deal['gross_price']) && $deal['gross_price']>$deal['available_price']):?>		                
340
				              <?php if(isset($deal['gross_price']) && $deal['gross_price']>$deal['available_price']):?>		                
341
				                <?php if(isset($deal['quantity']) && $deal['quantity']<2):?>
341
				                <?php if(isset($deal['quantity']) && $deal['quantity']<2):?>