Subversion Repositories SmartDukaan

Rev

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

Rev 18370 Rev 18436
Line 238... Line 238...
238
				<?php if((isset($deal['showMrp']) && ($deal['showMrp']==1) && isset($deal['mrp']) && ($deal['mrp']>0))) :?>
238
				<?php if((isset($deal['showMrp']) && ($deal['showMrp']==1) && isset($deal['mrp']) && ($deal['mrp']>0))) :?>
239
		          <div class="text-small">
239
		          <div class="text-small">
240
		            
240
		            
241
		            <?php if(isset($deal['showMrp']) && ($deal['showMrp']==1) && isset($deal['mrp']) && ($deal['mrp']>0)):?>
241
		            <?php if(isset($deal['showMrp']) && ($deal['showMrp']==1) && isset($deal['mrp']) && ($deal['mrp']>0)):?>
242
		              <?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
242
		              <?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
243
		                MRP <span class="cashbackrupee"></span> <?php echo round(($deal['mrp']/$deal['quantity']), 2);?>/- per unit.
243
		                MRP <span class="cashbackrupee"></span> <?php echo round(($deal['mrp']/$deal['quantity']), 2);?> per unit
244
                    <!-- (Total <span class="cashbackrupee"></span> <?php //echo $deal['mrp']?>) -->
244
                    <!-- (Total <span class="cashbackrupee"></span> <?php //echo $deal['mrp']?>) -->
245
		              <?php else:?> 
245
		              <?php else:?> 
246
		                MRP <span class="cashbackrupee"></span><?php echo $deal['mrp'];?>
246
		                MRP <span class="cashbackrupee"></span><?php echo $deal['mrp'];?>
247
		              <?php endif;?>
247
		              <?php endif;?>
248
		            <?php endif;?>
248
		            <?php endif;?>
249
		
249
		
250
		          </div>
250
		          </div>
251
		           <?php endif;?>
251
		           <?php endif;?>
-
 
252
 
-
 
253
 
-
 
254
 
-
 
255
		        <?php if (isset($deal['availabilityInfo'][0]['bulkPricing']) && !empty($deal['availabilityInfo'][0]['bulkPricing'])):?>
-
 
256
		        		        
-
 
257
<?php                                                                                                                                                                                               
-
 
258
usort($deal['availabilityInfo'][0]['bulkPricing'], function($a, $b) { 
-
 
259
    return $a['quantity'] > $b['quantity'] ? -1 : 1; 
-
 
260
});                                                                                                                                                                                                        
-
 
261
   
252
		        
262
?>		            
-
 
263
		  
-
 
264
                  <div class="<?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;?>">
-
 
265
                    <?php foreach($deal['availabilityInfo'][0]['bulkPricing'] AS $value):?>
-
 
266
                      <div class="text-small">
-
 
267
                         
-
 
268
                        <?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
-
 
269
							<span class="rupee"></span><span style="font-size:13px; color:#ff0000"><strong><?php echo ($value['price']/($deal['quantity']*$value['quantity']));?></strong></span> per unit for 
-
 
270
                          <?php echo $deal['quantity']*$value['quantity'];?> pcs                      
-
 
271
                        <?php else:?>
-
 
272
                          <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
-
 
273
                        <?php endif;?>
-
 
274
                      </div>
-
 
275
                    <?php endforeach;?>
-
 
276
                 </div> 
-
 
277
            <?php endif;?>
-
 
278
              
253
		        <?php if(isset($deal['ppq']) && !empty($deal['ppq']) &&($deal['ppq']>0)):?>
279
		        <?php if(isset($deal['ppq']) && !empty($deal['ppq']) &&($deal['ppq']>0)):?>
254
		           <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;?>">
280
		           <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;?>">                 
255
		              <span class="rupee"></span><span style="font-size:14px; color:#ff0000"><strong><?php echo $deal['ppq'];?></strong></span> /- per unit.
281
		              <span class="rupee"></span><span style="font-size:13px; color:#ff0000"><strong><?php echo $deal['ppq'];?></strong></span> per unit
-
 
282
		              <?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
-
 
283
 
-
 
284
                      	<font style="size:12px;"><?php echo "for ".$deal['quantity']." pcs";?></font>                      
-
 
285
                      <?php endif;?>
256
		            </div>
286
		            </div>
257
		          <?php endif;?>
287
		          <?php endif;?>
258
		        
288
		        
259
		        <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;?>>
289
		        <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;?>>
260
		            <div>
290
		            <div>
261
		              <?php if($key == 0 && isset($deal['showDp']) && $deal['showDp']==1 && !empty($deal['dp'])):?>
291
		              <?php if($key == 0 && isset($deal['showDp']) && $deal['showDp']==1 && !empty($deal['dp'])):?>
262
		              <div class="dp">DP <span class="cashbackrupee"></span> <?php echo $deal['dp'];?></div>
292
		              <div class="dp">DP <span class="cashbackrupee"></span> <?php echo $deal['dp'];?></div>
263
		              <?php endif;?>
293
		              <?php endif;?>
264
		              <span class="rupee"></span>
294
		              
265
		              <?php if(isset($deal['gross_price']) && $deal['gross_price']>$deal['available_price']):?>
295
		              <?php if(isset($deal['gross_price']) && $deal['gross_price']>$deal['available_price']):?>		                
-
 
296
		                <?php if(isset($deal['quantity']) && $deal['quantity']<2):?>
266
		                <span class="red pt2"><?php echo intval($deal['gross_price']);?></span>
297
		                	<span class="rupee"></span><span class="red pt2"><?php echo intval($deal['gross_price']);?></span>
-
 
298
		                <?php endif;?>
267
		              <?php else:?>
299
		              <?php else:?>
268
		                <span class="product_price" data-did="<?php echo $deal['_id']; ?>"><?php echo intval($deal['available_price']);?></span> 
-
 
269
                    <?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
300
		              <?php if(isset($deal['quantity']) && $deal['quantity']<2):?>
270
 
-
 
271
                      <font style="color:black;size:12px;"><?php echo "for ".$deal['quantity']." pcs.";?></font>                      
301
		             	 <span class="rupee"></span> <span class="product_price" data-did="<?php echo $deal['_id']; ?>"><?php echo intval($deal['available_price']);?></span>
272
                    <?php endif;?>
302
		              <?php endif;?>                  
273
 
303
 
274
		              <?php endif;?>
304
		              <?php endif;?>
275
		              <?php if(isset($deal['cash_back_type']) && !empty($deal['cash_back_type']) && $deal['cash_back_type']!=0 && $deal['cash_back']>0):?>&nbsp;+
305
		              <?php if(isset($deal['cash_back_type']) && !empty($deal['cash_back_type']) && $deal['cash_back_type']!=0 && $deal['cash_back']>0):?>&nbsp;+
276
		                <?php if($deal['cash_back_type'] == 2):?>
306
		                <?php if($deal['cash_back_type'] == 2):?>
277
		                  <span class="cashbackrupee"></span> <span class="cashback"><?php echo $deal['cash_back'];?></span>   
307
		                  <span class="cashbackrupee"></span> <span class="cashback"><?php echo $deal['cash_back'];?></span>   
Line 319... Line 349...
319
		                  } 
349
		                  } 
320
		                ?>
350
		                ?>
321
		              </div>
351
		              </div>
322
		
352
		
323
		          </div>
353
		          </div>
324
		          
354
		         
325
		          <?php if(isset($deal['videoLink']) && !empty($deal['videoLink'])):?>
355
		          <?php if(isset($deal['videoLink']) && !empty($deal['videoLink'])):?>
326
          
356
          
327
		          <div class="text-small" style = "padding-top:4px;padding-bottom:4px;">
357
		          <div class="text-small" style = "padding-top:4px;padding-bottom:4px;">
328
		            <button type="button" class="btn btn-default btn-sm uvideo" data-source="<?php echo $deal['videoLink'];?>">
358
		            <button type="button" class="btn btn-default btn-sm uvideo" data-source="<?php echo $deal['videoLink'];?>">
329
		              <span class="glyphicon glyphicon-play-circle"></span> Play Video
359
		              <span class="glyphicon glyphicon-play-circle"></span> Play Video
Line 371... Line 401...
371
			<?php if($deal['source_id']==4):?>
401
			<?php if($deal['source_id']==4):?>
372
			<?php if(isset($deal['availabilityInfo']) && count($deal['availabilityInfo'])>0 && $deal['availabilityInfo'][0]['maxQuantity']>0):?>
402
			<?php if(isset($deal['availabilityInfo']) && count($deal['availabilityInfo'])>0 && $deal['availabilityInfo'][0]['maxQuantity']>0):?>
373
			<div class="col-xs-2 cartaddition">
403
			<div class="col-xs-2 cartaddition">
374
				<div class="input-group number-spinner">
404
				<div class="input-group number-spinner">
375
					<span class="input-group-btn data-up">
405
					<span class="input-group-btn data-up">
376
						<button class="btn btn-default plusqtybutton" data-id="<?php echo $deal['availabilityInfo'][0]['item_id'];?>" data-price="<?php echo intval($deal['availabilityInfo'][0]['sellingPrice']);?>" data-did="<?php echo $deal['_id'];?>" data-dir="up" data-name="<?php echo $deal['source_product_name'];?>" data-brand="<?php echo $deal['brand'];?>" data-identifier="<?php echo $deal['identifier']; ?>"><span class="glyphicon glyphicon-plus plusqty"></span></button>
406
						<button class="btn btn-default plusqtybutton" data-minquantity="<?php echo $deal['availabilityInfo'][0]['minBuyQuantity'];?>" <?php printf('data-bulkpricing = "%s"',htmlspecialchars(json_encode($deal['availabilityInfo'][0]['bulkPricing']), ENT_QUOTES, 'UTF-8'));?> data-quantitystep="<?php echo $deal['availabilityInfo'][0]['quantityStep'];?>" data-id="<?php echo $deal['availabilityInfo'][0]['item_id'];?>" data-price="<?php echo intval($deal['availabilityInfo'][0]['sellingPrice']);?>" data-did="<?php echo $deal['_id'];?>" data-dir="up" data-name="<?php echo $deal['source_product_name'];?>" data-brand="<?php echo $deal['brand'];?>" data-identifier="<?php echo $deal['identifier']; ?>"><span class="glyphicon glyphicon-plus plusqty"></span></button>
377
					</span>
407
					</span>
378
					<input type="text" class="itemquantity" value="0" min="0" max="<?php echo $deal['availabilityInfo'][0]['maxQuantity'];?>" data-did="<?php echo $deal['_id'];?>" autocomplete="off" readonly>
408
					<input type="text" class="itemquantity" value="0" min="0" max="<?php echo $deal['availabilityInfo'][0]['maxQuantity'];?>" data-did="<?php echo $deal['_id'];?>" autocomplete="off" readonly>
379
					<span class="input-group-btn data-dwn">
409
					<span class="input-group-btn data-dwn">
380
						<button class="btn btn-default minusqtybutton" data-id="<?php echo $deal['availabilityInfo'][0]['item_id'];?>" data-price="<?php echo intval($deal['availabilityInfo'][0]['sellingPrice']);?>" data-did="<?php echo $deal['_id'];?>" data-dir="dwn" data-name="<?php echo $deal['source_product_name'];?>" data-brand="<?php echo $deal['brand'];?>" data-identifier="<?php echo $deal['identifier']; ?>"><span class="glyphicon glyphicon-minus minusqty"></span></button>
410
						<button class="btn btn-default minusqtybutton" data-minquantity="<?php echo $deal['availabilityInfo'][0]['minBuyQuantity'];?>" <?php printf('data-bulkpricing = "%s"',htmlspecialchars(json_encode($deal['availabilityInfo'][0]['bulkPricing']), ENT_QUOTES, 'UTF-8'));?> data-quantitystep="<?php echo $deal['availabilityInfo'][0]['quantityStep'];?>" data-id="<?php echo $deal['availabilityInfo'][0]['item_id'];?>" data-price="<?php echo intval($deal['availabilityInfo'][0]['sellingPrice']);?>" data-did="<?php echo $deal['_id'];?>" data-dir="dwn" data-name="<?php echo $deal['source_product_name'];?>" data-brand="<?php echo $deal['brand'];?>" data-identifier="<?php echo $deal['identifier']; ?>"><span class="glyphicon glyphicon-minus minusqty"></span></button>
381
					</span>
411
					</span>
382
				</div>
412
				</div>
383
			</div>
413
			</div>
384
					  
414
					  
385
			<?php endif;?>	
415
			<?php endif;?>