Admin Change All Status
This is a really simple mod.
My order processors really like the "Check All" link when dealing with orders. I wanted to create a similar link that does the same thing for the order status drop down box. I wanted a link to set them all to Processed, then another to set them all to Complete. Here goes. 1. In skin1/main/orders_list.tpl Add: Code:
orderstatus = new Array({foreach from=$orders item=v key=k}{if $k > 0},{/if}'order_status[{$v.orderid}]'{/foreach}); Code:
<SCRIPT type="text/javascript" language="JavaScript 1.2"> To look like: Code:
<SCRIPT type="text/javascript" language="JavaScript 1.2"> AND Add: After: To look like: Code:
{include file="change_all_checkboxes.tpl"} 2. In skin1/change_all_checkboxes.tpl Add: Code:
function change_all_status(flag, formname, arr) {ldelim} After: Code:
function change_all(flag, formname, arr) {ldelim} To look like: Code:
<SCRIPT> |
Thanks for this, just tested it out and it works great!
Thanks again, Dan |
Hmm nice done, BUT: Very dangerous when you use it. Take care.
We got per day about 25 orders, and each order has different status, because the status depends on several things. f.i. payment moment/receiving. Just a little note...... |
It would be handy if it would update all CHECKED rather than all at once, that might help. Not sure how this is done yet.
Dan |
Weckie,
We get about 150 orders a day and have not had a problem, but then again we just use the front end for order taking. The orders are then set at complete and entered into our back office order processing software. Dan, Yeah, I agree, but it was a simple javascript hack that works great. |
Actually, it's not a problem for us as we're filtering by Queued anyway.
Thanks again Dan |
Just a quick update, I surrounded the code that displays the links with an if statement to stop it showing when the customer looks at the Order History, so:
changes to: Code:
{if $usertype ne "C"} Dan |
Thank you for the mod.
|
All times are GMT -8. The time now is 05:11 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.