We wiil add entires on tables “sales_order_status” and “sales_order_status_state”. In your installer, we have to put this code : <?php $installer = $this; // Our tables $statusTable = $installer->getTable(‘sales/order_status’); $statusStateTable = $installer->getTable(‘sales/order_status_state’); // Add statuses $installer->getConnection()->insertArray( $statusTable, array( ‘status’, ‘label’
Add order states and statuses with installer
![Add order states and statuses with installer Add order states and statuses with installer](https://www.maximehuran.fr/wp-content/uploads/2014/07/1.gif)