$products_price = $xtPrice->xtcGetPrice($order_products['products_id'], $format = false, '', '', $p_price, '', $order->customer['ID']); $final_price = $xtPrice->xtcGetPrice($order_products['products_id'], $format = false, '', '', $f_price, '', $order->customer['ID']); } $sql_data_array = array('products_price' => xtc_db_prepare_input($products_price), 'final_price' => xtc_db_prepare_input($final_price)); xtc_db_perform(TABLE_ORDERS_PRODUCTS, $sql_data_array, 'update', 'orders_products_id = \'' . (int) $order_products['orders_products_id'] . '\''); } // Produkte Ende // OT $order_total_query = xtc_db_query("select orders_total_id, value from " . TABLE_ORDERS_TOTAL . " where orders_id = '" . (int) $_POST['oID'] . "'"); while ($order_total = xtc_db_fetch_array($order_total_query)) { if ($old_curr['code'] == DEFAULT_CURRENCY) { $xtPrice = new xtcPrice($curr['code'], $order->info['status']); $value = $xtPrice->xtcGetPrice('', $format = false, '', '', $order_total['value'], '', $order->customer['ID']); } else { $xtPrice = new xtcPrice($old_curr['code'], $order->info['status']); $nvalue = $xtPrice->xtcRemoveCurr($order_total['value']); $xtPrice = new xtcPrice($curr['code'], $order->info['status']); $value = $xtPrice->xtcGetPrice('', $format = false, '', '', $nvalue, '', $order->customer['ID']); } $text = $xtPrice->xtcFormat($value, true); $sql_data_array = array('text' => $text, 'value' => xtc_db_prepare_input($value)); xtc_db_perform(TABLE_ORDERS_TOTAL, $sql_data_array, 'update', 'orders_total_id = \'' . (int) $order_total['orders_total_id'] . '\''); } // OT Ende xtc_redirect(xtc_href_link(FILENAME_ORDERS_EDIT, 'edit_action=other&oID=' . (int) $_POST['oID'])); } // Währungswechsel Ende // Löschfunktionen Anfang: // Löschen eines Artikels aus der Bestellung Anfang: if ($action == 'product_delete') { xtc_db_query("delete from " . TABLE_ORDERS_PRODUCTS_ATTRIBUTES . " where orders_products_id = '" . (int) $_POST['opID'] . "'");