Results 1 to 2 of 2

small mod

This is a discussion on small mod within the osCMax v1.7 Installation 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 ...

      
  1. #1
    New Member
    Join Date
    Oct 2004
    Posts
    14
    Rep Power
    0


    Default small mod

    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.

    [edited by admin]

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,477
    Rep Power
    567


    Default RE: Small fee small mod

    Hi,

    Please refernence the forum rules. Requesting quotes for paid work is against the posting rules. Please refrain from doing so, as it undermines the purpose of this forum - namely FREE help.

    I will take a look at your problem today and see what I can come up with. It looks to be very simple to do.
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

Similar Threads

  1. Help Please Small issue with profuct_info.tpl please help
    By ALElder in forum osCmax v2 Customization/Mods
    Replies: 1
    Last Post: 11-13-2006, 06:12 PM
  2. Various small problems, well sort of small
    By spottedhaggis in forum osCmax v2 Installation issues
    Replies: 2
    Last Post: 03-23-2006, 09:53 AM
  3. [HELP] Need some help with small adjustment things.
    By Squirrel in forum osCommerce 2.2 Modification Help
    Replies: 3
    Last Post: 04-27-2005, 01:16 PM
  4. 2 small problems i am sure
    By crash3903 in forum osCommerce 2.2 Modification Help
    Replies: 3
    Last Post: 07-09-2004, 11:18 AM
  5. popup window too small
    By jlee in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 02-18-2003, 01:24 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •