Get Product Stats is a WordPress ability from Cart Abandonment Recovery for WooCommerce — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.
Install Free Plugin →Get Product Stats
Read-onlyList the top abandoned products, ranked by how often they were left in a cart.
Requires the Cart Abandonment Recovery for WooCommerce plugin (which itself requires WooCommerce active) on a WordPress core with the Abilities API available — each ability's registration is guarded by a function_exists('wp_register_ability') check. Every ability also requires the current user to have the 'manage_woocommerce' capability.
What it does
This ability returns the top N products by abandonment frequency for a chosen date range, defaulting to the last 7 days and the top 10 products. Each result includes the product ID, product name, how many times it was abandoned, and the total value of abandoned carts containing it, sorted by times_abandoned descending. It delegates directly to the plugin's own top-products report helper, so the ranking mirrors the plugin's admin reports. This lets an AI assistant quickly identify which products to prioritize for recovery campaigns or promotions, and it's designed to be paired with wcar/get-dashboard-stats for a fuller picture.
See it in action
You ask your AI assistant
"Which products are most often abandoned in carts this month, and how much potential revenue is tied up in each?"
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| start_date | string | No | Start date in YYYY-MM-DD format (defaults to 7 days ago). |
| end_date | string | No | End date in YYYY-MM-DD format (defaults to today). |
| limit | integer | No | Maximum number of products to return (default 10). |
Returns
An object with a products array (each item has product_id, product_name, times_abandoned, and total_value) and the resolved period (start/end dates).
Permission
The current user must have the 'manage_woocommerce' capability.
More Cart Abandonment Recovery for WooCommerce abilities
Get All Settings
Retrieve every plugin setting, grouped by tab, with each setting's current value.
Get Dashboard Stats
Pull aggregated cart abandonment, recovery, and lost-order stats for a date range.
Get Setting
Look up the current value and metadata for one specific setting by key or label.
Update Setting
Write a new value to one plugin setting, identified by key or label.