Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

DotNetNuke Marketplace
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
WebHostForAsp.net
 


  Sponsors  

Meet Our Sponsors

eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Store Module [L...  ORDER HISTORY
Previous Previous
 
Next Next
New Post 4/1/2008 5:20 AM
User is offline Prasad Maduranga
24 posts
10th Ranked


Re: ORDER HISTORY 

please let me know allan how can i change the status Processing to awaiting payment as the default status.Please i am waiting for a reply.this has been a critical error

tnx,
Prasad.

 
New Post 4/1/2008 8:14 PM
User is offline Sid Chaudhari
118 posts
www.umaisa.com
9th Ranked


Re: ORDER HISTORY 

Prasad, the default state is hard coded in store core code in file checkout.ascx.cs at line 713. In this file at line 713 you will find following code snippet:

orderController.UpdateOrder(_orderInfo.OrderID, System.DateTime.Now,
"",
m_ShippingAddressID,
m_BillingAddressID,
_orderInfo.Tax,
_orderInfo.ShippingCost,
true,
1,
UserId);

In above code snippet the number "1" is nothing but the "Order Status" parameter. It is here where the default order status is set. If you change this "1" to "2", it will change the default "Order Status" to "Awaiting Payment" whenever a new order is created. The updated code should be as follows:

orderController.UpdateOrder(_orderInfo.OrderID, System.DateTime.Now,
"",
m_ShippingAddressID,
m_BillingAddressID,
_orderInfo.Tax,
_orderInfo.ShippingCost,
true,
2,
UserId);

However, you have to understand what risk this change brings to you. Consider a scenario where your visitor makes a purchase and goes to paypal and executes the payment and DOES NOT OPT TO COME BACK TO YOUR WEBSITE. In this case the order status will not be updated to "Paid" it will still be "Awaiting Payment"; this is so because the store updates the order status to Paid when the visitor comes back from Paypal back to store website. If the visitor does not return to your website from paypal then the order default status prevalis.

Ofcourse, not to mention once you make above code change you will have to compile the store project and create the new dll.

Hope above helps,

Sincerely,


www.umaisa.com support@umaisa.com
 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Store Module [L...  ORDER HISTORY
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


T-WORX, INC.
Professional DotNetNuke Solutions
www.t-worx.com
AppTheory
Professional development for medium to large projects based on the DotNetNuke platform.
www.apptheory.com
OnyakTech
Modules for Help Desks, Live Chat, Project Management, CRM, Charting, Reporting, Scrolling Text/Images, Portal Community tools and much more.
www.OnyakTech.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP