Subversion Repositories SmartDukaan

Rev

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

Rev 18587 Rev 18685
Line 65... Line 65...
65
				  <?php if($key == 0 && isset($deal['showDp']) && $deal['showDp']==1 && !empty($deal['dp'])):?>
65
				  <?php if($key == 0 && isset($deal['showDp']) && $deal['showDp']==1 && !empty($deal['dp'])):?>
66
				              <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>
66
				              <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>
67
  			      <?php endif;?>
67
  			      <?php endif;?>
68
 
68
 
69
		       <!-- bulk price started-->
69
		       <!-- bulk price started-->
-
 
70
<?php foreach($deal['availabilityInfo'] as $infokey => $infoval):?>
70
	              <?php if (isset($deal['availabilityInfo'][0]['bulkPricing']) && !empty($deal['availabilityInfo'][0]['bulkPricing'])):?>		 
71
		    <?php if (isset($infoval['bulkPricing']) && !empty($infoval['bulkPricing'])):?>		 
71
	               <div class="" data-url="<?php if($deal['source_id'] == 4):?><?php echo $base_url."categories/dealdetail/".$deal['identifier'];?><?php endif;?>">
72
	               <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;?>">
72
                    <?php foreach(array_reverse($deal['availabilityInfo'][0]['bulkPricing']) AS $bulkkey => $value):?>
73
                    <?php foreach(array_reverse($infoval['bulkPricing']) AS $bulkkey => $value):?>
73
                    	
74
                    	
74
	                      <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;?>"> 
75
	                      <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;?>"> 
-
 
76
	                      
75
	                        <?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
77
	                        <?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
76
								<span class="rupee" style="margin-top: 3px !important;"></span> <span style="font-size:13px; color:#ff0000"><strong><?php echo round(($value['price']/($deal['quantity'])),2);?></strong></span> per unit for 
78
								<span class="rupee" style="margin-top: 3px !important;"></span> <span style="font-size:13px; color:#ff0000"><strong><?php echo round(($value['price']/($deal['quantity'])),2);?></strong></span> per unit for 
77
	                          <?php
79
	                          <?php
78
	                          	 echo $value['quantity']." Pack (".$deal['quantity']*$value['quantity'];
80
	                          	 echo $value['quantity']."+ Pack (".$deal['quantity']*$value['quantity'];
79
	                          	 if($value['quantity'] == 1){
81
	                          	 if($value['quantity'] == 1){
80
	                          	 	echo "pc)";
82
	                          	 	echo "pc)";
81
	                          	 }
83
	                          	 }
82
	                          	 else{
84
	                          	 else{
83
	                          	 	echo "pcs)";
85
	                          	 	echo "pcs)";
84
	                          	 }
86
	                          	 }
85
	                          	 ?>                       
87
	                          	 ?>                       
86
	                        <?php else:?>
88
	                        <?php else:?>
87
	                          <span class="rupee" style="margin-top: 3px !important;"></span> <span style="font-size:13px; color:#ff0000"><strong><?php echo $value['price'];?></strong></span> per unit for <?php echo $value['quantity'];?> 
89
	                          <span class="rupee" style="margin-top: 3px !important;"></span> <span style="font-size:13px; color:#ff0000"><strong><?php echo $value['price'];?></strong></span> per unit for <?php echo $value['quantity']."+";?> 
88
							  <?php 
90
							  <?php 
89
							  	if($value['quantity'] == 1){
91
							  	if($value['quantity'] == 1){
90
	                          	 	echo "pc";
92
	                          	 	echo "pc";
91
	                          	 }
93
	                          	 }
92
	                          	 else{
94
	                          	 else{
93
	                          	 	echo "pcs";
95
	                          	 	echo "pcs";
94
	                          	 }
96
	                          	 }
95
							  ?>
97
							  ?>
96
	                        <?php endif;?>
98
	                        <?php endif;?>
-
 
99
	                       
97
	           				<?php if($bulkkey ==1 &&  intval(sizeof($deal['availabilityInfo'][0]['bulkPricing'])) >3):?>
100
	           				<?php if($bulkkey ==1 &&  intval(sizeof($infoval['bulkPricing'])) >3):?>
98
	                        	 <button type="button" class="btn btn-default btn-xs"><span class="glyphicon glyphicon-chevron-down morebulkprice"></span></button>
101
	                        	 <button type="button" class="btn btn-default btn-xs morebulkprice"><span class="glyphicon glyphicon-chevron-down"></span></button>
99
	                      	<?php endif;?>
102
	                      	<?php endif;?>
100
	                      </div>
103
	                      </div>
101
	                      
104
	                      
102
	                      
105
	                      
103
                    <?php endforeach;?>
106
                    <?php endforeach;?>
104
                 </div> 
107
                 </div> 
105
                 
-
 
106
                 <?php else:?>
108
                 <?php else:?>
107
                 <?php if(isset($deal['ppq']) && !empty($deal['ppq']) &&($deal['ppq']>0)):?>
109
                 <?php if(isset($deal['ppq']) && !empty($deal['ppq']) &&($deal['ppq']>0)):?>
108
		           <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;?>">                 
110
		           <div class="priceshow <?php echo "priceshow".$infoval['item_id']."ps".$infokey;?> <?php if($infokey > 0):?>hidden<?php endif;?> 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;?>">                 
109
		              <span class="rupee" style="margin-top: 3px !important;"></span> <span style="font-size:13px; color:#ff0000"><strong><?php echo $deal['ppq'];?></strong></span> /- per unit
111
		              <span class="rupee" style="margin-top: 3px !important;"></span> <span style="font-size:13px; color:#ff0000"><strong><?php echo $deal['ppq'];?></strong></span> /- per unit
110
		              
112
		              
111
		            </div>
113
		            </div>
112
		          <?php endif;?>
114
		          <?php endif;?>
113
		        
115
		        
114
 
116
 
115
				<?php if(isset($deal['quantity']) && $deal['quantity']>1 ):?>
117
				<?php if(isset($deal['quantity']) && $deal['quantity']>1 ):?>
116
		           <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;?>">                 
118
		           <div class="priceshow <?php echo "priceshow".$infoval['item_id']."ps".$infokey;?> <?php if($infokey > 0):?>hidden<?php endif;?> 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;?>">                 
117
		              <span class="rupee" style="margin-top: 3px !important;"></span> <span style="font-size:13px; color:#ff0000"><strong><?php echo ($deal['ppq']*$deal['quantity']);?></strong></span> 
119
		              <span class="rupee" style="margin-top: 3px !important;"></span> <span style="font-size:13px; color:#ff0000"><strong><?php echo ($deal['ppq']*$deal['quantity']);?></strong></span> 
118
		              <?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
120
		              <?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
119
 
121
 
120
                      	<font style="color:black;size:12px;"><?php echo "for ".$deal['quantity']." pcs";?></font>                      
122
                      	<font style="color:black;size:12px;"><?php echo "for ".$deal['quantity']." pcs";?></font>                      
121
                      <?php endif;?>
123
                      <?php endif;?>
122
		            </div>
124
		            </div>
123
		          <?php endif;?>
125
		          <?php endif;?>
-
 
126
                 
124
            <?php endif;?>
127
            <?php endif;?>
125
              
128
              
-
 
129
	<?php endforeach;?>	                      
126
              <!-- bulk price ended-->
130
              <!-- bulk price ended-->
127
              
131
              
128
		        
132
		        
129
		        <div <?php if(!empty($deal['coupon'])):?>style="margin:0 !important"<?php endif;?> class="product_prices accsproduct" 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;?>>
133
		        <div <?php if(!empty($deal['coupon'])):?>style="margin:0 !important"<?php endif;?> class="product_prices accsproduct" 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;?>>
-
 
134
		            <?php if(isset($deal['availabilityInfo']) && sizeof($deal['availabilityInfo'])>1):?>  
-
 
135
		            	<?php foreach($deal['availabilityInfo'] as $infokeyy => $infovall):?>		            		            
-
 
136
		            	<div class="priceshow <?php echo "priceshow".$infovall['item_id']."ps".$infokeyy;?> <?php if($infokeyy > 0):?>hidden<?php endif;?>"style="margin-top:0px;">
-
 
137
			              <?php if(!isset($infovall['bulkPricing']) || empty($infovall['bulkPricing'])):?>
-
 
138
				              <?php if(isset($deal['gross_price']) && $deal['gross_price']>$deal['available_price']):?>		                
-
 
139
				                <?php if(isset($deal['quantity']) && $deal['quantity']<2):?>
-
 
140
				                	<span class="rupee"></span> <span class="red pt2"><?php echo intval($deal['gross_price']);?></span>
130
		            <div style="margin-top:0px;">
141
				                <?php endif;?>
131
		              
142
				              <?php else:?>
132
					  <?php if(!isset($deal['availabilityInfo'][0]['bulkPricing']) || empty($deal['availabilityInfo'][0]['bulkPricing'])):?>
143
					              <?php if(isset($deal['quantity']) && $deal['quantity']<2):?>
-
 
144
					             	 <span class="rupee"></span> <span class="product_price" data-did="<?php echo $deal['_id']; ?>"><?php echo intval($deal['available_price']);?></span>
-
 
145
		           	 		    
-
 
146
					              <?php endif;?>                  
-
 
147
				              <?php endif;?>
-
 
148
			              <?php endif;?>
133
			          
149
			          
-
 
150
	
-
 
151
			              
134
			              <?php if(isset($deal['gross_price']) && $deal['gross_price']>$deal['available_price']):?>		                
152
			              <?php if(isset($deal['cash_back_type']) && !empty($deal['cash_back_type']) && $deal['cash_back_type']!=0 && $deal['cash_back']>0):?>&nbsp;+
135
			                <?php if(isset($deal['quantity']) && $deal['quantity']<2):?>
153
			                <?php if($deal['cash_back_type'] == 2):?>
136
			                	<span class="rupee"></span> <span class="red pt2"><?php echo intval($deal['gross_price']);?></span>
154
			                  <span class="cashbackrupee"></span> <span class="cashback"><?php echo $deal['cash_back'];?></span>   
137
			                <?php endif;?>
-
 
138
			              <?php else:?>
155
			                <?php else:?>
139
				              <?php if(isset($deal['quantity']) && $deal['quantity']<2):?>
156
			                  <?php echo $deal['cash_back'];?> %
140
				             	 <span class="rupee"></span> <span class="product_price" data-did="<?php echo $deal['_id']; ?>"><?php echo intval($deal['available_price']);?></span>
-
 
141
	           	 		    
157
			                <?php endif;?> 
142
				              <?php endif;?>                  
158
			                Cashback
143
			              <?php endif;?>
159
			              <?php endif;?>
-
 
160
			            </div>
-
 
161
		            
-
 
162
		            	<?php endforeach;?>
-
 
163
		            <?php else:?>
-
 
164
		            	<?php if(!isset($deal['availabilityInfo'][0]['bulkPricing']) || empty($deal['availabilityInfo'][0]['bulkPricing'])):?>
-
 
165
		            	<div class="" style="margin-top:0px;">
-
 
166
			              
-
 
167
				              <?php if(isset($deal['gross_price']) && $deal['gross_price']>$deal['available_price']):?>		                
-
 
168
				                <?php if(isset($deal['quantity']) && $deal['quantity']<2):?>
-
 
169
				                	<span class="rupee"></span> <span class="red pt2"><?php echo intval($deal['gross_price']);?></span>
-
 
170
				                <?php endif;?>
-
 
171
				              <?php else:?>
-
 
172
					              <?php if(isset($deal['quantity']) && $deal['quantity']<2):?>
-
 
173
					             	 <span class="rupee"></span> <span class="product_price" data-did="<?php echo $deal['_id']; ?>"><?php echo intval($deal['available_price']);?></span>
-
 
174
		           	 		    
-
 
175
					              <?php endif;?>                  
144
		              <?php endif;?>
176
				              <?php endif;?>
145
		              
177
			              
-
 
178
			          
-
 
179
	
146
		             
180
			              
147
		              <?php if(isset($deal['cash_back_type']) && !empty($deal['cash_back_type']) && $deal['cash_back_type']!=0 && $deal['cash_back']>0):?>&nbsp;+
181
			              <?php if(isset($deal['cash_back_type']) && !empty($deal['cash_back_type']) && $deal['cash_back_type']!=0 && $deal['cash_back']>0):?>&nbsp;+
148
		                <?php if($deal['cash_back_type'] == 2):?>
182
			                <?php if($deal['cash_back_type'] == 2):?>
149
		                  <span class="cashbackrupee"></span> <span class="cashback"><?php echo $deal['cash_back'];?></span>   
183
			                  <span class="cashbackrupee"></span> <span class="cashback"><?php echo $deal['cash_back'];?></span>   
150
		                <?php else:?>
184
			                <?php else:?>
151
		                  <?php echo $deal['cash_back'];?> %
185
			                  <?php echo $deal['cash_back'];?> %
152
		                <?php endif;?> 
186
			                <?php endif;?> 
153
		                Cashback
187
			                Cashback
154
		              <?php endif;?>
188
			              <?php endif;?>
155
		            </div>
189
			            </div>	
-
 
190
		            	<?php endif;?>
-
 
191
		            <?php endif;?>
156
		          </div> 
192
		          </div> 
157
		          
193
		          
158
		          <?php if(isset($deal['gross_price']) && $deal['gross_price']>$deal['available_price']):?>
194
		          <?php if(isset($deal['gross_price']) && $deal['gross_price']>$deal['available_price']):?>
159
		          <div class="text-small accsproduct" 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']);?>">
195
		          <div class="text-small accsproduct" 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']);?>">
160
		            Paytm cashback <?php echo ($deal['gross_price']-$deal['available_price']);?><br/> Net Price = <span class='product_price'><span class="rupee"></span> <?php echo $deal['available_price'];?></span>
196
		            Paytm cashback <?php echo ($deal['gross_price']-$deal['available_price']);?><br/> Net Price = <span class='product_price'><span class="rupee"></span> <?php echo $deal['available_price'];?></span>
Line 267... Line 303...
267
					<div class="col-xs-2"></div>
303
					<div class="col-xs-2"></div>
268
					<div class="col-xs-10 button-checkbox text-left">
304
					<div class="col-xs-10 button-checkbox text-left">
269
						<?php for($i=0; $i<count($colorsAvailable); $i=$i+2){
305
						<?php for($i=0; $i<count($colorsAvailable); $i=$i+2){
270
								$value = $colorsAvailable[$i];
306
								$value = $colorsAvailable[$i];
271
							?>
307
							?>
272
			            		<button type="button" class="btn btn-xs choosecolor colorbtn" data-id="<?php echo $value['item_id'];?>" data-price="<?php echo $value['sellingPrice'];?>" data-did="<?php echo $deal['_id'];?>" data-color="primary" data-max="<?php echo $value['maxQuantity'];?>"><?php echo strtoupper($value['color']);?></button>
308
			            		<button type="button" data-setsetect="<?php echo "priceshow".$value['item_id']."ps".$i;?>" class="btn btn-xs choosecolor colorbtn" data-minquantity="<?php echo $value['minBuyQuantity'];?>" <?php printf('data-bulkpricing = "%s"',htmlspecialchars(json_encode($value['bulkPricing']), ENT_QUOTES, 'UTF-8'));?> data-quantitystep="<?php echo $value['quantityStep'];?>" data-id="<?php echo $value['item_id'];?>" data-price="<?php echo $value['sellingPrice'];?>" data-did="<?php echo $deal['_id'];?>" data-color="primary" data-max="<?php echo $value['maxQuantity'];?>"><?php echo strtoupper($value['color']);?></button>
273
			            		<?php
309
			            		<?php
274
			            			$j = $i+1;
310
			            			$j = $i+1;
275
			            			$value = $colorsAvailable[$j];
311
			            			$value = $colorsAvailable[$j];
276
			            			if($j<count($colorsAvailable)){?>
312
			            			if($j<count($colorsAvailable)){?>
277
			            			<button type="button" class="btn btn-xs choosecolor colorbtn" data-id="<?php echo $value['item_id'];?>" data-price="<?php echo $value['sellingPrice'];?>" data-did="<?php echo $deal['_id'];?>" data-color="primary" data-max="<?php echo $value['maxQuantity'];?>"><?php echo strtoupper($value['color']);?></button><br>	
313
			            			<button type="button" data-setsetect="<?php echo "priceshow".$value['item_id']."ps".$j;?>" class="btn btn-xs choosecolor colorbtn" data-minquantity="<?php echo $value['minBuyQuantity'];?>" <?php printf('data-bulkpricing = "%s"',htmlspecialchars(json_encode($value['bulkPricing']), ENT_QUOTES, 'UTF-8'));?> data-quantitystep="<?php echo $value['quantityStep'];?>" data-id="<?php echo $value['item_id'];?>" data-price="<?php echo $value['sellingPrice'];?>" data-did="<?php echo $deal['_id'];?>" data-color="primary" data-max="<?php echo $value['maxQuantity'];?>"><?php echo strtoupper($value['color']);?></button><br>	
278
			    
314
			    
279
			            		<?php }?>
315
			            		<?php }?>
280
			            <?php }?>
316
			            <?php }?>
281
			        </div>
317
			        </div>
282
			        
318