Subversion Repositories SmartDukaan

Rev

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

Rev 18561 Rev 18564
Line 71... Line 71...
71
	               <div class="" data-url="<?php if($deal['source_id'] == 4):?><?php echo $base_url."categories/dealdetail/".$deal['identifier'];?><?php endif;?>">
71
	               <div class="" 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):?>
72
                    <?php foreach(array_reverse($deal['availabilityInfo'][0]['bulkPricing']) AS $bulkkey => $value):?>
73
                    	
73
                    	
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;?>"> 
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
	                        <?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
75
	                        <?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
76
								<span class="rupee"></span><span style="font-size:13px; color:#ff0000"><strong><?php echo round(($value['price']/($deal['quantity']*$value['quantity'])),2);?></strong></span> per unit for 
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']*$value['quantity'])),2);?></strong></span> per unit for 
77
	                          <?php
77
	                          <?php
78
	                          	 echo $value['quantity']." Pack (".$deal['quantity']*$value['quantity'];
78
	                          	 echo $value['quantity']." Pack (".$deal['quantity']*$value['quantity'];
79
	                          	 if($value['quantity'] == 1){
79
	                          	 if($value['quantity'] == 1){
80
	                          	 	echo "pc)";
80
	                          	 	echo "pc)";
81
	                          	 }
81
	                          	 }
82
	                          	 else{
82
	                          	 else{
83
	                          	 	echo "pcs)";
83
	                          	 	echo "pcs)";
84
	                          	 }
84
	                          	 }
85
	                          	 ?>                       
85
	                          	 ?>                       
86
	                        <?php else:?>
86
	                        <?php else:?>
87
	                          <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'];?> 
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'];?> 
88
							  <?php 
88
							  <?php 
89
							  	if($value['quantity'] == 1){
89
							  	if($value['quantity'] == 1){
90
	                          	 	echo "pc";
90
	                          	 	echo "pc";
91
	                          	 }
91
	                          	 }
92
	                          	 else{
92
	                          	 else{
Line 106... Line 106...
106
              
106
              
107
              <!-- bulk price ended-->
107
              <!-- bulk price ended-->
108
              
108
              
109
		        <?php if(isset($deal['ppq']) && !empty($deal['ppq']) &&($deal['ppq']>0) && isset($deal['availabilityInfo'][0]['bulkPricing']) && empty($deal['availabilityInfo'][0]['bulkPricing'])):?>
109
		        <?php if(isset($deal['ppq']) && !empty($deal['ppq']) &&($deal['ppq']>0) && isset($deal['availabilityInfo'][0]['bulkPricing']) && empty($deal['availabilityInfo'][0]['bulkPricing'])):?>
110
		           <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="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;?>">                 
111
		              <span class="rupee"></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
112
		              <?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
112
		              <?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
113
 
113
 
114
                      	<font style="size:12px;"><?php echo "for ".$deal['quantity']." pcs";?></font>                      
114
                      	<font style="size:12px;"><?php echo "for ".$deal['quantity']." pcs";?></font>                      
115
                      <?php endif;?>
115
                      <?php endif;?>
116
		            </div>
116
		            </div>
117
		        <?php endif;?>
117
		        <?php endif;?>
118
		          
118
		          
119
		        <?php if(isset($deal['quantity']) && $deal['quantity']>1 && isset($deal['availabilityInfo'][0]['bulkPricing']) && sizeof($deal['availabilityInfo'][0]['bulkPricing'])<2):?>
119
		        <?php if(isset($deal['quantity']) && $deal['quantity']>1 && isset($deal['availabilityInfo'][0]['bulkPricing']) && sizeof($deal['availabilityInfo'][0]['bulkPricing'])<2):?>
120
		           <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;?>">                 
120
		           <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;?>">                 
121
		              <span class="rupee"></span><span style="font-size:13px; color:#ff0000"><strong><?php echo ($deal['ppq']*$deal['quantity']);?></strong></span> 
121
		              <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> 
122
		              <?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
122
		              <?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
123
 
123
 
124
                      	<font style="color:black;size:12px;"><?php echo "for ".$deal['quantity']." pcs";?></font>                      
124
                      	<font style="color:black;size:12px;"><?php echo "for ".$deal['quantity']." pcs";?></font>                      
125
                      <?php endif;?>
125
                      <?php endif;?>
126
		            </div>
126
		            </div>
Line 128... Line 128...
128
		        
128
		        
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;?>>
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;?>>
130
		            <div style="margin-top:0px;">
130
		            <div style="margin-top:0px;">
131
		              
131
		              
132
					  <?php if(!isset($deal['availabilityInfo'][0]['bulkPricing']) || empty($deal['availabilityInfo'][0]['bulkPricing'])):?>
132
					  <?php if(!isset($deal['availabilityInfo'][0]['bulkPricing']) || empty($deal['availabilityInfo'][0]['bulkPricing'])):?>
133
												              
133
			          
134
			              <span class="rupee"></span>
134
			              <?php if(isset($deal['gross_price']) && $deal['gross_price']>$deal['available_price']):?>		                
135
			              <?php if(isset($deal['gross_price']) && $deal['gross_price']>$deal['available_price']):?>
135
			                <?php if(isset($deal['quantity']) && $deal['quantity']<2):?>
136
			                <span class="red pt2"><?php echo intval($deal['gross_price']);?></span>
136
			                	<span class="rupee"></span> <span class="red pt2"><?php echo intval($deal['gross_price']);?></span>
-
 
137
			                <?php endif;?>
137
			              <?php else:?>
138
			              <?php else:?>
138
			                <span class="product_price" data-did="<?php echo $deal['_id']; ?>"><?php echo intval($deal['available_price']);?></span> 
-
 
139
		                    <?php if(isset($deal['quantity']) && $deal['quantity']>1):?>
139
				              <?php if(isset($deal['quantity']) && $deal['quantity']<2):?>
140
		
-
 
141
		                      <font style="color:black;size:12px;"><?php echo "for ".$deal['quantity']." pcs.";?></font>                      
140
				             	 <span class="rupee"></span> <span class="product_price" data-did="<?php echo $deal['_id']; ?>"><?php echo intval($deal['available_price']);?></span>
142
		                    <?php endif;?>
141
	           	 		    
143
	                     <?php endif;?>
142
				              <?php endif;?>                  
144
	                     
143
			              <?php endif;?>
145
	                   <?php endif;?>
144
		              <?php endif;?>
146
		              
145
		              
147
		             
146
		             
148
		              <?php if(isset($deal['cash_back_type']) && !empty($deal['cash_back_type']) && $deal['cash_back_type']!=0 && $deal['cash_back']>0):?>&nbsp;+
147
		              <?php if(isset($deal['cash_back_type']) && !empty($deal['cash_back_type']) && $deal['cash_back_type']!=0 && $deal['cash_back']>0):?>&nbsp;+
149
		                <?php if($deal['cash_back_type'] == 2):?>
148
		                <?php if($deal['cash_back_type'] == 2):?>
150
		                  <span class="cashbackrupee"></span> <span class="cashback"><?php echo $deal['cash_back'];?></span>   
149
		                  <span class="cashbackrupee"></span> <span class="cashback"><?php echo $deal['cash_back'];?></span>