Programatically create customer and order in Magento with full blown “One Page Checkout” process under the hood | ActiveCodeline

Posted on March 4th, 2010 at 4:41 pm by admin

0


Its been a while since my last article. Figured I might write one before Google search punishes me :) -Recently I was working on a task that, among other things, required an order to be created programatically alongside with the customer and its billing and shipping address. Example I will demonstrate is just one way of doing things. If you have extra time on your hands, feel free to trace the code for more elegant solution.

For starters, lets create a customer and establish a login session right away for this newly created customer. Here is the code sample that does just that.

via Programatically create customer and order in Magento with full blown “One Page Checkout” process under the hood | ActiveCodeline.