I know that Able Commerce has event driven notifications that send out emails. (i.e., Order Shipped, Payment Capture Failed, etc). I'm wondering if there is a similar notification that would call a web service to perform a certain task. For instance, once an order is place, an event will fire off a web service (identified in the web.config file or something). That web service can be written to pretty much do anything you want. Fire off some code that talks with a fulfillment center, etc...
Does this functionally exist?
Thanks
Event Notifications
Re: Event Notifications
AbleCommerce back end makes use of these events internally and don't expose a way to register them in order to fire custom code against them. If you want to fire your custom code order is placed then there is another place which can be used for this purpose. You can register the Checkout/PaymentForms/CreditCardPaymentForm control's CheckedOut event and fire your code against that event.
Re: Event Notifications
K...I've looked around, and can't find information on how to get started looking for registering the Checkout/PaymentForms/CreditCardPaymentForm control's Checkout.
Can you point me to any documentation explaining this?
Thanks
Can you point me to any documentation explaining this?
Thanks
Re: Event Notifications
Edit the ConLib/OnPageChekcout.ascx.cs class and add a custom handler as below
Now register this custom handler with the CreditCard payment form control. For this locate the following line in the ConLib/OnPageChekcout.ascx.cs file.
and make it look like
Now when ever an order will be place by customer your custom handler will be notified about that and making the newly placed order id available to you.
Code: Select all
protected void MyCustomHandler(Object sender, CheckedOutEventArgs e)
{
//Your custom code here, you can get the Order Id from the event args like e.OrderId
}
Code: Select all
cardPaymentForm.ValidationSummaryVisible = false;
Code: Select all
cardPaymentForm.ValidationSummaryVisible = false;
cardPaymentForm.CheckedOut += new CheckedOutEventHandler(MyCustomHandler);