Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Need an Order number on the order.php


zimonline

Recommended Posts

Posted

I am trying to get an order number on the order.php in the lists of orders

 

ie:

Invoice No------Customers----------Order Total--------Date Purchased

0001---------------- Joe1---------------- 200----------------01/01/2002

0005---------------- Joe2---------------- 100----------------01/01/2002

0007---------------- Joe3----------------- 50----------------01/01/2002

0009---------------- Joe4---------------- 200----------------01/01/2002

 

this will make it a little quicker to modify the order status

 

thanks

Why reinvent the wheel

Posted

Edit the headings:

              <tr class="dataTableHeadingRow">

               <td class="dataTableHeadingContent" width='30'><?php echo 'ID #'; ?></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>

 

Then edit the details:

                <td class="dataTableContent"><?php echo '#' . $orders['orders_id']; ?></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 ( (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>

             </tr>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...