Home Magento Customization, Magento Guide

Magento + .Net Framework, simple order preview app

16 September 2009 No Comment

Magento + .Net Framework, simple order preview app

For those of you who are into kinky stuff :) I made a simple, more of a proof of concept, application that sits in Widnows taskbar and shows the order info in balloon popup. Took me little more than half of hour to get this working. Almost forgot how great C# is :)

Magento has this great feature, rss feed for orders. You can access it via link http://myshopsite/rss/order/new. It requires authentication, so you need to provide Magento user and pass to access this link. Idea I wanted to play around was how to get this info in my windows app. It’s really, really simple. Below is the screenshot of this little app for you to see what I’m talking about.
simpleorderpreview-proofofconcept

And here is the application it self  simpleorderpreview and full source code (Visual Studio 2008 Express C#, entire solution project) acmnewproducts.

When you un-archive  files from simpleorderpreview there is only one thing you need to do prior to running .exe file. You need to open ACMNewProducts.exe.config and set username, password and url of your own Magento shop. That’s it. Now you can run the app.

One click on Magento icon inside the taskbar executes show order process, while double cliking the icon closes the application.

I will not go into the details in this post on how this works. Basicaly it’s simple XML parser. Most important part is the HTTP authentification, which you can see in code source code.

Hope you find this usefull, something to play with.

By Branko Ajzele from Inchoo.net

Related posts:

  1. Drupal to Magento integration, simple link tweak with multilingual site
  2. Add Adwords tracking code to order confirmation page in Magento
  3. Affiliates for all – Magento integration
  4. Making use of Magento getSingleton method
  5. Adding simple Tweet this for Magento products

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Spam Protection by WP-SpamFree

Security Code: