Magento Programatically Create Order

Posted on January 4, 2016
Written by

The below script is used to pragmatically create an order in Magento. Most of the time I run this script to ensure that observers are called on order create. This save you having to create new orders in the admin or frontend of Magento which can be tedious and time consuming when debugging.

Usage :

Name the file create_order.php and place in the Magento root of your install. You can visit in browser or run from your Command Line Interface.