Page 1 of 1

Custom redirect on Receipt Page

Posted: Tue Dec 08, 2009 8:53 am
by vieodesign
Is there a way to create a custom receipt page that will allow a redirect link or a refresh redirect timeout so we can assign each custom receipt page based on a product or other way? Most of our orders will be for a single product (ie an online course) and when they are done, we want to redirect the visitor to a new page with product information specific to the product they have ordered. Any ideas?

TIA,

Rob
Vieo Design

Re: Custom redirect on Receipt Page

Posted: Tue Dec 08, 2009 8:59 am
by mazhar
Yes possible. You need to handle this in CheckedOut method of ConLib/OnePageCheckout.ascx.cs file. You can check the order items of newly placed order there and then depending upon order item you can redirect user to your desired page instead of Receipt page by simply using redirect statement like

Code: Select all

Response.Redirect("Your Desired URL Here");

Re: Custom redirect on Receipt Page

Posted: Tue Dec 08, 2009 11:25 am
by vieodesign
Excellent, thanks Mazhar.

Just curious, can we also redirect them to a custom webpage created in AC that has the receipt info AND our custom info for that particular product?

Re: Custom redirect on Receipt Page

Posted: Wed Dec 09, 2009 1:42 am
by mazhar
Yep you can. All you need is a valid URL and redirect statement will redirect the customer to provided URL. You can pass extra parameters in query string. For example if you have a dynamic page that loads and shows product data and can work for a number of products. In this case all you need is to pass ProductId which you will get from order item in query string something like

Code: Select all

http://yourstore.xyz/webpage.aspx?webpageid=1&ProductId=333
In this example URL I assumed that your are using AbleCommerce WebPage feature.