Jump to content

Separate shipped and cancelled orders


Recommended Posts

Hi, I want to separate shipped and cancelled orders from the orders list in back office. I changed SQL query in AdminOrdersController.php to display only orders which are not shipped or cancelled. That works fine. But I want to create another controller which should display shipped orders and next one for cancelled orders. I tried to rename AdminOrdersController, change query and create tab for it, but it doesnt work. Any suggestions how this should be done?

Link to comment
Share on other sites

I just changed 1 line in AdminOrdersController to display products which are not shipped or cancelled

JOIN `'._DB_PREFIX_.'order_state` os ON (os.`id_order_state` = a.`current_state`) AND (a.`current_state` != 4) AND (a.`current_state` != 6)

What i want is to create another controller, lets say AdminOrdersShippedController, which will contain only products which were shipped. I tried to do this, but AdminOrdersShippedController cant be load.

Link to comment
Share on other sites

×
×
  • Create New...