Copy Orders
for osCommerce Online Merchant v2.2
Copy orders simply duplicates an existing order.
We needed this features to ship particial orders etc.
Install is most easy: Just copy the file into the admin directory. Whereever you want, make a link that calls the order-copy.php with the original order-id..... <a href="order-copy.php?oID=1">.. for example. ... Or you can call it manually .. whatevery you want - very easy! No change of other files needed. I just wanted to keep it simplest.
German:
Kopiert Bestellungen im Admin.
Alles was man machen muss ist die Datei ins Admin Verzeichnis zu kopieren und irgendwo in der orders.php einen Link zu machen, der die "original-order-id" enthält platzieren:
also so wie: <a href="orders_copy.php?oID=1"> ... Direktaufruf was auch immer man will -- ich wollte es eben super einfach halten.
Legend: 
Download

Report
Beim Kopieren einer Bestellung wurde das Originaldatum übernommen, dies wurde geändert, sodass eine kopierte Bestellung das aktuelle Datum hat.
Die Funktion kann mit dem Auskommentieren der folgenden Zeile auch wieder deaktiviert werden:
// tep_db_query("UPDATE " . TABLE_ORDERS . " SET date_purchased = NOW() WHERE orders_id = '".$insert_id."'");
Es wurde eine Abfrage eingebaut, sodass eine Fehlermeldung ausgegeben wird, wenn die Rechnung welche kopiert werden soll, nicht gefunden wird.
Desweiteren wurde die Ausgabe optisch angepasst.
Installation:
Die copy-orders.php in das Admin-Verzeichnis des Shops kopieren und nach belieben einbinden. Um eine Rechnung zu kopieren muss der Aufruf folgendermaßen ausschauen: copy-orders.php?oID=DATENBANKID_DER_ORIGINALRECHNUNG
Sorry . .. wrong version before.. comment out this line:
// $orders_array['orders_type'] = 'A';
.. this makes trouble if the order_type contrib isn't installed..
This is all .. only little fix i forgot when i tried to make the file useful for public.
Copy orders simply duplicates an existing order.
We needed this features to ship particial orders etc.
Install is most easy: Just copy the file into the admin directory. Whereever you want, make a link that calls the order-copy.php with the original order-id..... <a href="order-copy.php?oID=1">.. for example. ... Or you can call it manually .. whatevery you want - very easy! No change of other files needed. I just wanted to keep it simplest.
German:
Kopiert Bestellungen im Admin.
Alles was man machen muss ist die Datei ins Admin Verzeichnis zu kopieren und irgendwo in der orders.php einen Link zu machen, der die "original-order-id" enthält platzieren:
also so wie: <a href="orders_copy.php?oID=1"> ... Direktaufruf was auch immer man will -- ich wollte es eben super einfach halten.