Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Problems with redirect from login.php


lukewood

Recommended Posts

Dear all,

 

I am creating a shop using OSCommerce and I have installed a couple of the SEO contributions. Generally everything works fine but I have noticed a bug. If a user is not logged in and selects ?Write a Review? or ?Tell a Friend? they are directed to the login page. After a valid username and password are entered, the user is not redirected to where they came from. Both fields remain blank even though they are actually logged in. Whilst I only have a cursory knowledge of PHP I think it may be something to do with this line of code in login.php:

 

tep_redirect(tep_href_link(FILENAME_DEFAULT, '', NONSSL));

 

I have installed Chemo?s SEO links and the Header Tags contributions. I have also changed the breadcrumb navigation to remove the catalog as my shop is installed on the root.

 

Any help would be greatly appreciated.

 

Kind regards,

 

Luke

Link to comment
Share on other sites

  • 3 months later...
Dear all,

 

I am creating a shop using OSCommerce and I have installed a couple of the SEO contributions. Generally everything works fine but I have noticed a bug. If a user is not logged in and selects �Write a Review� or �Tell a Friend� they are directed to the login page. After a valid username and password are entered, the user is not redirected to where they came from. Both fields remain blank even though they are actually logged in. Whilst I only have a cursory knowledge of PHP I think it may be something to do with this line of code in login.php:

 

tep_redirect(tep_href_link(FILENAME_DEFAULT, '', NONSSL));

 

I have installed Chemo�s SEO links and the Header Tags contributions. I have also changed the breadcrumb navigation to remove the catalog as my shop is installed on the root.

I have this exact same problem with the customer getting stuck in a loop on the Login.php page when trying to write a review but not logged in. Once they log in they are redirected to the login page that the just completed yet there is no indication they are logged in (although they are logged in).

 

I also find that after a purchase, the customer is redirected to the login page again rather than the index page.

 

Any ideas of where this control takes place and how I can fix it?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...