Subversion Repositories SmartDukaan

Rev

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

Rev 17470 Rev 17474
Line 19... Line 19...
19
          $pinCode = $authorized['pincode'];
19
          $pinCode = $authorized['pincode'];
20
        }
20
        }
21
        else{
21
        else{
22
          $pinCode = '';
22
          $pinCode = '';
23
        }
23
        }
-
 
24
         
-
 
25
        $shipingCharges = 0;
-
 
26
        $grandTotalPrice = $carts[0]->totalPrice;
-
 
27
        if(isset($discount)){
-
 
28
            $grandTotalPrice = $grandTotalPrice - $discount;
-
 
29
        }
-
 
30
        if($carts[0]->totalPrice < 500){
-
 
31
            $shipingCharges = 100;
-
 
32
        } elseif($carts[0]->totalPrice >= 500 && $carts[0]->totalPrice <1000){
-
 
33
            $shipingCharges = 50;
-
 
34
        }
-
 
35
        $grandTotalPrice = $grandTotalPrice + $shipingCharges;
24
        ?>
36
        ?>
25
        <div class="cart-cont">
37
        <div class="cart-cont">
26
          <div id="error" class="error_msg" style="display:none"></div>  
38
          <div id="error" class="error_msg" style="display:none"></div>  
27
          <?php if(isset($carts[0]->lines) && !empty($carts[0]->lines)){?>
39
          <?php if(isset($carts[0]->lines) && !empty($carts[0]->lines)){?>
28
          <div class="cart-head clearfix">
40
          <div class="cart-head clearfix">
Line 113... Line 125...
113
          </div>
125
          </div>
114
          
126
          
115
          <div class="sub-total">
127
          <div class="sub-total">
116
          	  <div class="sub-total-head">
128
          	  <div class="sub-total-head">
117
                cart total
129
                cart total
118
              </div>
-
 
119
          	  <?php  
-
 
120
              $shipingCharges = 0;
-
 
121
              $grandTotalPrice = $carts[0]->totalPrice;
-
 
122
              if(isset($discount)){
-
 
123
              	 $grandTotalPrice = $grandTotalPrice - $discount;
-
 
124
              }
-
 
125
              if($carts[0]->totalPrice < 500){
-
 
126
                 $shipingCharges = 100;
-
 
127
              } elseif($carts[0]->totalPrice >= 500 && $carts[0]->totalPrice <1000){
-
 
128
              	 $shipingCharges = 50;
-
 
129
              }
-
 
130
              $grandTotalPrice = $grandTotalPrice + $shipingCharges;
-
 
131
              ?>    			
130
              </div>    			
132
              <div class="left">Shipping</div>
131
              <div class="left">Shipping</div>
133
              <?php if($shipingCharges==0){?>
132
              <?php if($shipingCharges==0){?>
134
              	<div class="right">Free</div>
133
              	<div class="right">Free</div>
135
              <?php } else{ ?>
134
              <?php } else{ ?>
136
              	<div class="right"> Rs <span><?php echo $shipingCharges; ?></div>
135
              	<div class="right"> Rs <span><?php echo $shipingCharges; ?></div>
137
              <?php } ?>
136
              <?php } ?>
138
              
137
              
139
              <div class="left">Total</div><div class="right">Rs <span id="total"><?php echo $carts[0]->totalPrice; ?></span></div>
138
              <div class="left">Total</div><div class="right">Rs <span id="total"><?php echo $carts[0]->totalPrice; ?></span></div>
140
              <div id="discount" <?php if(isset($discount)){ ?> style="display:block" <?php } else{ ?> style="display:none" <?php }?>><div class="left">Discount</div><div class="right">Rs <span id="discountAmt"><?php if(isset($discount)) {echo $discount;} ?></span></div></div>
139
              <div id="discount" <?php if(isset($discount)){ ?> style="display:block" <?php } else{ ?> style="display:none" <?php }?>><div class="left">Discount</div><div class="right">Rs <span id="discountAmt"><?php if(isset($discount)) {echo $discount;} ?></span></div></div>
141
              <div id="discountPrice" <?php if($carts[0]->discountedPrice >= 0 && isset($carts[0]->couponCode)){ ?> style="display:block" <?php } else{ ?> style="display:none" <?php }?>><div class="left">Discounted Price</div><div class="right">Rs <span id="discountedPrice"><?php echo $carts[0]->discountedPrice; ?></span></div></div>
140
              <div id="discountPrice" <?php if($carts[0]->discountedPrice >= 0 && isset($carts[0]->couponCode)){ ?> style="display:block" <?php } else{ ?> style="display:none" <?php }?>><div class="left">Discounted Price</div><div class="right">Rs <span id="discountedPrice"><?php echo $carts[0]->discountedPrice; ?></span></div></div>
142
              <div class="left">Grand Total</div><div class="right">Rs <span><?php echo $grandTotalPrice; ?></span></div>
141
              <div class="left">Grand Total</div><div class="right">Rs <span id="grandtotal"><?php echo $grandTotalPrice; ?></span></div>
143
          </div>
142
          </div>
144
          <div class="checkout-hldr clear">
143
          <div class="checkout-hldr clear">
145
            <div class="checkout-btn btn" onclick="checkout(<?php echo $isLoggedIn;?>);">
144
            <div class="checkout-btn btn" onclick="checkout(<?php echo $isLoggedIn;?>);">
146
              checkout
145
              checkout
147
            </div>
146
            </div>