Need to Capture the Order after submit
Posted: Fri Oct 24, 2008 3:30 pm
Where exactly does the order get sent to the DB. I need to capture it and sent it to our Order Processing DB also.
http://forums.ablecommerce.com/
Not sure precisely what you mean by "where" other than the obvious. The order is stored during the checkout process. The checkout page code is located in the ~/ConLib/OnePageCheckout.ascx user control.BillEisenman wrote:Where exactly does the order get sent to the DB. I need to capture it and sent it to our Order Processing DB also.
I almost never go straight to the database. The CommerceBuilder data classes have alot of additional functionality that doesn't exist in the db.BillEisenman wrote:It is as I expected. I have already created stored procedures in the ac7 db to retrieve the information that I need. I still would rather get it live though. Do you think that AbleCommerce would allow me access to thee code for customization?
The basket is converted to an order in the PaymentForms (i.e. \Checkout\PaymentForms\CreditCardPaymentForm.ascx). It looks pretty easy to capture the order:BillEisenman wrote:Where exactly does the order get sent to the DB. I need to capture it and sent it to our Order Processing DB also.
Code: Select all
CheckoutResponse checkoutResponse = Token.Instance.User.Basket.Checkout(checkoutRequest);
if (checkoutResponse.Success)
{
// Insert code to capture order here [i.e. CaptureOrder(checkoutResponse.OrderId);]
if (CheckedOut != null) CheckedOut(this, new CheckedOutEventArgs(checkoutResponse.OrderId));
Response.Redirect(NavigationHelper.GetReceiptUrl(checkoutResponse.OrderId));
}