ob_start(); ini_set('display_erro','off'); include("settings/db_ini.php"); session_start(); $browsessionid=session_id(); $sessionid_free=$_SESSION["user_id"]; $qua=$_REQUEST['qua']; $quafree=$_REQUEST['quafree']; $menuid=$_REQUEST['menuid']; $prodprice=$_REQUEST['product_price']; $totprice=$qua * $prodprice; $malu_id=$_REQUEST['del_id_mal']; //get the cureent offer units $get_user = mysql_query("select * from shop_user where user_id='$sessionid_free'"); $set_user = mysql_fetch_array($get_user); $new_status = $set_user['new_status']; $get_prod_id = mysql_query("select * from shop_cart_admin where id='$menuid'"); $set_prod_id = mysql_fetch_array($get_prod_id); $get_product = mysql_query("select * from shop_product where product_id = '".$set_prod_id['productid']."'"); $set_product = mysql_fetch_array($get_product); $offer_unit = $set_product['offer_unit']; if($new_status==1) { if($offer_unit=="2+1") { $v_qty=($qua/2); } if($offer_unit=="4+1") { $v_qty=($qua/4); } $x = (int)$v_qty; } else { $x=0; } if($qua==0) { $Delete_Question = "DELETE FROM shop_cart_admin WHERE id='$menuid' "; //$Result_Question = mysql_query($Delete_Question); } if($malu_id!="") { $Delete_Question = "DELETE FROM shop_cart_admin WHERE id='$malu_id' "; //$Result_Question = mysql_query($Delete_Question); } else { $Updatecart = "UPDATE shop_cart_admin SET `qty_free`='$x' WHERE id='$menuid' "; $Recart = mysql_query($Updatecart); $browsessionid=$_REQUEST['browsessionid']; } $Query_jobmal = mysql_query("SELECT id from shop_cart_admin where session_id='$browsessionid' "); $qty=mysql_num_rows($Query_jobmal); $objqrynewsubee = "SELECT SUM(totprice) AS amtTotal FROM shop_cart_admin where session_id='$browsessionid'"; $objResultnewsubee = mysql_query($objqrynewsubee); $Fetchnewww = mysql_fetch_array($objResultnewsubee); $subtotal=$Fetchnewww['amtTotal']; $dis_amount=0; ?> $objitem = mysql_query("SELECT * from shop_user where user_id='$sessionid_free'"); $Fetitem = mysql_fetch_array($objitem); $cust_id=$Fetitem['user_id']; $new_status=$Fetitem['new_status']; $country=$Fetitem['country']; $new_sataus=$Fetitem['new_status']; $new_state=$_REQUEST['state']; $_REQUEST['dif_cuntry']; ?>
Product | Total | |
---|---|---|
echo $resmenu['name'].' '.$resmenu['product_url'];?> x if($x>0) { ?> echo $qty;?> } ?> if($x>0) { ?>( } ?> echo $qty;?> if($x>0) { ?>+ $x;?> Free } ?> ) | } else { ?>echo $resmenu['name'].' '.$resmenu['product_url'];?> x echo $productprice;?>.00 $qty;?> | } ?>
|
Cart Total | echo $subtotal;?> | |
Weight | $int_weight=($tot_weight_2/1000); ?> echo sprintf('%0.1f', $int_weight);?>kg | |
Shipping & Packing Charges | echo $new_kilo_4=((($new_kilo_6+1)*$courier_fees)+$packing_charges);?>.00 | |
Order Total ( Inclusive of GST ) | $massss=$subtotal+$new_kilo_4;?> echo sprintf('%0.2f', $massss);?> |