When a user places an order on our site, we want to redirect to a custom page we created rather than the receipt page. I don't care if the receipt page loads then redirects or is bypassed completely. The requirement is for the user to end up on the custom page after a successful order.
Any idea how we might do this? We would prefer not to code around the current system. (i.e. is there a feature or edit to an existing page that doesn't completely change the flow?)
Redirect to a custom page on successful order
-
- Ensign (ENS)
- Posts: 16
- Joined: Fri Jan 16, 2009 11:20 pm
Re: Redirect to a custom page on successful order
App_Code\NavigationHelper.cs is an easy way to intervene:
Code: Select all
public static string GetReceiptUrl(int orderId)
{
// return string.Format("~/Checkout/Receipt.aspx?OrderId={0}", orderId);
return "MyCustomPage.aspx";
}
Nick Cole
http://www.ethofy.com
http://www.ethofy.com
-
- Ensign (ENS)
- Posts: 16
- Joined: Fri Jan 16, 2009 11:20 pm
Re: Redirect to a custom page on successful order
Thanks Nick! That worked for us.