pyramids Posted July 1, 2010 Posted July 1, 2010 Hack to input or edit the transaction details including the ID in admin/edit_orders.php This will work for those of you using Authorizenet AIM, which means your orders table will have a transaction_details column in the orders table Note: I use it to only add the transaction id for manually inputted orders. In admin/edit_orders.php FIND <tr> <td class="main"><?php echo ENTRY_CREDIT_CARD_EXPIRES; ?></td> <td class="main"><input name="update_info_cc_expires" size="4" value="<?php echo $order->info['cc_expires']; ?>" <?php if (ORDER_EDITOR_USE_AJAX == 'true') { ?>onChange="updateOrdersField('cc_expires', encodeURIComponent(this.value))"<?php } ?>></td> </tr> PUT THIS JUST BELOW IT <?php //bof transaction details $detail_query = tep_db_query("SELECT transaction_details FROM " . TABLE_ORDERS . " WHERE orders_id = " . (int)$_GET['oID'] . " LIMIT 1"); $detail = tep_db_fetch_array($detail_query); if ($detail['transaction_details'] != '') { $details = explode(';', $detail['transaction_details']); foreach ($details as $d) { $item = explode('|', $d); ?> <tr> <td class="main"><?php echo $item[0]; ?>:</td> <td class="main"><?php echo $item[1]; ?></td> </tr> <?php } } ?> <tr> <td class="main"><?php echo ENTRY_TRANSACTION_DETAILS; ?></td> <td class="main"><textarea name="update_info_transaction_details" cols="30" rows="3" <?php if (ORDER_EDITOR_USE_AJAX == 'true') { ?>onChange="updateOrdersField('transaction_details', encodeURIComponent(this.value))"<?php } ?>><?php echo $detail['transaction_details']; ?></textarea> </td> </tr> <?php //eof transaction details ?> FIND 'cc_expires' => tep_db_prepare_input($_POST['update_info_cc_expires']), PUT THIS JUST BELOW IT 'transaction_details' => tep_db_prepare_input($_POST['update_info_transaction_details']), In languages/english/edit_orders.php add this to the bottom define('ENTRY_TRANSACTION_DETAILS', 'Transaction Details<br><font size="1" color="red">Transaction ID|123456789;</font>'); Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.