Page 1 of 1

Redirect to a custom page on successful order

Posted: Mon Mar 02, 2009 12:00 pm
by aa@ilogon.com
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?)

Re: Redirect to a custom page on successful order

Posted: Mon Mar 02, 2009 1:52 pm
by nickc
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";
    }

Re: Redirect to a custom page on successful order

Posted: Fri Mar 06, 2009 5:28 pm
by aa@ilogon.com
Thanks Nick! That worked for us.