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']; $menuid=$_REQUEST['menuid']; $prodprice=$_REQUEST['product_price']; $totprice=$qua * $prodprice; $malu_id=$_REQUEST['del_id_mal']; 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`='$qua',`totprice`='$totprice' 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=$_REQUEST['country']; $new_sataus=$Fetitem['new_status']; $new_state=$_REQUEST['state']; $new_country=$_REQUEST['country']; ?> if($new_country=="India") { ?>
Product | Total | |
---|---|---|
echo $resmenu['name'];?> x if($x>0) { ?> echo $qty;?> } ?> if($x>0) { ?>( } ?> echo $qty;?> if($x>0) { ?>+ $x;?> Free } ?> ) | } else { ?>echo $resmenu['name'];?> x echo $productprice;?>.00 $qty;?> | } ?>
|
Cart Total | echo $subtotal;?> | |
Weight | echo $new_kilo_41=($tot_weight_2/1000);?> | |
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);?> |
Product | Totala | |
---|---|---|
echo $resmenu['name'];?> x if($x>0) { ?> echo $qty;?> } ?> if($x>0) { ?>( } ?> echo $qty;?> if($x>0) { ?>+ $x;?> Free } ?> ) | } else { ?>echo $resmenu['name'];?> x echo $productprice;?> $qty;?> | } ?>
|
Cart Total | echo $subtotal;?> | |
Weight | echo $new_kilo_41=($tot_weight_2/1000);?> | |
Shipping&Packing Charges |
if($country=="India")
{
?>
echo $new_kilo_4=(($new_kilo_6+1)*$courier_fees);?>.00
}
else
{
$tot_weight_2_int=$tot_weight_2;
$Query_job_move_courier_country= mysql_query("SELECT * from tbl_courier_charges_country where state='$country' ");
$row_job_move_courier_country= mysql_fetch_array($Query_job_move_courier_country);
$num_max_ship_int=mysql_num_rows($Query_job_move_courier_country);
if($num_max_ship_int>0)
{
$courier_fees_country=$row_job_move_courier_country['amount'];
$courier_fees_country_extra=$row_job_move_courier_country['additional_amount'];
}
else
{
$Query_job_move_courier_country= mysql_query("SELECT * from tbl_courier_charges_country where state='Others' ");
$row_job_move_courier_country= mysql_fetch_array($Query_job_move_courier_country);
$courier_fees_country=$row_job_move_courier_country['amount'];
$courier_fees_country_extra=$row_job_move_courier_country['additional_amount'];
}
if($tot_weight_2_int<=500)
{
$courier_fees_country_1=$courier_fees_country;
}
else
{
$tot_weight_2_int_1=($tot_weight_2_int-500);
$tot_weight_2_int_1_2=($tot_weight_2_int_1/250);
$new_kilo_5_int = explode('.',$tot_weight_2_int_1_2);
$new_kilo_6_int=$new_kilo_5_int[0];
$new_kilo_6_int_7=($new_kilo_6_int+1);
$new_kilo_6_int_7_8=($courier_fees_country_extra*$new_kilo_6_int_7);
$courier_fees_country_1=($courier_fees_country+$new_kilo_6_int_7_8);
}
?>
$new_kilo_4=($courier_fees_country_1*75);?> echo sprintf('%0.2f', $new_kilo_4);?>
}
?>
|
|
Order Total ( Inclusive of GST ) | if($country=="India") { ?> $mass= $subtotal+$new_kilo_4;?> echo sprintf('%0.2f', $mass);?> } else { ?> $massss=($new_price+($courier_fees_country_1*75));?> echo sprintf('%0.2f', $massss);?> } ?> |