New Zenner
- Join Date:
- Nov 2007
- Location:
- Huntington, Indiana
- Posts:
- 67
- Plugin Contributions:
- 0
Link to Jump from Order to Customer Record
Many times, it would be useful to be able to jump directly from an order to the customer's master record to see their information or their past orders. This small addition to the orders.php file enables that.
File: store/admin/orders.php. Go to the section near line 545 (depending on past plug-ins) labeled "Begin Customer and Payment Information." Find this section of code:
<tr>
<td class="main"><strong><?php echo TEXT_INFO_IP_ADDRESS; ?></strong></td>
<td class="main"><?php echo $order->info['ip_address']; ?></td>
</tr>
After this code, enter a new line and paste the following:
<!-- Begin Customer Info Link-->
<tr>
<td class="main"><strong><?php echo ENTRY_CUSTOMER; ?></strong></td>
<td class="main">
<?php echo '<a href="' . zen_href_link(FILENAME_CUSTOMERS, 'search=' . $order->customer['email_address'] . '&origin=' . FILENAME_DEFAULT, 'NONSSL') . '" . >' . 'Lookup Customer' . '</a>'; ?>
</td>
</tr>
<!-- End Customer Info Link-->
Posted here in case someone else finds this useful.