DataStore
API\Reports\Orders\DataStore.
Description Description
Source Source
File: packages/woocommerce-admin/src/API/Reports/Orders/DataStore.php
Methods Methods
- add_sql_query_params — Updates the database query with parameters used for orders report: coupons and products filters.
- assign_report_columns — Assign report columns once full table name has been assigned.
- get_all_statuses — Get all statuses that have been synced.
- get_coupons_by_order_ids — Get coupon information from order IDs.
- get_customers_by_orders — Get customer data from Order data.
- get_data — Returns the report data based on parameters supplied by the user.
- get_orders_with_parent_id — Returns oreders that have a parent id
- get_products_by_order_ids — Get product IDs, names, and quantity from order IDs.
- include_extended_info — Enriches the order data.
- initialize_queries — Initialize query objects.
- map_array_by_key — Returns the same array index by a given key
- normalize_order_by — Normalizes order_by clause to match to SQL query.