Description
Sales by State Report for FluentCart adds a report showing net and gross sales grouped by state, county, or province, for a chosen year and a chosen set of order statuses.
It appears under FluentCart Sales by State.
Use it when you need to know how much each state bought in a given year, counting only the order statuses that matter for sales tax or territory planning.
This plugin requires FluentCart. There are no settings screens to configure. After you activate the plugin, open the report and choose a country, year, and order statuses.
Documentation: salesbystate.com
How to use
- Install and activate FluentCart, then install and activate this plugin.
- Go to FluentCart Sales by State.
- Choose a country, a year, and the order statuses that should count.
- The table lists Net Sales and Gross Sales for every state in that country.
If the store already has orders, the plugin copies them into its report table in the background. A progress bar appears until that finishes. You can leave the page; the copy continues on its own.
What the report shows
- Net Sales and Gross Sales for every state in the selected country
- A summary of both figures across all states
- Sortable columns and paginated results
- States with no sales, shown as zero instead of being hidden
Filters
- Country — any country FluentCart defines states or provinces for. Defaults to the store’s base country.
- Year — starts ten years before the current year. Each January a new year is added; earlier years stay on the list. Defaults to the current year.
- Order status — a checkbox list of FluentCart order statuses. Defaults to Completed.
How the figures are calculated
Gross Sales is the order total. Net Sales is the order total minus tax and shipping. Both use the values FluentCart stores on the order (converted from cents).
Refunds are not modeled as separate records. Whether a fully refunded order counts depends on the status filter. A partial refund is not deducted from the order total.
Performance
A full year of sales is loaded with one indexed query that returns one row per state. The response size does not grow with the number of orders.
Data and privacy
The plugin creates one custom database table holding, per order: the order ID, order status, creation and payment dates, billing and shipping country and state codes, currency, and the order, tax, shipping and net totals. It stores no names, addresses, email addresses or any other personal data.
Nothing is sent anywhere. The plugin makes no external HTTP requests, includes no third-party services, and collects no analytics or telemetry.
Deleting the plugin removes the table and its options.
Installation
- Upload the plugin to
/wp-content/plugins/sales-by-state-report-for-fluentcart, or install it through the Plugins screen. - Activate the plugin. FluentCart must already be installed and active.
- Go to FluentCart Sales by State.
On a store that already has orders, those orders are read into the report table once. This starts on its own. If it has not finished when you open the report, a progress bar shows how far along it is.
FAQ
-
The report shows zeros but I have orders.
-
Your existing orders are still being read into the report table. Open the report and the progress bar will show how far along it is. It continues on its own; you can leave the page.
If only Completed is selected, tick any other statuses that should count.
-
Which address does it group by?
-
The shipping address, falling back to the billing address for orders that have no shipping address, such as digital-only orders.
-
Are refunds deducted?
-
The status filter decides whether an order counts. Partial refunds are not deducted from the order’s total.
-
Which date does the year filter use?
-
The date the order was completed, falling back to the date it was created for orders that were never completed.
-
Can I change the default order status?
-
Yes, with the
sbsfc_default_statusesfilter. -
Where can I get support?
-
Use the WordPress.org support forum for this plugin.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“Sales by State Report for FluentCart” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Sales by State Report for FluentCart” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.0.0
- Initial release.