RE: login at other location than at checkout?

M@rcel <[email protected]>
Newsgroups gmane.comp.web.oscommerce.devel
Message-ID <ccacb30419030097c13d90bf8866152d@osCommerce-Forums>
This message was sent from: Development
http://forums.oscommerce.com/viewtopic.php?p=163702#163702
----------------------------------------------------------------

[quote="Ian"]If you want to force customers to login before entering your site you can add the following code to the end of application_top.php

[code]if (!$customer_id) {
  tep_redirect(FILENAME_LOGIN);
}
[/code]
There is also at least one contribution to add a login box to the side column :)[/quote]

I don't want to be a "mister_know_it_all", but what about this at the end of application_top.php:
[code]
  if (!tep_session_is_registered('customer_id')) {
    $navigation->set_snapshot();
    tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
  }
[/code]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.