Netismine

Work

Create customer and order from XML

This was a part of much larger project I’m doing custom developmnet on, but it was the scariest part! I had to develop a system that would accept an XML file containing customer and shopping cart data, and convert that to a regular Magento order with regular Magento customer, as if someone actually browsed the website, created a cart and then went through normal checkout. I first had to create shopping cart, fill it with products, then create a customer (if supplied one doesn’t already exist), add addresses, and after all that, initiate and complete the checkout process. Whew. To complete the process, luckily, one can use the onestep checkout functionality instead of admin order creation described by Inchoo here, but there are still bumps. The trick is to try and simulate regular Magento’s (browser) onestep checkout process as much as possible.

No comments yet

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">