Why is there a limitation for a single character for order status codes?
Is this something that could be improved easily in a future update?
Yes, we are reaching the limit of english alphabet letters, and we could use more order statuses.
Thanks
You get 10 more statuses by using 0..9. You could probably use more printable characters. But do not use the status 'N' since it will get you in to trouble. It is used internally.
Jörgen @ Kreativ Fotografi
Thanks, yes we started using numbers already.
I suppose the single-character limit is for legacy compatibility purposes?
I really do not see why it could not be expanded to more characters. Tests performed seems to be done with string logic. This would probably not be affected by a larger field for order status. But I guess using all available printable characters would more than cover the normal need for order statuses.
Jörgen @ Kreativ Fotografi
Thanks.
A more advanced use of order statuses, is to use multiple characters and group them into families e.g.
Zxx (e.g. Z00, Z01, Z02)
Bxx
Axx
or even with numbers
2xx
3xx
4xx
Each group (denoted by first char), would signify the broad status (e.g. Completed, Failed, etc)
In our specific case, we use fine-grained Order statuses even to denote stuff like "Waiting to receive from **** supplier". So we are close to using all available single characters.
you have 26+10 choice this mean 36 and perhaps some other special char can work to.
How you want handle correctly more then 36 order status in the list ?
Quotemore then 36 order status in the list ?
the more stripes, the more addidas ;D
(said a Vietnamese salesman selling a tracksuit with four stripes)
Maybe - more order status, better shop?
Pinochico, i really mean that this order statut Char is stupid, you have an ID for each order statut
But all the system use this char for now.
@pinochico ;D ;D ;D
But seriously, we do use that many order statuses because it helps with internal management of orders. Customers only see a few of those statuses. The rest are for internal use.
Also, working with single characters makes it hard to know what a status is about.
Statuses X, F and G
versus
Statuses 201, 207, 405
(assume 2xx are OK, 4xx indicate some sort of problem that requires attention)
I agree, extending 1 character to more wouldn't hurt and wouldn't cause backwards incompatiblity
Okey, changed to 3. Should be just 7 places in the install.sql. But it is not in the just uploaded version. EvanGr open your install.sql and change order_status_code to char(3) and all 6 oder_status to char(3). Then use the tableupdater.
Thank you!