You can choose between 3 options.
The default will be set to development
You can either set your choice in the configuration file or define it in your .env file:
BUTIK_ORDERS_DELETABLE=development
Those are the states you can define:
options | Description |
never | Orders can't be deleted at all. |
development | Orders can be deleted in development mode only. |
users | Orders can be deleted by all users, if they got the correct Statamic permissions. |
This is the safest option and won't let you delete any orders.
You can delete orders in development environment. To be more specific, you can delete orders as long as your environment is not set to production.
APP_ENV=local // You can delete orders​APP_ENV=production // You can't delete any orders
If set to permissions, every super admin can delete orders. Other users can delete orders as well, as long as they have the right permissions.
Make sure to set those permissions for the users you want to allow deleting orders.
Consider carefully if you want to allow deleting orders in production. It's not recommended.