Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How Can I Secure My Site?


Jtran

Recommended Posts

Hi all,

 

I want to know if this is possible at all. I don't want guests to browse the store (oscommerce 2.2), only registered users can log on, browse and buy products. These registered users can only be created by an admin (through admin interface).

 

Any help is appreciated.

Link to comment
Share on other sites

Hi all,

 

I want to know if this is possible at all. I don't want guests to browse the store (oscommerce 2.2), only registered users can log on, browse and buy products. These registered users can only be created by an admin (through admin interface).

 

Any help is appreciated.

Check out the contributions area.

Link to comment
Share on other sites

// if the customer is not logged on, redirect them to the login page

if (!tep_session_is_registered('customer_id')) {

$navigation->set_snapshot(array('mode' => 'SSL', 'page' => FILENAME_CHECKOUT_PAYMENT));

tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));

}

 

paste this on index.php after require application_top.php

 

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Link to comment
Share on other sites

// if the customer is not logged on, redirect them to the login page

if (!tep_session_is_registered('customer_id')) {

$navigation->set_snapshot(array('mode' => 'SSL', 'page' => FILENAME_CHECKOUT_PAYMENT));

tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));

}

 

paste this on index.php after require application_top.php

Satish

How does this help to create an account in admin?

Link to comment
Share on other sites

Leslie,

I checked out the contributions area and couldn't find anything that fits my requirements.

 

Satish,

That won't help with creating new account in admin area.

 

any more ideas?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...