2014年4月5日星期六

how to make zencart orders sort by time in the admin backstage

In the admin backstage ,all the orders, if not modified by default,are in accordance with the order id number, turn down the row.

But if done to modify the order number, the situation is different, because the number of orders after several modifications after the number is a random number, if you order more than one day, then the effect is not very satisfactory.

Zencart backstage press single time you want the latest order was at the top, or very simple.



Modification method:

1, open the file: admin / orders.php

Find: order by o.orders_id DESC modify the order by o.date_purchased DESC

Then find: order by orders_id DESC modify the order by date_purchased DESC

2, open the file: admin / index.php

Find: order by orders_id DESC limit 5 ");

Amended to: order by date_purchased DESC limit 10 ");

(This step is a preview of the main interface to achieve the background sort orders, and the main interface to modify the number of orders)


 Then refresh the page, you can see the effect.
Tagged under:

0 评论:

发表评论