Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

navigationHistory help needed


bcohen

Recommended Posts

Hi,

 

Could someone please educate me on the navigationHistory? I have added a php page which I would like to add into the navigation history so it can be returned to. I can see that this works for the osCommerce pages, but when I move from a page that I have created to an osCommerce page, the history list is cleared and started over.

 

What causes the history to be added to successfully, and what causes it to be cleared?

 

 

Thanks for any help.

Link to comment
Share on other sites

Navigation in oscommerce is simplistic. If you go from the homepage to sales you see Home -->Sales. If, while you're on Sales you go to Info, you see Home -->Info, not Home -->Sales -->Info. If the page you have created is not being added to the navigation at all, then it's been set up wrong. Make sure that the 'add breadcrumb' feature is quoted in the page, also make sure that you have defined the page in filenames.php. Vger :D

Link to comment
Share on other sites

oh, breadcrumb! Can you tell me about the functions in navigation_history.php?

 

I see $navigation->set_snapshot being used before a tep_redirect in a lot of places. I thought this was what I wanted. When I do a $navigate->debug() in login.php, for example, and then try to checkout without logging in, it will redirect me to the login screen, and the $navigate->debug() will show me the whole list of pages I've come through, but if I do the same thing in my code, to make the user login, the $navigate->debug() shows me only the login page, and no other previous pages. Have you and idea why this would be? Is this because I didn't breadcrumb?

Link to comment
Share on other sites

Wait, I see that I haven't really stated what I want to do clearly.

 

Actually, what I want is to have more than one place where the user is required to log in before they get their information. I'd like to be able, after the login page, to have them return to the page they came from. Because they may have come from more than one place, I need the program to have the return location be wherever they came from. when they get done logging in, and they click the button to login, I want them returned automatically. That does work with the forced situation of navigate->set_snapshot, and the redirect, but if they have elected to login themselves, I have failed so far to get the return location into the history list.

 

Thanks, for any help.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...