Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Getting customer_id paypal_payflow_pro?


monito

Recommended Posts

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

Archived

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

×
×
  • Create New...