Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!
public function recalculate_totals(){
// TODO
$ot_subtotal = new Orderstotal();
$ot_subtotal->orders_id = $this->orders_id;
$ot_subtotal->class = Orderstotal::CLASS_SUBTOTAL;
$ot_subtotal->title = 'Zwischensumme:';
$ot_subtotal->value = $this->get_products_price_total_from_orders_products();
$ot_subtotal->text = number_format( $ot_subtotal->value, 2, ',', '' ). ' EUR';
//$ot_subtotal->save();
}