Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Returning Customer log-in


ChrisJChrisJ

Recommended Posts

  • 2 weeks later...
i think you would need to check your login.php file and find the part that is doing the redirect

Thanks for your reply. I've looked there and it looks like this:

 

if (sizeof($navigation->snapshot) > 0) {

$origin_href = tep_href_link($navigation->snapshot['page'], tep_array_to_string($navigation->snapshot['get'], array(tep_session_name())), $navigation->snapshot['mode']);

$navigation->clear_snapshot();

tep_redirect($origin_href);

} else {

tep_redirect(tep_href_link(FILENAME_ACCOUNT, '', 'SSL'));

 

Can you review this and tell me what I need to change to remedy my issue? Thanks.

Link to comment
Share on other sites

Remove the following:

 

if (sizeof($navigation->snapshot) > 0) {
$origin_href = tep_href_link($navigation->snapshot['page'], tep_array_to_string($navigation->snapshot['get'], array(tep_session_name())), $navigation->snapshot['mode']);
$navigation->clear_snapshot();
tep_redirect($origin_href);
} else {
       

 

and the extra curly bracket:

 

}

 

that's probably underneath:

 

 tep_redirect(tep_href_link(FILENAME_ACCOUNT, '', 'SSL'));

 

ROCK AND ROLL!

Link to comment
Share on other sites

Remove the following:

 

if (sizeof($navigation->snapshot) > 0) {
$origin_href = tep_href_link($navigation->snapshot['page'], tep_array_to_string($navigation->snapshot['get'], array(tep_session_name())), $navigation->snapshot['mode']);
$navigation->clear_snapshot();
tep_redirect($origin_href);
} else {
? ? ? ?

 

and the extra curly bracket:

 

}

 

that's probably underneath:

 

 tep_redirect(tep_href_link(FILENAME_ACCOUNT, '', 'SSL'));

 

ROCK AND ROLL!

 

Thanks for your assistance, however I now have an error:

 

Parse error: parse error, unexpected $ in /home/catalog/login.php on line 226

 

I tried to make sure there was no extra white space at the end of the file, saved again but still get this error.

 

the redirect code area now looks like this:

 

// restore cart contents

$cart->restore_contents();

 

tep_redirect(tep_href_link(FILENAME_ACCOUNT, '', 'SSL'));

}

}

 

if ($error == true) {

$messageStack->add('login', TEXT_LOGIN_ERROR);

}

 

 

Can somone help me with this new error?

 

Thanks.

Link to comment
Share on other sites

or just change the reference:

 

tep_redirect($origin_href);

 

to

 

tep_redirect(tep_href_link(FILENAME_ACCOUNT, '', 'SSL'));

 

 

and no matter what they get redirected to the my account page. But if a returning customer has already picked out some products and was at the checkout when they were forced to login, they may not be to kind about having to find their way back to the checkout. Especially if they are in a hurry.

 

 

Just a thought.

 

 

Mike

Link to comment
Share on other sites

Remove the second } from

 

tep_redirect(tep_href_link(FILENAME_ACCOUNT, '', 'SSL'));

}

}

 

 

so it's

 

tep_redirect(tep_href_link(FILENAME_ACCOUNT, '', 'SSL'));

}

 

 

Mike

Link to comment
Share on other sites

Remove the second } from

so it's

Mike

 

Mike,

Thanks for your help. I removed the second bracket, but still get:

 

Parse error: parse error, unexpected $ in /home/public_html/catalog/login.php on line 226

 

Any other thoughts on this?

 

The code now looks like this:

 

// restore cart contents

$cart->restore_contents();

tep_redirect(tep_href_link(FILENAME_ACCOUNT, '', 'SSL'));

}

if ($error == true) {

$messageStack->add('login', TEXT_LOGIN_ERROR);

}

Link to comment
Share on other sites

I did a double check and it looks like you actually removed too many brackets. try:

 

// restore cart contents
       $cart->restore_contents();


     }
   }
 }

 if ($error == true) {
   $messageStack->add('login', TEXT_LOGIN_ERROR);
 }

 

 

HTH

Mike

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...