Using the provided AbleCommerce API, is there a way to subscribe to certain events like Order Placed, Order Paid, etc. and add extra logic when these specific events are fired?
Thanks!
Consuming Events
Wow could I use THAT feature!
(insert programmers drool)
(insert programmers drool)
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
OrderStatusChanged Event
Yes! Wouldn't it be nice to have a global OrderStatusChanged event that could be consumed from any location within the project that passes the status as a property on the EventArgs. AbleCommerce -- (Hint...Hint). Here's a little code snippet that if added to the Order class could provide this functionality.
I did notice that all of the payment forms have two events that can be consumed during the checkout process. CheckingOut and CheckedOut. CheckingOut can be used to perform logic before an actual checkout occurs and CheckOut after checkout occurs. To make things a little cleaner and more managable, I would have defined these events in a parent class (masterpaymentform.cs) and inherited this class from the other payment forms. I had to redefine the events in a new payment form that I wrote to provide loyalty points functionality. Nonetheless, I've really enjoyed working with AbleCommerce and have been able to add on just about anything without source code like anonymous checkout and loyalty points. It's a very customizable platform. Thanks!
Code: Select all
public static EventHandler<OrderStatusEventArgs> OrderStatusChanged;
private void OnOrderStatusChanged(object sender, OrderStatusEventArgs e)
{
if (OrderStatusChanged != null)
{
OrderStatusChanged(sender, e);
}
}
I did notice that all of the payment forms have two events that can be consumed during the checkout process. CheckingOut and CheckedOut. CheckingOut can be used to perform logic before an actual checkout occurs and CheckOut after checkout occurs. To make things a little cleaner and more managable, I would have defined these events in a parent class (masterpaymentform.cs) and inherited this class from the other payment forms. I had to redefine the events in a new payment form that I wrote to provide loyalty points functionality. Nonetheless, I've really enjoyed working with AbleCommerce and have been able to add on just about anything without source code like anonymous checkout and loyalty points. It's a very customizable platform. Thanks!
Doesn't ANYONE program in VB around here? 

Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
- jmestep
- AbleCommerce Angel
- Posts: 8164
- Joined: Sun Feb 29, 2004 8:04 pm
- Location: Dayton, OH
- Contact:
{ no;
}
}
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx
HAR HAR HAR!
GOSUB WhereImAppreciated
GOSUB WhereImAppreciated
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com