an ASP.NET Open Source CMS & eCommerce platform
Search:
Skip Navigation LinksHome > DotShoppingCart Forums > Support > Using DotShoppingCart > where does the order get created?
Last Post 1/25/2010 11:27:36 AM By lukezy. 1 replies.
1/25/2010 11:13:35 AM
bansal_db
Posts: 181
Joined: 4/13/2009
where does the order get created?
Hey Luke,
 
I found the call to the function Submit Order on onepagecheckout.ascx.cs but i couldn't find the code for this function.
 
SubmitOrder(email, paymentOption.CheckoutPaymentType, paymentOption.CreditCard, paymentOption.BillingAddress);
 
 
Is it possible to modify SubmitOrder to add one more field? I want to add a notes/instructions section on checkout.ascx where customer can enter special instructions for the order and that note would be added to dsc_order_note for that order.
 
I was thinking to either to modify the parameters in SubmitOrder to have one more for note or have SubmitOrder return orderid to the page and then i can call the Order.AddNote function to add note to the order.
 
What do you think is the best way to do that?
 
Thanks
-D
1/25/2010 11:27:36 AM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: where does the order get created?
The code is delievered in CheckoutUserControl.cs which you can find in the core component source code. Yes, your solution seems fine to me.
DotShoppingCart Staff