Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Login to Account Page instead of Index


Guest

Recommended Posts

I want to know if anyone can help me. I am customizing my login page, one I don't like the index page and i am just using oscommerce for the shopping cart function not to make a whole webpage out of. So my index.php file is hardly ever used. HOwever when i client goes to login and clicks on submit, it brings them to the index page, and need them to go to the account.php page.

 

I copied this stirng:

 

<td align="right"><?php echo '<a href="' . tep_href_link(FILENAME_ACCOUNT, '', 'SSL') . '">' . tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN) . '</a>'; ?></td>

 

in place of:

 

<td align="right"><?php echo tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN); ?></td>

 

and it works the very first time it is used after I upload it to the server. But the next time I go use it, the code is in tact as i saved it but it goes back to the index page. Can someone please help????

Link to comment
Share on other sites

change that back to what it was

around line 63 in login.php change

tep_redirect(tep_href_link(FILENAME_DEFAULT));

to

 

 

tep_redirect(tep_href_link(FILENAME_ACCOUNT));

check to make sure there is no oher instances of the code

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...