Hi msd_lab,
I was faced with a similar challenge with passing a custom field through to eWay.
As per the advice in this thread from Tuan (thanks!), I amended the processPayment function section of /components/com_pmform/payments/os_eway.php as follows:
Commented out line 423:
Code:
// $this->setCustomerInvoiceRef($row->id);
And replaced it with this:
Code:
$db =& JFactory::getDBO();
$db->setQuery("SELECT payment_id,field_id,field_value FROM joom_pf_field_value WHERE payment_id = $row->id AND field_id = 16");
$rn = $db->loadObject();
if (isset($rn)) $referencenumber = $rn->field_value;
$this->setCustomerInvoiceRef($referencenumber);
Now one of our custom fields is passed through and appears on the eWay email instead of a meaningless sequential transaction number.
I hope this helps.
Neil.