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
Custom redirect on Receipt Page
-
- Ensign (ENS)
- Posts: 9
- Joined: Tue Dec 08, 2009 8:50 am
Re: Custom redirect on Receipt Page
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");
-
- Ensign (ENS)
- Posts: 9
- Joined: Tue Dec 08, 2009 8:50 am
Re: Custom redirect on Receipt Page
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?
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
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
In this example URL I assumed that your are using AbleCommerce WebPage feature.
Code: Select all
http://yourstore.xyz/webpage.aspx?webpageid=1&ProductId=333