Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

linking back to orgin page


Richard Lee

Recommended Posts

Hi guys and girls,

 

I have a contact us link within my create_account_success.php page for users who are having trouble, and I would like to know how to create a link which takes the user back to checkout_shipping???

 

I had a close look at the create_account_success.php source code and I can see there is this section:

 

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();
 } else {
   $origin_href = tep_href_link(FILENAME_DEFAULT);
 }

 

which obviously serves the purpose I want, however when I add this same chunk of code to the contact_us.php page - replacing the current link code with $orgin_href - I don't get the desired affect.

 

Am I missing something?

 

Thanks in advance!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...