I have now found the body, I think, line 328 in the IF loop "ot_custom_".
Here is the sum plus the field together ot_custom_X.
} elseif ( (tep_not_null($ot_value)) && (tep_not_null($ot_title)) ) { // this modifies if (!strstr($ot_class, 'ot_custom')) { //3
$new_order_totals[] = array('title' => $ot_title,
'text' => $currencies->format($ot_value, true, $order->info['currency'], $order->info['currency_value']),
'value' => $ot_value,
'code' => 'ot_custom_' . $j,
'sort_order' => $j);
$order->info['total'] += $ot_value;
$written_ot_totals_array[] = $ot_class;
$written_ot_titles_array[] = $ot_title;
$j++;
} //end 3
But if I expand on the whole it nothing happens:
$order->info['total'] += $ot_value;
after add
$order->info['tax'] += $ot_value;
} elseif ( (tep_not_null($ot_value)) && (tep_not_null($ot_title)) ) { // this modifies if (!strstr($ot_class, 'ot_custom')) { //3
$new_order_totals[] = array('title' => $ot_title,
'text' => $currencies->format($ot_value, true, $order->info['currency'], $order->info['currency_value']),
'value' => $ot_value,
'code' => 'ot_custom_' . $j,
'sort_order' => $j);
$order->info['tax'] += $ot_value;
$order->info['total'] += $ot_value;
$written_ot_totals_array[] = $ot_class;
$written_ot_titles_array[] = $ot_title;
$j++;
} //end 3
Why not ghet :(
MFG