| Line 159... |
Line 159... |
| 159 |
<div><?php echo $item->actualPrice;?></div>
|
159 |
<div><?php echo $item->actualPrice;?></div>
|
| 160 |
<span>(for <?php echo $item->quantity;?> pcs)</span>
|
160 |
<span>(for <?php echo $item->quantity;?> pcs)</span>
|
| 161 |
</div>
|
161 |
</div>
|
| 162 |
</div><!--pd-sum-->
|
162 |
</div><!--pd-sum-->
|
| 163 |
<?php }?>
|
163 |
<?php }?>
|
| - |
|
164 |
<?php
|
| - |
|
165 |
$shipingCharges = 0;
|
| - |
|
166 |
if($carts->totalPrice < 500){
|
| - |
|
167 |
$shipingCharges = 100;
|
| - |
|
168 |
} elseif($carts->totalPrice >= 500 && $carts->totalPrice <1000){
|
| - |
|
169 |
$shipingCharges = 50;
|
| - |
|
170 |
}
|
| - |
|
171 |
?>
|
| 164 |
<div class="add-ons clearfix">
|
172 |
<div class="add-ons clearfix">
|
| 165 |
<div>shipping</div>
|
173 |
<div>shipping</div>
|
| - |
|
174 |
<?php if($shipingCharges==0){?>
|
| - |
|
175 |
<div>Free</div>
|
| - |
|
176 |
<?php } else{ ?>
|
| - |
|
177 |
<div> Rs <span><?php echo $shipingCharges; ?></div>
|
| - |
|
178 |
<?php } ?>
|
| 166 |
<div>Free</div>
|
179 |
<div>Free</div>
|
| 167 |
</div><!--add-ons-->
|
180 |
</div><!--add-ons-->
|
| 168 |
</div><!--order-summary-->
|
181 |
</div><!--order-summary-->
|
| - |
|
182 |
<?php $grandTotalPrice = $carts->totalPrice;
|
| - |
|
183 |
if(isset($discount) && $discount!=0){
|
| - |
|
184 |
$grandTotalPrice = $discountedPrice;
|
| - |
|
185 |
}
|
| - |
|
186 |
$grandTotalPrice = $grandTotalPrice + $shipingCharges
|
| - |
|
187 |
?>
|
| 169 |
<div class="gd-total clearfix">
|
188 |
<div class="gd-total clearfix">
|
| 170 |
<?php if(isset($discount) && $discount!=0){?>
|
189 |
<?php if(isset($discount) && $discount!=0){?>
|
| 171 |
<div>Total Price</div><div>Rs <?php echo $totalPrice;?></div>
|
190 |
<div>Total Price</div><div>Rs <?php echo $totalPrice;?></div>
|
| 172 |
<div class="discount">Discount</div><div class="discount">Rs <?php echo $discount;?></div>
|
191 |
<div class="discount">Discount</div><div class="discount">Rs <?php echo $discount;?></div>
|
| 173 |
<?php }?>
|
192 |
<?php }?>
|
| 174 |
<div>Grand total( <?php echo sizeof($carts->lines);
|
193 |
<div>Grand total( <?php echo sizeof($carts->lines);
|
| 175 |
if(sizeof($carts->lines) > 1){echo 'items )';} else {echo 'item )';}?></div>
|
194 |
if(sizeof($carts->lines) > 1){echo 'items )';} else {echo 'item )';}?></div>
|
| 176 |
<div>RS <?php if(isset($discount) && $discount!=0){echo $discountedPrice;} else {echo $carts->totalPrice;}?> </div>
|
195 |
<div>RS <?php echo $grandTotalPrice;?> </div>
|
| 177 |
</div><!--gd-total-->
|
196 |
</div><!--gd-total-->
|
| 178 |
<input type="hidden" id="hotSpot" name="hotspot" value=""/>
|
197 |
<input type="hidden" id="hotSpot" name="hotspot" value=""/>
|
| 179 |
<input class="procced-btn btn" type="button" name="submit" value="Proceed To Pay" onclick="validateInsurance(2)"/>
|
198 |
<input class="procced-btn btn" type="button" name="submit" value="Proceed To Pay" onclick="validateInsurance(2)"/>
|
| 180 |
</div><!--shipping-cont--->
|
199 |
</div><!--shipping-cont--->
|
| 181 |
</div><!--delivery-cont-->
|
200 |
</div><!--delivery-cont-->
|