PDA

View Full Version : Redirect to Checkout not Functioning


president310264
04-22-2009, 03:14 PM
Greetings,

I am having some issues with my eCart. FYI, I am using CF and MySQL. I built my pages using the wizard and everything built ok and went smoothly. When I went to test, I tried to checkout and when I click checkout, nothing happens. It basically just reloads the current page.

I checked the redirect and it is set to redirect to checkout.cfm, which exists.

I outputted the variables and everything seems to be in the right place. I am stumped. I checked the submit input variable to make sure that it was NEQ "". I checked the redirStr and it is set to checkout.cfm.

Any thoughts?

Ray Borduin
04-22-2009, 03:39 PM
Maybe the redirect code is positioned wrong on the page. I think it sets a variable with the redirect page and then code runs to redirect based on that variable. If the code that redirects was somehow above the code that sets the redirect it would do what you describe.

Really there are probably a lot of possibilities given the limited information provided.

mail350400
04-22-2009, 04:12 PM
I am having a similar problem. The checkout redirect is not working...however, it redirects me to a 404 page. It can't find my checkout page! It does exist because the checkout wizard created it. I don't understand why it can't find it. Any ideas?

Ray Borduin
04-22-2009, 04:14 PM
a 404 error means the page doesn't exist, so it either wasn't uploaded or the path is wrong. Make sure it is correct (case sensitive?).

president310264
04-22-2009, 08:38 PM
Ray,

You hit the nail on the head. The cflocation tag was in the wrong location and was firing before the redirect code variable was set. Thanks for the assist.