Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

return to the page you were on prior to loggin in


dreamscape

Recommended Posts

Hi Hatimad Did those codes worked for you and are you using those one MS1. If it is working on MS1 can you post the codes here or PM me. Thanks

 

no i am not using it at the moment for MS1, my site was almost ready and it was too complicated for me to go for it at that point.

Link to comment
Share on other sites

  • Replies 83
  • Created
  • Last Reply

ok can someone just post something telling us exactly what to do to install this, please, cause its very very hard to follow what u guys were doing

Don't die with the music in you!!!

 

Failure is just another boundary to sucess!!! But that doesn't mean your getting somewhere...

Link to comment
Share on other sites

I agree with Kristofor:

 

can someone post the whole thing now that is seems to be completed? Or provide a link to the contribution. I tried a search but to no avail ...

 

Thanx y'all for all your work and effort!

 

- DM

Link to comment
Share on other sites

  • 1 year later...

I found a very easy way for the problem:

 

Make your login link like this:

<a href="' . tep_href_link(FILENAME_LOGIN, 'make=snapshot', 'SSL') . '">LogIn</a>

 

and put this code to the top of login.php

(I would recommend a position after the tep_redirect() statement, line 19 e.g.)

 

// HACK TO REMEMBER THE LAST POSITION

if ($HTTP_GET_VARS['make'] == "snapshot") {

 $back = sizeof($navigation->path)-2;
 if (isset($navigation->path[$back])) {

 $navigation->set_snapshot($navigation->path[$back]);
 
 }
   
}
// END HACK

 

Works fine for me. :)

 

Any comments?

 

Johannes

Link to comment
Share on other sites

  • 3 weeks later...
  • 2 weeks later...

It works fine, but as I have a "log in" link in my header navigation, if a customer uses this link on create_account.php which is brought up for them during checkout it returns to the create account page, which isn't really desireable.

 

I wish I could be creative enough to give a fix right now, but I just thought I'd point this out for others!

 

Ian

 

I found a very easy way for the problem:

 

Make your login link like this:

<a href="' . tep_href_link(FILENAME_LOGIN, 'make=snapshot', 'SSL') . '">LogIn</a>

 

and put this code to the top of login.php

(I would recommend a position after the tep_redirect() statement, line 19 e.g.)

 

// HACK TO REMEMBER THE LAST POSITION

if ($HTTP_GET_VARS['make'] == "snapshot") {

?$back = sizeof($navigation->path)-2;
?if (isset($navigation->path[$back])) {

?$navigation->set_snapshot($navigation->path[$back]);
?
?}
? ?
}
// END HACK

 

Works fine for me. :)

 

Any comments?

 

Johannes

Link to comment
Share on other sites

Actually, I surprised myself! :D

 

my header login is now:

<?php
    if (!strstr($PHP_SELF,'account')) {
    ?>
    <a href="<?php echo tep_href_link FILENAME_LOGIN, 'make=snapshot', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGIN; ?></a> | 
       <?php
       } else {
       ?>
       <a href="<?php echo tep_href_link(FILENAME_LOGIN, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGIN; ?></a> | 
       <?php
       }
?>

 

Needs more testing though...

 

Ian

 

It works fine, but as I have a "log in" link in my header navigation, if a customer uses this link on create_account.php which is brought up for them during checkout it returns to the create account page, which isn't really desireable.

 

I wish I could be creative enough to give a fix right now, but I just thought I'd point this out for others!

 

Ian

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...