Redirect to a custom page on successful order

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
aa@ilogon.com
Ensign (ENS)
Ensign (ENS)
Posts: 16
Joined: Fri Jan 16, 2009 11:20 pm

Redirect to a custom page on successful order

Post by aa@ilogon.com » Mon Mar 02, 2009 12:00 pm

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?)

User avatar
nickc
Captain (CAPT)
Captain (CAPT)
Posts: 276
Joined: Thu Nov 29, 2007 3:48 pm

Re: Redirect to a custom page on successful order

Post by nickc » Mon Mar 02, 2009 1:52 pm

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";
    }

aa@ilogon.com
Ensign (ENS)
Ensign (ENS)
Posts: 16
Joined: Fri Jan 16, 2009 11:20 pm

Re: Redirect to a custom page on successful order

Post by aa@ilogon.com » Fri Mar 06, 2009 5:28 pm

Thanks Nick! That worked for us.

Post Reply