There is a table commerce_order_status that would allow a UI component to alter the weight and status (i.e. enabled / disabled) of order statuses. However, a UI was never implemented to do this. Since there's already a hook_commerce_order_status_info_alter(), such alteration can be accomplished via site specific modules or a contribute module providing the UI. This could be implemented in commerce_order_ui.module in the future, but at the very least it doesn't need to be in the base API function. : D

Comments

rszrama’s picture

Issue tags: +low-hanging fruit
bojanz’s picture

Status: Active » Postponed

[23:29] bojanz: nah, nuke it
[23:29] bojanz: although I guess I'm a little undecided hehe
[23:30] bojanz: nah, it needs to go... needless UI atm I think
[23:30] bojanz: eventually it might be nice to make this a core feature, but I'm not sure it's necessary now...
[23:30] well, just having the hook is okay to me
[23:31] on the other hand, no need to nuke something which isn't broken
[23:31] bojanz: yeah, my thought, too
[23:32] bojanz: I'll think about it... I mean, we're allowing reordering of checkout panes via the UI in a similar manner
[23:33] bojanz: so it's not like we're keeping the core completely free from these "window dressing" features
[23:33] bojanz: I suppose the larger question is how often should we expect people to want to customize the order statuses... and part of me wants to say quite often
[23:34] one voice is telling me that's true, but the other is asking, customize to what?
[23:34] Not sure how much room for creativity there is in order statuses
[23:34] bojanz: that's true, and customizations might not be necessary... it would be mostly reordering and disabling some
[23:35] still, that requires an UI too..

pcambra’s picture

Issue tags: -dcsprint3 +dcsprint5
pcambra’s picture

Tasks
- Remove both tables
- Change reference of the functions of loading states and status so they don't use the tables

We'll figure out later what to do with those tables when order status/state UI is created if it is.

pcambra’s picture

rszrama’s picture

Status: Needs review » Fixed

Excellent work - committed.

Status: Fixed » Closed (fixed)
Issue tags: -low-hanging fruit, -dcsprint5

Automatically closed -- issue fixed for 2 weeks with no activity.