DataStore
API\Reports\Orders\Stats\DataStore.
Description Description
Source Source
File: packages/woocommerce-admin/src/API/Reports/Orders/Stats/DataStore.php
Methods Methods
- assign_report_columns — Assign report columns once full table name has been assigned.
- delete_order — Deletes the order stats when an order is deleted.
- get_data — Returns the report data based on parameters supplied by the user.
- get_net_total — Get the net amount from an order without shipping, tax, or refunds.
- get_num_items_sold — Get number of items sold among all orders.
- get_unique_coupon_count — Get unique coupons based on user time query
- get_unique_product_count — Get unique products based on user time query
- init — Set up all the hooks for maintaining and populating table data.
- initialize_queries — Initialize query objects.
- is_returning_customer — Check to see if an order's customer has made previous orders or not
- orders_stats_sql_filter — Updates the totals and intervals database queries with parameters used for Orders report: categories, coupons and order status.
- set_customer_first_order — Set a customer's first order and all others to returning.
- sync_order — Add order information to the lookup table when orders are created or modified.
- update — Update the database with stats data.