g3rtrud Posted September 22, 2013 Share Posted September 22, 2013 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 More sharing options...
mfedorets Posted September 23, 2013 Share Posted September 23, 2013 Hi, please provide you code and error description. Link to comment Share on other sites More sharing options...
g3rtrud Posted September 23, 2013 Author Share Posted September 23, 2013 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 More sharing options...
g3rtrud Posted September 24, 2013 Author Share Posted September 24, 2013 (edited) I solved it. In back office tabs, I inserted "AdminOrders&categ=shipped" in class field to second tab which I want to display just shipped orders. Then in AdminOrdersController I added if condition to recognize which tab was clicked. Edited September 26, 2013 by g3rtrud (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts