Jump to content

Sorting orders by status


Guest

Recommended Posts

I haven't figured out how to do the filtering v2 used to do yet, but I did come up with a quick fix for those of us with a lot of orders we are trying to keep track up.

I changed the sort order to be by status instead of by date and here's how:

Modify admin/orders/index.php

about line 86 find:

	$query = "SELECT ".$glob['dbprefix']."CubeCart_customer.customer_id, status, cart_order_id, time, title, firstName, lastName, ip, prod_total, ".$glob['dbprefix']."CubeCart_customer.email FROM ".$glob['dbprefix']."CubeCart_order_sum INNER JOIN ".$glob['dbprefix']."CubeCart_customer ON ".$glob['dbprefix']."CubeCart_order_sum.customer_id = ".$glob['dbprefix']."CubeCart_customer.customer_id ".$sqlQuery." ORDER BY time DESC";

and change the final line to:

ORDER BY STATUS ASC";

This puts all wth status 1 (pending processing) at the top followed by whatever you have your status to be.

Hope it helps!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...