Hi, I am using a payment module where it writes certain data to a new table (like processors response approved etc.). I am trying to get that data displayed in the order email. So Here is what I did:
I edited order.php page and added
$paymentid_query = "select moneris_orderid, orders_id, response_variables
from " . TABLE_MONERIS_ORDERIDS . "
where orders_id = '" . (int)$order_id . "'";
$paymentid = $db->Execute($payment_query);
This should give me data for moneris_orderid, orders_id, response_variables
Further down I added
$this->paymentid = array('moneris_orderid' => $paymentid->fields['moneris_orderid'],
'response_variables' => $paymentid->fields['response_variables']);
Not sure what that does other than assign data to paymentid array
And went to edit account_history_info_default.php and added to payment_method
$order->paymentid['moneris_orderid'];
so that it reads
<div><?php echo $order->info['payment_method'];
$order->paymentid['moneris_orderid'];?></div>
This should display the data help in that variable. However, the end result is the order details of order X where X is the order number eg.7 and below method of payment is nothing but blank.
What did I miss or did not get correctly?
Thanks in advance for all teh help you could give me.
Bookmarks