Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Update order status quickly contrib?


Top_Speed

Recommended Posts

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

define('PROJECTS', 'Something that goes on forever!');

Link to comment
Share on other sites

  • 9 months later...

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 by zudan
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...