Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

log in and return


Guest

Recommended Posts

You don't have the code in there that contrib said to add (as far as I can see).

:blush:

 

Before this code:

 

// PWA BOF
 if (tep_session_is_registered('customer_id') && tep_session_is_registered('customer_is_guest') && substr(basename($PHP_SELF),0,7)=='account') tep_redirect(tep_href_link(FILENAME_SHOPPING_CART));
// PWA EOF

Add this code:

 

//
// login and return to same page code added 01/22/09
//

// if the customer is not logged on, set the page to return to upon login

if ( (basename($PHP_SELF) != FILENAME_LOGIN) && (basename($PHP_SELF) != FILENAME_LOGOFF) && (!strstr($PHP_SELF,'create')) && (!strstr($PHP_SELF,'popup'))) {
 $navigation->set_snapshot();
}

//
// end of added code
//

BACKUP THE FILE FIRST!

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 >

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...