Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

click button to logg off


aguzman

Recommended Posts

Posted

When a new account is created I have a message that states they have to wait to be approved then there is a continue button but the button just leaves the new customers logged into the store. I want that continue button to log them off.

 

I found the code that controls the continue button but don't know how to have it go to the log off.

 

 

Code that sets the link address for the continue button. This is where I have to set it to go to the "you are now logged out" screen.

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_CREATE_ACCOUNT_SUCCESS);

 $breadcrumb->add(NAVBAR_TITLE_1);
 $breadcrumb->add(NAVBAR_TITLE_2);

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

 

Code for the Continue Button

 <td align="right"><?php echo '<a href="' . $origin_href . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>

 

Any help would be great.

Posted

<td align="right"><?php echo '<a href="' . $origin_href . '">' . tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . '</a>'; ?></td>

In that code change this:

 

$origin_href

 

to:

 

FILENAME_LOGOFF

 

to link to the logoff page.

 

Do you have another image in mind for the button?

:unsure:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Archived

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

×
×
  • Create New...