Calling a web service after an order is placed

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
sashashev
Ensign (ENS)
Ensign (ENS)
Posts: 4
Joined: Wed Jul 09, 2008 10:00 pm

Calling a web service after an order is placed

Post by sashashev » Sat Jul 12, 2008 5:41 am

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
Last edited by sashashev on Mon Jul 14, 2008 6:24 pm, edited 1 time in total.

keats76
Commander (CMDR)
Commander (CMDR)
Posts: 117
Joined: Sat Dec 15, 2007 4:45 pm

Re: Calling a web service after an order is placed

Post by keats76 » Mon Jul 14, 2008 9:31 am

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!

User avatar
sohaib
Developer
Developer
Posts: 1079
Joined: Fri Jan 23, 2004 1:38 am

Re: Calling a web service after an order is placed

Post by sohaib » Mon Jul 14, 2008 12:58 pm

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

Post Reply