Subversion Repositories SmartDukaan

Rev

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

Rev 18067 Rev 18219
Line 183... Line 183...
183
	          <div class="img-overlay">
183
	          <div class="img-overlay">
184
	          <div class="product_actions likeit" data-id="<?php echo $deal['_id'];?>" name="likediv_<?php echo $deal['_id'];?>">
184
	          <div class="product_actions likeit" data-id="<?php echo $deal['_id'];?>" name="likediv_<?php echo $deal['_id'];?>">
185
	            <span class="likedeal <?php if(isset($likedDeals[$deal['_id']])):?>active<?php endif;?>">
185
	            <span class="likedeal <?php if(isset($likedDeals[$deal['_id']])):?>active<?php endif;?>">
186
	            </span>
186
	            </span>
187
	          </div>
187
	          </div>
188
	          <div class="productthumb viewproduct" data-url="<?php echo $deal['marketPlaceUrl'];?>" data-id="<?php echo $deal['_id'];?>" data-source="<?php echo $deal['source_id'];?>" data-price="<?php echo intval($deal['available_price']);?>">
188
	          <div class="productthumb <?php if($deal['category_id']==6):?>accsproduct<?php else:?>viewproduct<?php endif;?>" data-url="<?php if($deal['category_id']==6):?><?php echo $base_url."categories/dealdetail/".$deal['_id'];?><?php else:?><?php echo $deal['marketPlaceUrl'];?><?php endif;?>" data-id="<?php echo $deal['_id'];?>" data-source="<?php echo $deal['source_id'];?>" data-price="<?php echo intval($deal['available_price']);?>">
189
	          <img src="<?php echo $base_url;?>app/webroot/timthumb.php?src=<?php echo urlencode($deal['thumbnail']);?>&h=100&q=95" />
189
	          <img src="<?php echo $base_url;?>app/webroot/timthumb.php?src=<?php echo urlencode($deal['thumbnail']);?>&h=100&q=95" />
190
	          </div>
190
	          </div>
191
	          <div class="product_actions dislikeit" data-id="<?php echo $deal['_id'];?>" name="dislikediv_<?php echo $deal['_id'];?>">
191
	          <div class="product_actions dislikeit" data-id="<?php echo $deal['_id'];?>" name="dislikediv_<?php echo $deal['_id'];?>">
192
	            <span class="dislikedeal <?php if(isset($disLikedDeals[$deal['_id']])):?>active<?php endif;?>">
192
	            <span class="dislikedeal <?php if(isset($disLikedDeals[$deal['_id']])):?>active<?php endif;?>">
193
	            </span>
193
	            </span>
Line 236... Line 236...
236
		              <?php endif;?>
236
		              <?php endif;?>
237
		            <?php endif;?>
237
		            <?php endif;?>
238
		
238
		
239
		          </div>
239
		          </div>
240
		           <?php endif;?>
240
		           <?php endif;?>
-
 
241
 
-
 
242
		        <?php if (isset($deal['availabilityInfo'][0]['bulkPricing']) && !empty($deal['availabilityInfo'][0]['bulkPricing'])):?>
-
 
243
                  
-
 
244
                    <?php foreach(array_reverse($deal['availabilityInfo'][0]['bulkPricing']) AS $value):?>
-
 
245
                      <div class="text-small">
-
 
246
                         
-
 
247
                        <?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
-
 
248
							<span class="rupee"></span><span style="font-size:14px; color:#ff0000"><strong><?php echo ($value['price']/($deal['quantity']*$value['quantity']));?></strong></span> /- per unit for 
-
 
249
                          <?php echo $deal['quantity']*$value['quantity'];?> pcs.                      
-
 
250
                        <?php else:?>
-
 
251
                          <span class="rupee"></span><span style="font-size:14px; color:#ff0000"><strong><?php echo $value['price'];?></strong></span> /- per unit for <?php echo $value['quantity'];?> pcs.
-
 
252
                        <?php endif;?>
-
 
253
                      </div>
-
 
254
                    <?php endforeach;?>
-
 
255
                  
-
 
256
            <?php endif;?>
241
		        
257
              
242
		        <?php if(isset($deal['ppq']) && !empty($deal['ppq']) &&($deal['ppq']>0)):?>
258
		        <?php if(isset($deal['ppq']) && !empty($deal['ppq']) &&($deal['ppq']>0)):?>
243
		           <div class="text-small" );?>
259
		           <div class="text-small">                 
244
		              <span class="rupee"></span><span style="font-size:14px; color:#ff0000"><strong><?php echo $deal['ppq'];?></strong></span> /- per unit.
260
		              <span class="rupee"></span><span style="font-size:14px; color:#ff0000"><strong><?php echo $deal['ppq'];?></strong></span> /- per unit.
-
 
261
		              <?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
-
 
262
 
-
 
263
                      	<font style="size:12px;"><?php echo "for ".$deal['quantity']." pcs.";?></font>                      
-
 
264
                      <?php endif;?>
245
		            </div>
265
		            </div>
246
		          <?php endif;?>
266
		          <?php endif;?>
247
		        
267
		        
248
		        <div <?php if(!empty($deal['coupon'])):?>style="margin:0 !important"<?php endif;?> class="product_prices viewproduct" data-id="<?php echo $deal['_id'];?>" data-source="<?php echo $deal['source_id'];?>" data-url="<?php echo $deal['marketPlaceUrl'];?>" data-price="<?php echo intval($deal['available_price']);?>" <?php if($key > 0):?>style='margin:0;'<?php endif;?>>
268
		        <div <?php if(!empty($deal['coupon'])):?>style="margin:0 !important"<?php endif;?> class="product_prices viewproduct" data-id="<?php echo $deal['_id'];?>" data-source="<?php echo $deal['source_id'];?>" data-url="<?php echo $deal['marketPlaceUrl'];?>" data-price="<?php echo intval($deal['available_price']);?>" <?php if($key > 0):?>style='margin:0;'<?php endif;?>>
249
		            <div>
269
		            <div>
250
		              <?php if($key == 0 && isset($deal['showDp']) && $deal['showDp']==1 && !empty($deal['dp'])):?>
270
		              <?php if($key == 0 && isset($deal['showDp']) && $deal['showDp']==1 && !empty($deal['dp'])):?>
251
		              <div class="dp">DP <span class="cashbackrupee"></span> <?php echo $deal['dp'];?></div>
271
		              <div class="dp">DP <span class="cashbackrupee"></span> <?php echo $deal['dp'];?></div>
252
		              <?php endif;?>
272
		              <?php endif;?>
253
		              <span class="rupee"></span>
273
		              
254
		              <?php if(isset($deal['gross_price']) && $deal['gross_price']>$deal['available_price']):?>
274
		              <?php if(isset($deal['gross_price']) && $deal['gross_price']>$deal['available_price']):?>
-
 
275
		                
-
 
276
		                <?php if(isset($deal['quantity']) && $deal['quantity']<2):?>
255
		                <span class="red pt2"><?php echo intval($deal['gross_price']);?></span>
277
		                	<span class="rupee"></span><span class="red pt2"><?php echo intval($deal['gross_price']);?></span>
-
 
278
		                <?php endif;?>
256
		              <?php else:?>
279
		              <?php else:?>
257
		                <span class="product_price" data-did="<?php echo $deal['_id']; ?>"><?php echo intval($deal['available_price']);?></span> 
-
 
258
                    <?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
280
		              <?php if(isset($deal['quantity']) && $deal['quantity']<2):?>
259
 
-
 
260
                      <font style="color:black;size:12px;"><?php echo "for ".$deal['quantity']." pcs.";?></font>                      
281
		             	 <span class="rupee"></span> <span class="product_price" data-did="<?php echo $deal['_id']; ?>"><?php echo intval($deal['available_price']);?></span>
261
                    <?php endif;?>
282
		              <?php endif;?>
-
 
283
		                 
-
 
284
                    
262
 
285
 
263
		              <?php endif;?>
286
		              <?php endif;?>
264
		              <?php if(isset($deal['cash_back_type']) && !empty($deal['cash_back_type']) && $deal['cash_back_type']!=0 && $deal['cash_back']>0):?>&nbsp;+
287
		              <?php if(isset($deal['cash_back_type']) && !empty($deal['cash_back_type']) && $deal['cash_back_type']!=0 && $deal['cash_back']>0):?>&nbsp;+
265
		                <?php if($deal['cash_back_type'] == 2):?>
288
		                <?php if($deal['cash_back_type'] == 2):?>
266
		                  <span class="cashbackrupee"></span> <span class="cashback"><?php echo $deal['cash_back'];?></span>   
289
		                  <span class="cashbackrupee"></span> <span class="cashback"><?php echo $deal['cash_back'];?></span>   
Line 308... Line 331...
308
		                  } 
331
		                  } 
309
		                ?>
332
		                ?>
310
		              </div>
333
		              </div>
311
		
334
		
312
		          </div>
335
		          </div>
313
		          
336
		         
314
		          <?php if(isset($deal['videoLink']) && !empty($deal['videoLink'])):?>
337
		          <?php if(isset($deal['videoLink']) && !empty($deal['videoLink'])):?>
315
          
338
          
316
		          <div class="text-small" style = "padding-top:4px;padding-bottom:4px;">
339
		          <div class="text-small" style = "padding-top:4px;padding-bottom:4px;">
317
		            <button type="button" class="btn btn-default btn-sm uvideo" data-source="<?php echo $deal['videoLink'];?>">
340
		            <button type="button" class="btn btn-default btn-sm uvideo" data-source="<?php echo $deal['videoLink'];?>">
318
		              <span class="glyphicon glyphicon-play-circle"></span> Play Video
341
		              <span class="glyphicon glyphicon-play-circle"></span> Play Video
Line 360... Line 383...
360
			<?php if($deal['source_id']==4):?>
383
			<?php if($deal['source_id']==4):?>
361
			<?php if(isset($deal['availabilityInfo']) && count($deal['availabilityInfo'])>0 && $deal['availabilityInfo'][0]['maxQuantity']>0):?>
384
			<?php if(isset($deal['availabilityInfo']) && count($deal['availabilityInfo'])>0 && $deal['availabilityInfo'][0]['maxQuantity']>0):?>
362
			<div class="col-xs-2 cartaddition">
385
			<div class="col-xs-2 cartaddition">
363
				<div class="input-group number-spinner">
386
				<div class="input-group number-spinner">
364
					<span class="input-group-btn data-up">
387
					<span class="input-group-btn data-up">
365
						<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>
388
						<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>
366
					</span>
389
					</span>
367
					<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>
390
					<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>
368
					<span class="input-group-btn data-dwn">
391
					<span class="input-group-btn data-dwn">
369
						<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>
392
						<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>
370
					</span>
393
					</span>
371
				</div>
394
				</div>
372
			</div>
395
			</div>
373
					  
396
					  
374
			<?php endif;?>	
397
			<?php endif;?>