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
Calling a web service after an order is placed
Calling a web service after an order is placed
Last edited by sashashev on Mon Jul 14, 2008 6:24 pm, edited 1 time in total.
Re: Calling a web service after an order is placed
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!
Good luck!
Re: Calling a web service after an order is placed
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
Easiest to just add your code to the existing event handler
void CheckedOut(object sender, CheckedOutEventArgs e) in OnePageCheckout.ascx.cs