Subversion Repositories SmartDukaan

Rev

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

Rev 10789 Rev 10814
Line 14... Line 14...
14
}
14
}
15
if(isset($carts->locationServiceable) && $carts->locationServiceable == 1){
15
if(isset($carts->locationServiceable) && $carts->locationServiceable == 1){
16
	$locationServiceable = false;
16
	$locationServiceable = false;
17
	$this->session->set_userdata('locationServiceable',$carts->locationServiceable);
17
	$this->session->set_userdata('locationServiceable',$carts->locationServiceable);
18
}
18
}
-
 
19
if(isset($carts->couponCode) && !empty($carts->couponCode)){
-
 
20
    $totalPrice = number_format((float)$carts->totalPrice,0,'.','');
-
 
21
    $discountedPrice = number_format((float)$carts->discountedPrice,0,'.','');
19
//print_r($carts);
22
    $discount = $totalPrice-$discountedPrice;
-
 
23
}
20
?>
24
?>
21
    <div class="shipping-head clearfix">
25
    <div class="shipping-head clearfix">
22
      <div class="shipping">Shipping</div>
26
      <div class="shipping">Shipping</div>
23
      <!-- <span></span> -->
27
      <!-- <span></span> -->
24
      <div class="payment">Payment</div>
28
      <div class="payment">Payment</div>
Line 160... Line 164...
160
					<div>shipping</div>
164
					<div>shipping</div>
161
					<div>Free</div>
165
					<div>Free</div>
162
				</div><!--add-ons-->
166
				</div><!--add-ons-->
163
			</div><!--order-summary-->
167
			</div><!--order-summary-->
164
			<div class="gd-total clearfix">
168
			<div class="gd-total clearfix">
-
 
169
				<?php if(isset($discount) && $discount!=0){?>
-
 
170
				<div>Total Price</div><div>Rs <?php echo $totalPrice;?></div>
-
 
171
				<div>Discount</div><div>Rs <?php echo $discount;?></div>
-
 
172
				<?php }?>
165
				<div>Grand total( <?php echo sizeof($carts->lines);
173
				<div>Grand total( <?php echo sizeof($carts->lines);
166
				if(sizeof($carts->lines) > 1){echo 'items )';} else {echo 'item )';}?></div>
174
				if(sizeof($carts->lines) > 1){echo 'items )';} else {echo 'item )';}?></div>
167
				<div>RS <?php echo $carts->totalPrice;?> </div>
175
				<div>RS <?php if(isset($discount) && $discount!=0){echo $discountedPrice;} else {echo $carts->totalPrice;}?> </div>
168
			</div><!--gd-total-->
176
			</div><!--gd-total-->
169
					<input type="hidden" id="hotSpot" name="hotspot" value=""/>
177
					<input type="hidden" id="hotSpot" name="hotspot" value=""/>
170
					<input class="procced-btn btn" type="button" name="submit" value="Proceed To Pay" onclick="validateInsurance(2)"/>
178
					<input class="procced-btn btn" type="button" name="submit" value="Proceed To Pay" onclick="validateInsurance(2)"/>
171
		</div><!--shipping-cont--->
179
		</div><!--shipping-cont--->
172
		</div><!--delivery-cont-->
180
		</div><!--delivery-cont-->