Commerce 1 create a new order programmatically How can this be done in PHP?  I can't find anything in the docs.
To add orders programmatically, you can do so by using the Commerce_OrderModel class.

Like so:

$order = new Commerce_OrderModel();
$order-&gt;email = 'test@example.com';

// Add your products here and other order info...
// .................

$success = craft()-&gt;commerce_orders-&gt;saveOrder($order);