Page 1 of 1

Calling a web service after an order is placed

Posted: Sat Jul 12, 2008 5:41 am
by sashashev
Hi there,
Can anyone tell me what is the best place to put the following code?

I need to call a web service straight after an order is placed sending the order info to my supplier.
Alternatively if this not the right approach is there an event already being called that I should be listening for to call my web service code?

thx,
sasha
Webcoda, Web Development Sydney
http://www.webcoda.com.au

Re: Calling a web service after an order is placed

Posted: Mon Jul 14, 2008 9:31 am
by keats76
Take a look at the CheckedOut method in the OnePageCheckout.ascx.cs file ... I'm sure there are other ways to do this, but that's where I have some of my code.

Good luck!

Re: Calling a web service after an order is placed

Posted: Mon Jul 14, 2008 12:58 pm
by sohaib
There is a 'CheckedOut' event that is fired after the completion of checkout. You can either add your own event handler or modify the existing event handler for this event in ConLib\OnePageCheckout.ascx.cs

Easiest to just add your code to the existing event handler
void CheckedOut(object sender, CheckedOutEventArgs e) in OnePageCheckout.ascx.cs