How can this be done in PHP? I can't find anything in the docs.
1 Answer
To add orders programmatically, you can do so by using the Commerce_OrderModel
class.
Like so:
$order = new Commerce_OrderModel();
$order->email = '[email protected]';
// Add your products here and other order info...
// .................
$success = craft()->commerce_orders->saveOrder($order);