Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How get people to register before veiwing shop?


JemCraft

Recommended Posts

Never done what you're trying to do, so no gaurantees. However if you look at one of the scripts that you can only get to once you've signed in, such as checkout_payment.php, it has the following short bit of script at the start

// if the customer is not logged on, redirect them to the login page
 if (!tep_session_is_registered('customer_id')) {
   $navigation->set_snapshot();
   tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));
 }

 

If you want people to signon to be able to see any/every page, then in theory you have to add this peice of code to almost every .php file in /catalog/, the far easier way would be add it to catalog/includes/application_top.php

 

If you do this, it'd need a lot of testing to prove its OK plus this may also block the search engine robots which may not be what you want.

 

I'd also strongly recommend you check thru the contributions, becuase this sounds like something likely to have been done before.

 

Good Luck ... M-Pro

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...