WebStore OrderDetail Page

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
6/14/2012 10:21:14 AM
Gravatar
Total Posts 49
TRIAD/Next Level Interactive

WebStore OrderDetail Page

Hello,

I looked around but couldn't find any related posts/articles that talked about the OrderDetail.aspx page much.

Questions:

1-I have configured PayPal to redirect a purchaser to a specific page (ie: website.com/ThankYou.aspx) within the site once they make a payment. However, the user is still directed to the OrderDetail.aspx page. How can I change this?

2-If there's no way to change this redirect above, what are the customization option of the OrderDetail.aspx page?

Thanks,

John

6/14/2012 2:44:25 PM
Gravatar
Total Posts 18439

Re: WebStore OrderDetail Page

Hi John,

If there was support for customization of the order detail page, what would that look like, what exactly would you like to be able to do there?

Best,

Joe

6/14/2012 2:52:33 PM
Gravatar
Total Posts 49
TRIAD/Next Level Interactive

Re: WebStore OrderDetail Page

Hi Joe,

Not sure if it's possible, but the ability to add a module (html, form wizard) to that page would be great.

We're using PayPal standard as a gateway and an issue we're running into is PayPal doesn't allow custom fields to be added to their checkout form.

For example, our client is using the webstore to sell registration for classes. So parents who are registering their child for a class have nowhere to enter the childs name and other info. If we had a form on the OrderDetail page, that would allow our client to capture the info they need for the class registration.

Let me know if this makes sense.

Thanks!
John

6/19/2012 9:39:00 AM
Gravatar
Total Posts 49
TRIAD/Next Level Interactive

Re: WebStore OrderDetail Page

Hi Joe,

Any other thoughts on this?

Simply setting up a 301 redirect  /OrderDetail.aspx to /Thank-You.aspx could work, no?

Thanks,
John

6/19/2012 9:59:02 AM
Gravatar
Total Posts 18439

Re: WebStore OrderDetail Page

Hi John,

We are passing the return url to paypal so that it returns to our PDT handler which processes the order and then redirects to the order confirmation page. I don't think a 301 redirect would be a good idea because that is a permanent redirect. Keep in mind that the link to the order detail page also appears in the user profile under order history.

We do have a plugin system that allows developers to implement an order completed handler to execute code after the payment has cleared. However I don't think it would be a good idea to put code there that forces a redirect because that can also fire from the IPN handler which happens by a server to server post from paypal that doesn't involve the user or his web browser.

About the only easy thing I can think of to accommodate you is I could add a web.config setting where you could put an override url and if that setting is a string we could return that instead of the url to the order detail. Maybe that would meet your needs but it seems like a strange solution to me since that ThankYou page is going to be the same for all users and not really have any order detail at all.

I think a better solution is to either implement an order completed event handler that sends a an extra email with a request for more info and a link to the page where they can enter the info, or using a custom message template for the main order confirmation email that includes a link to the page where you collect the additional info.

Best,

Joe

6/19/2012 10:07:01 AM
Gravatar
Total Posts 2240

Re: WebStore OrderDetail Page

Hi John,

I wouldn't set up a 301 redirect, I would create a 307 redirect in the web.config file. Reason is, 301 redirects are permanent and 307 redirects are temporary. Browsers cache 301 redirects and it is often times very difficult to clear them from cache. 

To make this work, add a web.config file to /WebStore and add the following to the file. 

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <location path="OrderDetail.aspx">
        <system.webServer>
            <httpRedirect enabled="true" destination="/Thank-You.aspx" httpResponseStatus="Temporary" />
        </system.webServer>
    </location>
</configuration>

For others reading this, do not start redirecting pages in this way without first understanding what the original page is doing.

HTH,
Joe D.

6/19/2012 10:26:11 AM
Gravatar
Total Posts 49
TRIAD/Next Level Interactive

Re: WebStore OrderDetail Page

Thanks Joe & Joe. I hope this redirect will solve our issue.

Since we're not requiring users to register through mojoPortal (in order to make a purchase), you get an AccessDenied message when visiting the OrderDetail.aspx page. Any recommendation on how to test and verify the redirect is working?

Thanks for all of your help,
John

6/19/2012 10:38:34 AM
Gravatar
Total Posts 2240

Re: WebStore OrderDetail Page

Just browse to /WebStore/OrderDetail.aspx. Considering you're not doing anything with OrderDetail.aspx, you shouldn't see a problem. I implemented this on one of our demo sites at http://g.thedemowebsite.com to test it before giving you the web.config settings for it. If you open that site, go the store and place a purchase, you'll see it is working properly. The store is setup in demo mode so you don't have to actually pay for anything or provide credit card numbers.

Thanks,
Joe D.

6/19/2012 12:32:01 PM
Gravatar
Total Posts 49
TRIAD/Next Level Interactive

Re: WebStore OrderDetail Page

Thanks Joe.

I visited g.thedemowebsite.com/OrderDetail.aspx and see the redirect working.

When visiting our site's OrderDetail page, we get an AccessDenied error -- http://www.weathervaneplayhouse.com/webstore/orderdetail.aspx

Is this simply because your site is running in demo mode?

6/19/2012 1:59:18 PM
Gravatar
Total Posts 2240

Re: WebStore OrderDetail Page

Hi,

If you are visiting your OrderDetail page without an order or being logged in, that will probably happen. If you're redirecting OrderDetail to something else, the entire OrderDetail page (markup and codebehind) will be bypassed so it giving an access denied error before doing the redirect shouldn't matter.

Our site works not because it's in demo mode but because the OrderDetail page has been redirected so the logic in the OrderDetail page which displays the Access Denied message is never ran.

HTH,
Joe D.

6/20/2012 9:54:19 AM
Gravatar
Total Posts 49
TRIAD/Next Level Interactive

Re: WebStore OrderDetail Page

Thanks Joe.

I've implemented the web.config and the redirect doesn't work. I thought maybe it has something to do with the extensionless URL I'm using (/Thank-You) for the page but I tried to redirect the page to /default.aspx with no luck either.

I still get the AccessDenied page.

Thoughts?

I appreciate your help.

6/20/2012 10:00:57 AM
Gravatar
Total Posts 2240

Re: WebStore OrderDetail Page

Did you create a new web.config inside the WebStore folder?

6/20/2012 10:24:04 AM
Gravatar
Total Posts 49
TRIAD/Next Level Interactive

Re: WebStore OrderDetail Page

Yes. This is the code I have in the web.config in the WebStore folder:

 

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <location path="OrderDetail.aspx">
        <system.webServer>
            <httpRedirect enabled="true" destination="/default.aspx" httpResponseStatus="Temporary" />
        </system.webServer>
    </location>
</configuration>

6/20/2012 11:28:16 AM
Gravatar
Total Posts 2240

Re: WebStore OrderDetail Page

Hi,

I'm not sure what's causing that on your site. I've enabled extensionless urls on our site and it's not failing.

You may want to check the site web.config to see if there are any location settings requiring users to be certain roles to access the /WebStore folder.

Is there anything in the log?

Thanks,
Joe D.

6/20/2012 12:03:32 PM
Gravatar
Total Posts 18439

Re: WebStore OrderDetail Page

What version of IIS are you using?

Are you using an Integrated Application pool?

system.webServer section only applies to integrated app pools.

I would use something other than Default.aspx

Seems like you could do it directly in the root web.config file but use the location path /WebStore/OrderDetail.aspx

You could also install the IIS Url Rewriter Module and use that to do the redirect.

Hope that helps,

Joe

 

6/20/2012 4:10:36 PM
Gravatar
Total Posts 49
TRIAD/Next Level Interactive

Re: WebStore OrderDetail Page

I'm running IIS 7 and the following application pools are enabled:

  • ASP.NET v4.0 / Integrated
  • ASP.NET v4.0 Classic / Classic
  • Classic .NET Application / Classic
  • DefaultAppPool / Integrated
  • mojoportal / Integrated
6/21/2012 1:23:11 PM
Gravatar
Total Posts 18439

Re: WebStore OrderDetail Page

Assuming the mojoPortal site is configured to use the mojoportal integrated app pool that should be fine.

Did you try putting it in the root Web.config as I mentioned and remove the extra web.config from the WebStore folder so it does not interfere. If you still get access denied it means the redirect is not working for some reason.

Again you could also accomplish this by installing the IIS Url Rewrite module from  platform installer and configure it to do the redirect also using web.config settings. If you google that module you can find tutorials how to do it.

Hope that helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.