Ok so I take it you are storing your data from the custom field(s) in the customers table, right?
The following code populates an array from the fields in the customers table and then this array is used to populate the customer fields of the orders table....
includes/classes/orders.php
PHP Code:
$this->customer = array('firstname' => $customer_address->fields['customers_firstname'],
'lastname' => $customer_address->fields['customers_lastname'],
'company' => $customer_address->fields['entry_company'],
'street_address' => $customer_address->fields['entry_street_address'],
'suburb' => $customer_address->fields['entry_suburb'],
'city' => $customer_address->fields['entry_city'],
'postcode' => $customer_address->fields['entry_postcode'],
'state' => ((zen_not_null($customer_address->fields['entry_state'])) ? $customer_address->fields['entry_state'] : $customer_address->fields['zone_name']),
'zone_id' => $customer_address->fields['entry_zone_id'],
'country' => array('id' => $customer_address->fields['countries_id'], 'title' => $customer_address->fields['countries_name'], 'iso_code_2' => $customer_address->fields['countries_iso_code_2'], 'iso_code_3' => $customer_address->fields['countries_iso_code_3']),
'format_id' => $customer_address->fields['address_format_id'],
'telephone' => $customer_address->fields['customers_telephone'],
'email_address' => $customer_address->fields['customers_email_address']);
I am not exactly sure what you are wanting to do but you need to either edit one of those if you want one of the orders table values to get populated by a different field than it currently is....or add a new entry to the array for your custom database field in the orders table and the custom value from the customers table.
example:
'custom_value' => $customer_address->fields['my_custom_field']);
hope some of that makes some sense.
Bookmarks