rerbe Posted January 19, 2005 Posted January 19, 2005 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 ...
boxtel Posted January 19, 2005 Posted January 19, 2005 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: <{POST_SNAPBACK}> sure, just add the customers_company to the 3 selects in orders.php, add a column and echo the field. Treasurer MFC
rerbe Posted January 20, 2005 Author Posted January 20, 2005 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 ...
rerbe Posted January 23, 2005 Author Posted January 23, 2005 Any advice on the above?? Cheers The solution is never too far away ...
boxtel Posted January 24, 2005 Posted January 24, 2005 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 <{POST_SNAPBACK}> 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
rerbe Posted January 24, 2005 Author Posted January 24, 2005 Great One boxtel!!! Works a treat. Thanks very much for the help. Much appreciated.... Richard The solution is never too far away ...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.