Adding Order Statuses to a module

Posts: 6
Joined: 08/18/2008

I am wondering if there is an easy way to add new Order Statuses for my module to use. I am creating a module which can result in an order being "NonCompliant". I want to add this as a new Order Status and was wondering the easiest way to do this.

Thanks,
Chris

Posts: 971
Joined: 11/05/2007
Bug FinderFAQ ModeratorGetting busy with the Ubercode.

admin/store/settings/orders/edit/workflow

There are a lot of really cool options like this hidden deep within the admin menus. I highly recommend spending a few hours browsing the menus and looking at all the options.

--

<tr>.

Posts: 6
Joined: 08/18/2008

is there a way to setup the new status during install of the module automatically? I would really like the user to be able to drop and use this module with very little setup needed on their part.

Posts: 2349
Joined: 08/07/2007
AdministratoreLiTe!

Several modules add them directly to the uc_order_statuses table in their hook_install(). Look at uc_paypal and uc_order to see how they do it.