Jump to content

Delete order status, unistalling a module


Rain_xx

Recommended Posts

I would like to delete the order status that the module created (recognizable by "module_name" value on the "ps_order_state" table), not just "an order status" or the last created.

But now I see that the module works properly even if unistalled and re-installed. I had some problem before reinstalling, and I thougth it may depends on the alreay existing "order status".. I'll never know what happened :)

Link to comment
Share on other sites

In your install function, you should check to confirm that the order status you are trying to create already exists, then skip creating it.

 

There is no reason to delete the order status, in fact you shouldn't, because there are likely orders using that status (current or history).

Edited by bellini13 (see edit history)
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...