Subversion Repositories SmartDukaan

Rev

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

Rev 19145 Rev 19147
Line 254... Line 254...
254
				<?php if((isset($deal['showMrp']) && ($deal['showMrp']==1) && isset($deal['mrp']) && ($deal['mrp']>0))) :?>
254
				<?php if((isset($deal['showMrp']) && ($deal['showMrp']==1) && isset($deal['mrp']) && ($deal['mrp']>0))) :?>
255
		          <div class="text-small">
255
		          <div class="text-small">
256
		            
256
		            
257
		            <?php if(isset($deal['showMrp']) && ($deal['showMrp']==1) && isset($deal['mrp']) && ($deal['mrp']>0)):?>
257
		            <?php if(isset($deal['showMrp']) && ($deal['showMrp']==1) && isset($deal['mrp']) && ($deal['mrp']>0)):?>
258
		              <?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
258
		              <?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
259
		                MRP <span class="cashbackrupee"></span> <?php echo round(($deal['mrp']/$deal['quantity']), 2);?> per unit
259
		                MRP &#8377; <?php echo round(($deal['mrp']/$deal['quantity']), 2);?> per unit
260
                    <!-- (Total <span class="cashbackrupee"></span> <?php //echo $deal['mrp']?>) -->
260
                    <!-- (Total <span class="cashbackrupee"></span> <?php //echo $deal['mrp']?>) -->
261
		              <?php else:?> 
261
		              <?php else:?> 
262
		                MRP <span class="cashbackrupee"></span><?php echo $deal['mrp'];?>
262
		                MRP &#8377; <?php echo $deal['mrp'];?>
263
		              <?php endif;?>
263
		              <?php endif;?>
264
		            <?php endif;?>
264
		            <?php endif;?>
265
		
265
		
266
		          </div>
266
		          </div>
267
		           <?php endif;?>
267
		           <?php endif;?>
268
 
268
 
269
			<?php if($key == 0 && isset($deal['showDp']) && $deal['showDp']==1 && !empty($deal['dp'])):?>
269
			<?php if($key == 0 && isset($deal['showDp']) && $deal['showDp']==1 && !empty($deal['dp'])):?>
270
		              <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>
270
		              <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 &#8377; <?php echo $deal['dp'];?></div>
271
		    <?php endif;?>
271
		    <?php endif;?>
272
		    
272
		    
273
<?php if(isset($deal['source_id']) && $deal['source_id'] == 4):?>	    
273
<?php if(isset($deal['source_id']) && $deal['source_id'] == 4):?>	    
274
	<?php foreach($deal['availabilityInfo'] as $infokey => $infoval):?>
274
	<?php foreach($deal['availabilityInfo'] as $infokey => $infoval):?>
275
		    <?php if (isset($infoval['bulkPricing']) && !empty($infoval['bulkPricing'])):?>		 
275
		    <?php if (isset($infoval['bulkPricing']) && !empty($infoval['bulkPricing'])):?>		 
Line 343... Line 343...
343
			              
343
			              
344
						  <?php if(isset($deal['showNetPrice'])&& $deal['showNetPrice']==1 && $deal['source_id'] == 4 && isset($infovall['netPriceAfterCashBack']) && $infovall['netPriceAfterCashBack']>0 && isset($infovall['cash_back_type']) && $infovall['cash_back_type'] >0 && isset($infovall['cash_back'])&& $infovall['cash_back']>0):?>
344
						  <?php if(isset($deal['showNetPrice'])&& $deal['showNetPrice']==1 && $deal['source_id'] == 4 && isset($infovall['netPriceAfterCashBack']) && $infovall['netPriceAfterCashBack']>0 && isset($infovall['cash_back_type']) && $infovall['cash_back_type'] >0 && isset($infovall['cash_back'])&& $infovall['cash_back']>0):?>
345
			              	
345
			              	
346
				              	<?php //if(isset($deal['netPriceAfterCashBack']) && !empty($deal['netPriceAfterCashBack'])):?>
346
				              	<?php //if(isset($deal['netPriceAfterCashBack']) && !empty($deal['netPriceAfterCashBack'])):?>
347
								<div class = "text-small netPriceAfterCashBack <?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;?>">		          				
347
								<div class = "text-small netPriceAfterCashBack <?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;?>">		          				
348
			          					<span class="rupee" style ="margin-top: 2px;"></span> <span style ="font-size:13px; color:#ff0000"><b><?php echo $deal['netPriceAfterCashBack'];?></b></span> 
348
			          					<span class="rupee"></span> <span style ="font-size:14px; color:#ff0000"><b><?php echo $deal['netPriceAfterCashBack'];?></b></span> 
349
		          				</div>
349
		          				</div>
350
		          				<?php //endif;?>
350
		          				<?php //endif;?>
351
		          				<div style="font-size:12px;">
351
		          				<div style="font-size:12px;">
352
		          				<?php if(isset($infovall['sellingPrice']) && $infovall['sellingPrice']>0):?>		                
352
		          				<?php if(isset($infovall['sellingPrice']) && $infovall['sellingPrice']>0):?>		                
353
				                	<?php if(isset($deal['quantity']) && $deal['quantity']<2):?>
353
				                	<?php if(isset($deal['quantity']) && $deal['quantity']<2):?>
Line 358... Line 358...
358
			          
358
			          
359
	
359
	
360
			              		<span style="font-size:12px;color:#555;"><?php echo "less";?></span>
360
			              		<span style="font-size:12px;color:#555;"><?php echo "less";?></span>
361
			              		<?php if(isset($infovall['cash_back_type']) && !empty($infovall['cash_back_type']) && $infovall['cash_back_type']!=0 && $infovall['cash_back']>0):?>
361
			              		<?php if(isset($infovall['cash_back_type']) && !empty($infovall['cash_back_type']) && $infovall['cash_back_type']!=0 && $infovall['cash_back']>0):?>
362
			                		<?php if($infovall['cash_back_type'] == 2):?>
362
			                		<?php if($infovall['cash_back_type'] == 2):?>
363
			                  			<span class="cashbackrupee"></span> <span class="cashback"><?php echo $infovall['cash_back'];?></span>   
363
			                  			&#8377; <span class="cashback"><?php echo $infovall['cash_back'];?></span>   
364
			                		<?php else:?>
364
			                		<?php else:?>
365
			                  			<?php echo $infovall['cash_back'];?>%
365
			                  			<?php echo $infovall['cash_back'];?>%
366
			                		<?php endif;?> 
366
			                		<?php endif;?> 
367
			                		<span style="font-size:12px;">Cashback</span><span style="font-size:12px;color:#555;"> )</span>
367
			                		<span style="font-size:12px;">Cashback</span><span style="font-size:12px;color:#555;"> )</span>
368
			                	
368
			                	
Line 385... Line 385...
385
	
385
	
386
<!--need change start-->	
386
<!--need change start-->	
387
						<?php if($deal['source_id'] != 4):?>							              
387
						<?php if($deal['source_id'] != 4):?>							              
388
			              <?php if(isset($deal['cash_back_type']) && !empty($deal['cash_back_type']) && $deal['cash_back_type']!=0 && $deal['cash_back']>0):?>&nbsp;+
388
			              <?php if(isset($deal['cash_back_type']) && !empty($deal['cash_back_type']) && $deal['cash_back_type']!=0 && $deal['cash_back']>0):?>&nbsp;+
389
			                <?php if($deal['cash_back_type'] == 2):?>
389
			                <?php if($deal['cash_back_type'] == 2):?>
390
			                  <span class="cashbackrupee"></span> <span class="cashback"><?php echo $deal['cash_back'];?></span>   
390
			                  &#8377; <span class="cashback"><?php echo $deal['cash_back'];?></span>   
391
			                <?php else:?>
391
			                <?php else:?>
392
			                  <?php echo $deal['cash_back'];?>%
392
			                  <?php echo $deal['cash_back'];?>%
393
			                <?php endif;?> 
393
			                <?php endif;?> 
394
			                Cashback
394
			                Cashback
395
			              <?php endif;?>
395
			              <?php endif;?>
Line 404... Line 404...
404
			              
404
			              
405
			              <?php if(isset($deal['showNetPrice'])&& $deal['showNetPrice']==1 && $deal['source_id'] == 4 && isset($deal['netPriceAfterCashBack']) && $deal['netPriceAfterCashBack'] > 0 && isset($deal['cash_back_type']) && $deal['cash_back_type'] >0 && isset($deal['cash_back'])&& $deal['cash_back']>0 && isset($deal['quantity']) && $deal['quantity']<2):?>
405
			              <?php if(isset($deal['showNetPrice'])&& $deal['showNetPrice']==1 && $deal['source_id'] == 4 && isset($deal['netPriceAfterCashBack']) && $deal['netPriceAfterCashBack'] > 0 && isset($deal['cash_back_type']) && $deal['cash_back_type'] >0 && isset($deal['cash_back'])&& $deal['cash_back']>0 && isset($deal['quantity']) && $deal['quantity']<2):?>
406
			              	
406
			              	
407
				              	
407
				              	
408
								<div class = "text-small netPriceAfterCashBack <?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;?>">		          				
408
								<div class = "text-small netPriceAfterCashBack <?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;?>">		          				
409
			          					<span class="rupee" style ="margin-top: 2px;"></span> <span style ="font-size:13px; color:#ff0000"><b><?php echo intval($deal['netPriceAfterCashBack']);?></b></span> 
409
			          					<span class="rupee"></span> <span style ="font-size:14px; color:#ff0000"><b><?php echo intval($deal['netPriceAfterCashBack']);?></b></span> 
410
		          				</div>
410
		          				</div>
411
		          				
411
		          				
412
		          				<div style="font-size:12px;">
412
		          				<div style="font-size:12px;">
413
		          				<?php if(isset($deal['gross_price']) && $deal['gross_price']>$deal['available_price']):?>		                
413
		          				<?php if(isset($deal['gross_price']) && $deal['gross_price']>$deal['available_price']):?>		                
414
				                	<?php if(isset($deal['quantity']) && $deal['quantity']<2):?>
414
				                	<?php if(isset($deal['quantity']) && $deal['quantity']<2):?>
Line 424... Line 424...
424
			          
424
			          
425
								<?php if(isset($deal['quantity']) && $deal['quantity']<2):?>
425
								<?php if(isset($deal['quantity']) && $deal['quantity']<2):?>
426
			              			<span style="font-size:12px;color:#555;"><?php echo "less";?></span>
426
			              			<span style="font-size:12px;color:#555;"><?php echo "less";?></span>
427
			              			<?php if(isset($deal['cash_back_type']) && !empty($deal['cash_back_type']) && $deal['cash_back_type']!=0 && $deal['cash_back']>0):?>
427
			              			<?php if(isset($deal['cash_back_type']) && !empty($deal['cash_back_type']) && $deal['cash_back_type']!=0 && $deal['cash_back']>0):?>
428
			                			<?php if($deal['cash_back_type'] == 2):?>
428
			                			<?php if($deal['cash_back_type'] == 2):?>
429
			                  				<span class="cashbackrupee"></span> <span class="cashback"><?php echo $deal['cash_back'];?></span>   
429
			                  				&#8377; <span class="cashback"><?php echo $deal['cash_back'];?></span>   
430
			                			<?php else:?>
430
			                			<?php else:?>
431
			                  				<?php echo $deal['cash_back'];?>%
431
			                  				<?php echo $deal['cash_back'];?>%
432
			                			<?php endif;?> 
432
			                			<?php endif;?> 
433
			                			<span style="font-size:12px;">Cashback</span><span style="font-size:12px;color:#555;"> )</span>
433
			                			<span style="font-size:12px;">Cashback</span><span style="font-size:12px;color:#555;"> )</span>
434
			                	
434
			                	
Line 452... Line 452...
452
			          
452
			          
453
	
453
	
454
			              
454
			              
455
			              	<?php if(isset($deal['cash_back_type']) && !empty($deal['cash_back_type']) && $deal['cash_back_type']!=0 && $deal['cash_back']>0):?>&nbsp;+
455
			              	<?php if(isset($deal['cash_back_type']) && !empty($deal['cash_back_type']) && $deal['cash_back_type']!=0 && $deal['cash_back']>0):?>&nbsp;+
456
			                	<?php if($deal['cash_back_type'] == 2):?>
456
			                	<?php if($deal['cash_back_type'] == 2):?>
457
			                  		<span class="cashbackrupee"></span> <span class="cashback"><?php echo $deal['cash_back'];?></span>   
457
			                  		&#8377; <span class="cashback"><?php echo $deal['cash_back'];?></span>   
458
			                	<?php else:?>
458
			                	<?php else:?>
459
			                  		<?php echo $deal['cash_back'];?>%
459
			                  		<?php echo $deal['cash_back'];?>%
460
			                	<?php endif;?> 
460
			                	<?php endif;?> 
461
			                	Cashback
461
			                	Cashback
462
			              	<?php endif;?>
462
			              	<?php endif;?>