multiple order status search in order management
xcart 4.0.13
include/orders.php Code:
# Search by order status the $data["status"] != array(""=>"1")) is so that the blank option can be selected to return any order status skin1/main/order_status.tpl Code:
<OPTION value="I" {if $status eq "I" || $status.I eq 1}selected{/if}>{$lng.lbl_not_finished}</OPTION> adding the || $status entries ensures backwards compatibility with other scripts that use order_status.tpl skin1/main/orders.tpl Code:
<TD class="FormButton" nowrap>{$lng.lbl_order_status}:</TD> name="posted_data[status][]" has an extra [] at the end to turn it into an array the html code to make it a multiple select is passed with the extra parameter On my order screen I have also moved the status selection box out of advanced order options up to the top to make it more accessible. suggestions welcome, for i am not a great php coder by any means |
this is great, works perfect in 4.0.18
|
Make sure you have a back-up before trying this. I just got a blank page after making these changes.
|
Re: multiple order status search in order management
Hello,
I know this is an old thread - but it worked perfectly for me using 4.4.5. The only major changes were that the order_status.tpl and orders.tpl are in skin/common_files/main/. Moving the order status selection box up out of the advanced options was a good idea too. Thanks! |
Re: multiple order status search in order management
Still works in 4.7.6!
|
Re: multiple order status search in order management
Seems a very basic and simple mod to apply, but it doesn't work for me in 4.6.4.
I should see a multiple select in orders search, right? |
Re: multiple order status search in order management
Do you see any changes?
Have you refreshed cache? |
Re: multiple order status search in order management
Thank you pauldodman for you reply.
I cleaned up cache and tpl after file modification and upload with cleanup.php, I don't see a single difference in admin>order search>advanced order search. I should expect to have the order status field changed from drop down to multiple select (like order features), right? |
Re: multiple order status search in order management
I'm not sure.
In order_status.tpl Try changing: <select name="{$name}" {$extra}> to: <select name="{$name}" {$extra} multiple="multiple" size="9"> |
Re: multiple order status search in order management
With the correction you suggesterd it works, thanks.
But in admin now every order listed has a multple select, while should be in that way only in search, not in order list. Do you have any kind suggestion also for this? |
All times are GMT -8. The time now is 01:09 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.