monito Posted March 7, 2014 Share Posted March 7, 2014 Hi, I need the "customer_id" to do a query in paypal_payflow_pro.php payment module. This is what I'm doing, but it dowsn;t seem to work. global $customer_id;$query = tep_db_query("select entry_discount from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . $customer_id . "'");$customer_dis = tep_db_fetch_array($query);$query = tep_db_query("select member_flag from " . TABLE_CUSTOMERS . " where customers_id = '" . $customer_id . "'");$query_result = tep_db_fetch_array($query);$query = tep_db_query("select customer_discount from " . TABLE_CUSTOMERS . " where customers_id = '" . $customer_id . "'");$query_discount = tep_db_fetch_array($query);$od_disc = $query_discount['customer_discount'];[\code] I never get a value in $customer_id Thanks you, Monito Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.