This is a discussion on Adding column in admin Orders page within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; Hi, I'm trying to add a field in the Order Page in the admin, I would like a column to ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hi, I'm trying to add a field in the Order Page in the admin, I would like a column to show the name of the user group (Retailer, Shop, wholesaler etc) that I have set up with Seperate Price Per Customer. I have so far come up with this : I'm adding the column name here (for people interested admin/orders.php) : Code: <tr class="dataTableHeadingRow">
<td class="dataTableHeadingContent" width='30'><?php echo 'ID #'; ?></td>
<td class="dataTableHeadingContent">Group</td>
<td class="dataTableHeadingContent"><?php echo TABLE_HEADING_CUSTOMERS; ?></td>
<td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_ORDER_TOTAL; ?></td>
<td class="dataTableHeadingContent" align="center"><?php echo TABLE_HEADING_DATE_PURCHASED; ?></td>
<td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_STATUS; ?></td>
<td class="dataTableHeadingContent" align="right"><?php echo TABLE_HEADING_ACTION; ?>&nbsp;</td>
</tr>
And for the content : Code: <td class="<?php echo $current_row; ?>"><?php echo '<font face=verdana size=1>' . $orders['orders_id']; ?></font></td>
<td class="<?php echo $current_row; ?>"><?php echo '' . $customers['customers_group_id']; ?></font></td>
<td class="dataTableContent"><?php echo '<a href="' . tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $orders['orders_id'] . '&action=edit') . '">' . tep_image(DIR_WS_ICONS . 'preview.gif', ICON_PREVIEW) . '</a>&nbsp;' . $orders['customers_name']; ?></td>
<td class="dataTableContent" align="right"><?php echo strip_tags($orders['order_total']); ?></td>
<td class="dataTableContent" align="center"><?php echo tep_datetime_short($orders['date_purchased']); ?></td>
<td class="dataTableContent" align="right"><?php echo $orders['orders_status_name']; ?></td>
<td class="dataTableContent" align="right"><?php if (isset($oInfo) && is_object($oInfo) && ($orders['orders_id'] == $oInfo->orders_id)) { echo tep_image(DIR_WS_IMAGES . 'icon_arrow_right.gif', ''); } else { echo '<a href="' . tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('oID')) . 'oID=' . $orders['orders_id']) . '">' . tep_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . '</a>'; } ?>&nbsp;</td>
So the bit of code that I have got wrong is Code: <?php echo '' . $customers['customers_group_id']; ?> Anyone know what I should put here ? Anyone have an idea? I'm sure there isn't much more to do so that it works, it must be simple... Thanx a lot. All The Best with you online shop! |
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Order Editor missing 'shipping_tax' column in orders table | cbp | osCMax v2 Installation issues | 9 | 01-02-2007 08:30 AM |
| Adding a pop-up image to a column box | Lobotaman | osCMax v1.7 Discussion | 9 | 02-14-2005 08:26 PM |
| add column to admin product listing | jlee | osCMax v1.7 General Mods Discussion | 2 | 01-14-2005 06:09 AM |
| Adding login page to admin | HuGo | osCommerce 2.2 Modification Help | 3 | 07-02-2004 10:57 AM |
| Tax not correct in Admin -> Orders | Buzz | osCommerce 2.2 Installation Help | 0 | 02-10-2003 08:16 AM |