Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

What details are stored when logged in?


ckyshop.co.uk

Recommended Posts

$customer_first_name is registered in the session - you can add other things by altering the query and registering what you wish:

 

Query:

 

    $check_customer_query = tep_db_query("select customers_id, customers_firstname, customers_lastname, customers_password, customers_email_address, customers_default_address_id from " . TABLE_CUSTOMERS . " where customers_email_address = '" . tep_db_input($email_address) . "'");

 

and to register:

 

 

        $customer_id = $check_customer['customers_id'];
       $customer_default_address_id = $check_customer['customers_default_address_id'];
       $customer_first_name = $check_customer['customers_firstname'];
       $customer_last_name = $check_customer['customers_lastname'];
       $customer_country_id = $check_country['entry_country_id'];
       $customer_zone_id = $check_country['entry_zone_id'];
       $customer_email = $HTTP_POST_VARS['email_address'];
       tep_session_register('customer_id');
       tep_session_register('customer_default_address_id');
       tep_session_register('customer_first_name');
       tep_session_register('customer_last_name');
       tep_session_register('customer_country_id');
       tep_session_register('customer_zone_id');
       tep_session_register('customer_email');

 

Matti

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...