简体   繁体   中英

Magento Dashboard > get total orders and totals shipment for a date

I'd like to add a number of statistics to the magento admin dashboard, see attached image. I would need a php script that would count the number of orders for a certain status on a certain date.

For example: count all orders with status 'processing' on date 'today'.

For shipments: count all shipments that on date 'today'.

Thanks for all the help!

Magento Dashbaord统计

It requires some magento knowledge to integrate such scripts in your dashboard, but the statistics you require are certainly possible. You can get status history information from the 'sales/order_status_history' model and current order information from the 'sales/order' model.

Did you check if any of the statistics you need are available in the Reports section by the way?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM