Custom redirect on Receipt Page

Store UI, layout, design, look and feel; Discussion on the customer facing pages of your online store. Cascading Style Sheets, Themes, Scriptlets, NVelocity and the components in the ConLib directory.
Post Reply
vieodesign
Ensign (ENS)
Ensign (ENS)
Posts: 9
Joined: Tue Dec 08, 2009 8:50 am

Custom redirect on Receipt Page

Post by vieodesign » Tue Dec 08, 2009 8:53 am

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

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Custom redirect on Receipt Page

Post by mazhar » Tue Dec 08, 2009 8:59 am

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

vieodesign
Ensign (ENS)
Ensign (ENS)
Posts: 9
Joined: Tue Dec 08, 2009 8:50 am

Re: Custom redirect on Receipt Page

Post by vieodesign » Tue Dec 08, 2009 11:25 am

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?

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: Custom redirect on Receipt Page

Post by mazhar » Wed Dec 09, 2009 1:42 am

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.

Post Reply