No | PRODUCT X QTY | OFFER | MRP | AMOUNT | ADD-AMOUNT | TOTAL |
---|
0){ $free_id=$set_main['id']; break; } } if($free_id !=''){ // header("Location: dashboard.php?user_id=$userId&status=$status"); header("Location: edit_order.php?order_id=$free_id"); exit; } // The abvoe end here if($_REQUEST['ref_no'] == ''){ $ref_no = ''; }else{ $ref_no = $_REQUEST['ref_no']; } $get_sum = mysqli_query($conn, "select sum(price * qty) as tot_price from tbl_dealer_ef_temp where dealer_id='".$_SESSION['dealer_id']."'"); $check_rows = mysqli_num_rows($get_sum); $set_sum = mysqli_fetch_array($get_sum, MYSQLI_ASSOC); if(isset($set_sum['tot_price'])){ $tot_price = $set_sum['tot_price']; $tot_price = $set_sum['tot_price']; $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => 'https://drganbuganapathi.com/dealer/php/calc_quote_weight.php', CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => '', CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => 'POST', CURLOPT_POSTFIELDS => 'dealer_id='.$_SESSION['dealer_id'], CURLOPT_HTTPHEADER => array( 'Content-Type: application/x-www-form-urlencoded' ), )); $response = curl_exec($curl); curl_close($curl); $result = json_decode($response, TRUE); $weight = $result['weight']; }else{ $tot_price = '0'; $weight = 0; } $disc_arr = array(); $get_user = mysqli_query($conn, "SELECT user_id FROM shop_user WHERE new_status=1 and discount !=''"); $check_disc_rows = mysqli_num_rows($get_user); if($check_disc_rows > 0) { while ($set_user = mysqli_fetch_assoc($get_user)){ array_push($disc_arr, $set_user['user_id']); } } $arr = array("11363"); if(in_array($_SESSION['dealer_id'], $disc_arr)){ ?>
No | PRODUCT X QTY | OFFER | MRP | AMOUNT | ADD-AMOUNT | TOTAL |
---|
No | PRODUCT X QTY + OFFER | OFFER | MRP | AMOUNT | ADD-AMOUNT | TOTAL |
---|
No | PRODUCT X QTY | OFFER | MRP | AMOUNT | ADD-AMOUNT | TOTAL |
---|