Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Redirect to login.php


coelroy

Recommended Posts

Posted

Hi

 

I have the following problem:

 

When a customer adds a product to the cart and would like to checkout, then the customer as usual are directed to login.php. The problem is that once after the customer successfully logon, the page is redirected to index.php and not to checkout_shipping.php. The customer then can choose to checkout and the process will complete successfully.

 

I however don't like the idea of the page redirected to index.php.

 

Any help will be greatly appreciated.

 

I have oscommerce-2.2rc installed

SEO-G

 

Regards

 

Elroy

Posted

Try this:

 

Login and Return to same page

 

It's a simple code modification that I think will do what you want.

 

I installed this mod on my site, and it worked flawlessly.

 

Just be sure to install the latest version!!!

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
Try this:

 

Login and Return to same page

 

It's a simple code modification that I think will do what you want.

 

I installed this mod on my site, and it worked flawlessly.

 

Just be sure to install the latest version!!!

 

tx for the prompt reply. I will certainly install it.

 

Regards

 

Elroy

Posted
Try this:

 

Login and Return to same page

 

It's a simple code modification that I think will do what you want.

 

I installed this mod on my site, and it worked flawlessly.

 

Just be sure to install the latest version!!!

 

Hi,

 

I've just installed it, but to no avail. It's still doing the same thing, i.e. redirecting to index.php

Posted

You must not have installed it correctly, or if you use a custom template it may not function.

 

I just tested it.

 

Went to my site, added something to cart, clicked checkout, went to login page, after login was sent to checkout shipping (as it should be).

 

I don't know what to say...

:blush:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted
You must not have installed it correctly, or if you use a custom template it may not function.

 

I just tested it.

 

Went to my site, added something to cart, clicked checkout, went to login page, after login was sent to checkout shipping (as it should be).

 

I don't know what to say...

:blush:

Hi

 

I performed the 2 changes, one in includes/application_top.php and the other one in catalog/logoff.php.

 

I don't know what to say

 

Regards

 

Elroy

  • 3 weeks later...
Posted

Hi,

 

I was having the same problem with my store. When someone would log in or register an account in the checkout process, it would direct them to index.php rather than checkout_shipping.php. I tried everything and couldn't figure it out. Ultimately I solved the problem by opening create_account.php and whatever other files were directing the user to index.php, and did a search for all of the tep_redirect's and and changed them all to FILENAME_CHECKOUT_SHIPPING because for some reason the code that's supposed to keep track of what page you're coming from and send you back there isn't working right.

 

I don't know if this is the 'right' way to fix the problem, but it definitely worked for me.

 

Zach

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...