Top_Speed Posted December 1, 2005 Share Posted December 1, 2005 Hi all, I searched the existing contribs but could not find one that would update an order without actually going into the order to do so. It would be helpful to just be able to select this from the order listing (shell). If you update several orders a day to lets say "in-transit" or "delivered" this becomes a very slow process to have to actually open each order to do so. Hope someone knows of such a admin contrib? Thanks much, KJ Quote define('PROJECTS', 'Something that goes on forever!'); Link to comment Share on other sites More sharing options...
zudan Posted September 15, 2006 Share Posted September 15, 2006 Hi, if i may ask : did you ever find a solution for this? Couldn't find it either... Danny Puype belgium Quote Link to comment Share on other sites More sharing options...
zudan Posted September 15, 2006 Share Posted September 15, 2006 (edited) Hi all, if ever you'd like to tweak it you could add this to orders.php : <!--added--> <?php $query_LastOrder = tep_db_query("select orders_id from " . TABLE_ORDERS . " ORDER BY orders_id DESC LIMIT 1"); $row_qLastOrder = mysql_fetch_assoc($query_LastOrder); $LastOrder = $row_qLastOrder['orders_id']; $FirstOrder = 100 ; /* set this to the number where your orders start */ ?> <a href="http://www.yourserver.com/catalog/admin/orders.php?page=<?php echo $HTTP_GET_VARS['page'];?>&oID=<?php if ($oID > $FirstOrder) {echo $oID -1;} else {echo $oID;} ?>&action=edit"><img src="includes/languages/english/images/buttons/button_previous_order.gif" alt="Previous order" border="0"></a> <a href="http://www.yourserver.com/catalog/admin/orders.php?page=<?php echo $HTTP_GET_VARS['page'];?>&oID=<?php if ($oID < $LastOrder) {echo $oID +1;} else {echo $oID;} ?>&action=edit"><img src="includes/languages/english/images/buttons/button_next_order.gif" alt="Previous order" border="0"></a> <!--end added--> It's a temporary solution till i found something better, but it works great for now. If you like the two buttons, send me an email and i'll forward them to you. The paths are just a sample of course and need to be adapter to your situation. There's one small problem which i couldn't solve yet: when you go back or forward (on the details page) between records belonging to different pages (on the front page), the page numbering is broken... and you have to reclick the orders button in the admin panel to solve it... Anyway who wants to improve this: welcome ... Edited September 15, 2006 by zudan Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.