Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing/Adding Customer Order Page Details


rerbe

Recommended Posts

Posted

Hi,

 

I appologise if this has been asked elsewhere but arter many hours of searchin I cant find it.

 

In the Admin / Orders page, is it possible to add/change the layout to show the company name in the first column instead of the customers name.

 

Cheers. :blink:

The solution is never too far away ...

Posted
Hi,

 

I appologise if this has been asked elsewhere but arter many hours of searchin I cant find it.

 

In the Admin / Orders page, is it possible to add/change the layout to show the company name in the first column instead of the customers name.

 

Cheers.  :blink:

 

 

sure, just add the customers_company to the 3 selects in orders.php, add a column and echo the field.

Treasurer MFC

Posted

Sorry to be a pain but you couldn't be a bit more specific as I founf five or six places where this is listed.

 

Cheers

The solution is never too far away ...

Posted
Sorry to be a pain but you couldn't be a bit more specific as I founf five or six places where this is listed.

 

Cheers

 

 

in orders.php fairly at the bottom you find this to display the header:

 

<td class="dataTableHeadingContent"><?php echo TABLE_HEADING_CUSTOMERS; ?></td>

 

 

and change the TABLE_HEADING_CUSTOMERS to 'Company' or whatever you want the column header to say.

 

 

then below that there are 3 query definitions that start with:

 

$orders_query_raw = "select o.orders_id, .......

 

add the field customers_company, to those 3 queries select clause.

 

 

then below that you will find the listing of the values starting with the one for the customers name :

 

 

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

 

 

replace the $orders['customers_name'] with $orders['customers_company']

 

 

that is all.

Treasurer MFC

Posted

Great One boxtel!!!

 

Works a treat.

 

Thanks very much for the help.

 

Much appreciated....

 

Richard

The solution is never too far away ...

Archived

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

×
×
  • Create New...