Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Returning Customer log-in


ChrisJChrisJ

Recommended Posts

Posted

Upon testing my OS Store, I'm finding that when I log-in as a returning customer and select SIGN-IN, the next page I land at is checkout_payment.php. Shoulsn't I be routed to MY Account? How (and where) can I fix this? Thanks.

  • 2 weeks later...
Posted
Upon testing my OS Store, I'm finding that when I log-in as a returning customer and select SIGN-IN, the next page I land at is checkout_payment.php. Shoulsn't I be routed to MY Account? How (and where) can I fix this? Thanks.

 

 

Can anyone help me with this?

Posted
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.

Posted

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!

Posted
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.

Posted

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

Posted

Remove the second } from

 

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

}

}

 

 

so it's

 

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

}

 

 

Mike

Posted
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);

}

Posted

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

Posted
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

 

 

thanks alot.

Archived

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

×
×
  • Create New...