an ASP.NET Open Source CMS & eCommerce platform
Search:
Skip Navigation LinksHome > DotShoppingCart Forums > Support > DotShoppingCart Suite > Control the redirected page after "Submit ...
Last Post 6/20/2008 5:22:03 PM By lukezy. 6 replies.
6/20/2008 4:05:08 PM
LOLIU
Posts: 22
Joined: 5/28/2008
Control the redirected page after "Submit Order"

Hi,

I am working on a online store website. I need to navigate the page to my own defined page after submitting an order by clicking "Submit Order" button. Can you tell me how to change the code to realize this. Currently, the page is redirected to "Checkoutcomplete.aspx" page.

Thanks,

Louis

6/20/2008 4:28:41 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Control the redirected page after "Submit Order"

Can you tell me why you need a different page rather than checkoutcomplete.aspx? Can you put the stuff that you need into checkoutcomplete.aspx?

DotShoppingCart Staff
6/20/2008 4:41:27 PM
LOLIU
Posts: 22
Joined: 5/28/2008
Re: Control the redirected page after "Submit Order"

The user asked me to use totally different layout for the online store. So that I have to define my own master page for almost all of the pages including "CheckoutComplete" page. Actually, I am still using "Checkoutcomplete" user control, but I need to create another page "Checkoutcomplete.aspx" that uses my own master instead of just using your "Checkoutcompete.aspx" page. I put your user control into my page, but from Checkout page, I can not find the code where redirect to "Checkoutcomplete.aspx" page.

6/20/2008 4:44:10 PM
LOLIU
Posts: 22
Joined: 5/28/2008
Re: Control the redirected page after "Submit Order"

Luke,

Could you please give me a call at 510-668-5125 if you still don't get my question? it's a kind of urgent. I have to figure it out by this weekend.

Thanks,

6/20/2008 4:51:47 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Control the redirected page after "Submit Order"

I don't think using your own master page is a wise decision. The current architecture allows you to create completely customzied layout. What you need to do is just adding customized usercontrols to the master blocks.

The redirect code is buried in the core business component dll. If you want to go with your own version of master page, remove the following line from module.config, which has the url redirect entries.

<add name="CheckoutComplete" blockTypeId="28" isSecure="true" directLinkDisabled="true" />

And then create your own Web\Store\CheckoutComplete.aspx file.

DotShoppingCart Staff
6/20/2008 5:13:14 PM
LOLIU
Posts: 22
Joined: 5/28/2008
Re: Control the redirected page after &quot;Submit Order&quot;

Luke,

Thanks a lot.

It works now. Acutally, I would not like to but our users hire a Graphics Design company to design a their own layout. I don't know how to define my own user controls to reach their aim.

Louis

6/20/2008 5:22:03 PM
lukezy
Posts: 2109
Joined: 6/12/2007
Location:WA, US
Re: Control the redirected page after &quot;Submit Order&quot;

If it's just a layout, then things are even simplier. I guess they are bunch of static html tags. Create html boxes in the master blocks and paste in the html tags. That's all. You don't need user controls at all.

DotShoppingCart Staff