osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Adding column in admin Orders page

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 12-21-2004, 12:41 AM
New Member
 
Join Date: Oct 2004
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
mat123slade
Default Adding column in admin Orders page

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; ?> </td>
             </tr>
I haven't bothered with language, Group will do fine (ID # is so I can show the ID number of the order, that might help somebody out).

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> ' . $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>'; } ?> </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 ?
Actualy I think it might be correct, but I have been told I am calling the group_id from the TABLE_ORDERS, which does not contain a group_id. I must call it from the TABLE_CUSTOMERS. The problem is, I'm not sure how to go about that.

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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 12:50 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax