brenwa Posted September 16, 2008 Share Posted September 16, 2008 Hi I keep track of my orders using the order ID ..... as far as search look-up purposes.... and for customer reference etc.. I also send a copy of the invoice with the order When a customer asks about a previous order, they have no order id to use for me to look it up its getting kind of annoying... I want my order id numbers printing on my invoices if anyone can provide me withs a little cut and paste here it would be greatly appreciated... Im ok at doing some basic php editing but the more detailed stuff is over my head.....thanks in advance btw..I did check the mods...and most everything there did way more than I wanted... all i actually need is an ID number printing on an invoice thanks in advance :) bren it would also be very helpful if they displayed in the customers/orders detail page to...but thats a topic for a different day Link to comment Share on other sites More sharing options...
germ Posted September 17, 2008 Share Posted September 17, 2008 If you're talikng about /admin/invoice.php, I see this code at the top: $oID = tep_db_prepare_input($HTTP_GET_VARS['oID']); $orders_query = tep_db_query("select orders_id from " . TABLE_ORDERS . " where orders_id = '" . (int)$oID . "'"); So if you added something like this where you want it to display: <tr> <td class="main">Order ID: <?php echo $oID; ?></td> </tr> I think that would work. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
brenwa Posted September 17, 2008 Author Share Posted September 17, 2008 That was exactly what I needed thank you very much :) Link to comment Share on other sites More sharing options...
brenwa Posted September 18, 2008 Author Share Posted September 18, 2008 I forgot to mention adding that <tr> <td class="main">Order ID: <?php echo $oID; ?></td> </tr> into admin/orders.php will make the order number display on the order detail page in the admin back end as well I use the order id number as the main way to keep track (identify) of all my orders and having it in all the reliant places is no end of handy:) so thanks twice :) Link to comment Share on other sites More sharing options...
germ Posted September 18, 2008 Share Posted September 18, 2008 In that case: You're welcome! You're welcome! :lol: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
britchops Posted September 12, 2012 Share Posted September 12, 2012 Thanks Jim works great for me. britchops Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.