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.