Nap BlownApart Posted August 6, 2006 Share Posted August 6, 2006 Hi, I've been looking at the code, and can see that the 'Order History' box heading is rendered in the order_history.php file, lines 23-46. This is also where the list of items previously ordered is determined/displayed. But I don't know how to change the code to make the 'Order History' text into a link. I would like it to point to account_history.php, so a customer doesn't have to drill through the 'My Account' link at the top. Can some please help with the line of code I would need to put in? Cheers, Nap. Link to comment Share on other sites More sharing options...
Nap BlownApart Posted August 6, 2006 Author Share Posted August 6, 2006 I've done it. Based on the osCommerce osCommerce 2.2-MS2 Update 051113 files. Edit order_history.php (found in catalog/includes/boxes folder) as follows: locate line 22 and 23 22 $info_box_contents = array(); 23 $info_box_contents[] = array('text' => BOX_HEADING_CUSTOMER_ORDERS); insert a line between 22 and 23 place the code below in that new line: $order_history_link .= '<a href="' . tep_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL') .'"><font color = "white" >' . BOX_HEADING_CUSTOMER_ORDERS . '</font></a>'; change the old line 23 to $info_box_contents[] = array('text' => $order_history_link); Cheers, Nap Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.