Guest Posted February 17, 2005 Share Posted February 17, 2005 hello, i try to modif a contrib loworderfee.php for another use i want get a choice to user, yes and no radiobutton all ok, Total = ok if choice is no, total ok the modif appear to checkout_confirmation.php ok but, one bug, the loworderfee is always calculed in account_history_info.php and in order. the code : $percent=6.9; if ($lerf=(($percent / 100) * $order->info['subtotal'])) { /*if($lerf==2){ $lerf==3; } * if ($qty == '') $qty = '1'; * if($lerf==1){ $lerf==3; }*/ } if($_POST['radiobutton']=='orno') { $lerf=0; //$order->info['total']+=$lerf; } //$ot_loworderfee_calc_percent =$lerf; echo $lerf; //$tax = tep_get_tax_rate(MODULE_ORDER_TOTAL_LOWORDERFEE_TAX_CLASS, $order->delivery['country']['id'], $order->delivery['zone_id']); //$tax_description = tep_get_tax_description(MODULE_ORDER_TOTAL_LOWORDERFEE_TAX_CLASS, $order->delivery['country']['id'], $order->delivery['zone_id']); // $order->info['tax'] += tep_calculate_tax($lerf, $tax); // $order->info['tax_groups']["$tax_description"] += tep_calculate_tax($lerf, $tax); $order->info['total'] += $lerf + tep_calculate_tax($lerf, $tax); $this->output[] = array('title' => 'Assurance : '.$brou.'' , 'text' => $currencies->format(tep_add_tax($lerf, $tax), true, $order->info['currency'], $order->info['currency_value']), 'value' => tep_add_tax($lerf, $tax)); Please help me, i try during 3 days already sorry for my english, i french! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.