initializing $customer_id, where?

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

I'm having to make some modifications to the shopping_cart.php class, but I can't figure out where customer_id is intialized. Here's an sql insert that uses $customer id:

if (tep_session_is_registered('customer_id')) tep_db_query("insert into " . TABLE_CUSTOMERS_BASKET . " (customers_id, products_id, customers_basket_quantity, customers_basket_date_added) values ('" . $customer_id . "', '" . $products_id . "', '" . $qty . "', '" . date('Ymd') . "')");

thanks in advance.
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.