Add order states and statuses with installer

Add order states and statuses with installer

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’

Manage orders display on front by state

Manage orders display on front by state

You can easily manage orders display on front by state You need to create/modify a config.xml : <?xml version=”1.0″?> <config> <!– … –> <global> <!– … –> <sales> <order> <states> <new translate=”label”> <visible_on_front>0</visible_on_front> </new> <pending_payment translate=”label”> <visible_on_front>0</visible_on_front> </pending_payment> <processing translate=”label”>

We use cookies to ensure that we give you the best experience on our website.
Ok