Title: Sales by State Report for SureCart
Author: Rodolfo Melogli
Published: <strong>September 9, 2026</strong>
Last modified: September 9, 2026

---

Search plugins

![](https://ps.w.org/sales-by-state-report-for-surecart/assets/banner-772x250.png?
rev=3688278)

![](https://ps.w.org/sales-by-state-report-for-surecart/assets/icon-256x256.png?
rev=3688222)

# Sales by State Report for SureCart

 By [Rodolfo Melogli](https://profiles.wordpress.org/businessbloomer/)

[Download](https://downloads.wordpress.org/plugin/sales-by-state-report-for-surecart.1.0.1.zip)

 * [Details](https://wordpress.org/plugins/sales-by-state-report-for-surecart/#description)
 * [Reviews](https://wordpress.org/plugins/sales-by-state-report-for-surecart/#reviews)
 *  [Installation](https://wordpress.org/plugins/sales-by-state-report-for-surecart/#installation)
 * [Development](https://wordpress.org/plugins/sales-by-state-report-for-surecart/#developers)

 [Support](https://wordpress.org/support/plugin/sales-by-state-report-for-surecart/)

## Description

Sales by State Report for SureCart 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 **SureCart  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 [SureCart](https://wordpress.org/plugins/surecart/). 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](https://salesbystate.com/)

#### How to use

 1. Install and activate SureCart, then install and activate this plugin.
 2. Go to **SureCart  Sales by State**.
 3. Choose a **country**, a **year**, and the **order statuses** that should count.
 4. The table lists Net Sales and Gross Sales for every state in that country.

If the store already has orders, the plugin imports them from the SureCart API into
its report table in the background. A progress bar appears until that finishes. 
You can leave the page; the import 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 rather than hidden

#### Filters

 * **Country** — United States, Canada, and United Kingdom. Defaults to the store’s
   tax address country when that country has states, otherwise the United States.
 * **Year** — a rolling list that starts ten years back and gains a year each January
   without dropping one. Defaults to the current year.
 * **Order status** — a checkbox list of SureCart order statuses. Defaults to Paid.

#### How the figures are calculated

Gross Sales is the checkout total. Net Sales is the checkout total minus tax and
shipping. Both use the values SureCart stores on the checkout (converted from cents).

Refunds are not modelled as separate records. An order that has been fully refunded
is controlled by the status filter. A partial refund is not deducted from its order’s
total.

#### Performance

Sales for a whole year are answered by one indexed query that returns one row per
state. The response size does not grow with the number of orders.

SureCart keeps orders on its API, not in a local WordPress table. Existing orders
are imported from the SureCart API into the report table once. After that import,
opening or changing the report filters does not call the API.

#### 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.

During the one-off import, and when a checkout is confirmed, the plugin reads order,
checkout and address data from the SureCart API. It does not send data to any other
service, includes no third-party analytics, and collects no telemetry.

Deleting the plugin removes the table and its options.

## Installation

 1. Upload the plugin to `/wp-content/plugins/sales-by-state-report-for-surecart`, 
    or install it through the Plugins screen.
 2. Activate the plugin. SureCart must already be installed and active.
 3. Go to **SureCart  Sales by State**.

On a store that already has orders, those orders are read from the SureCart API 
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 Paid is selected, tick any other statuses that should count.

To confirm how much of the import has finished, open **Tools  Site Health  Info  
Sales by State Report for SureCart**.

### Where does the report appear?

Under **SureCart  Sales by State**. Shop managers who can view SureCart orders can
open it.

### 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 invoice issue date when the checkout belongs to an invoice, then the date the
checkout was paid, then the date the order was created.

### Can I change the default order status?

Yes, with the `sbssc_default_statuses` filter.

### Where can I get support?

Use the [WordPress.org support forum](https://wordpress.org/support/plugin/sales-by-state-report-for-surecart/)
for this plugin.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Sales by State Report for SureCart” is open source software. The following people
have contributed to this plugin.

Contributors

 *   [ Rodolfo Melogli ](https://profiles.wordpress.org/businessbloomer/)

[Translate “Sales by State Report for SureCart” into your language.](https://translate.wordpress.org/projects/wp-plugins/sales-by-state-report-for-surecart)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/sales-by-state-report-for-surecart/),
check out the [SVN repository](https://plugins.svn.wordpress.org/sales-by-state-report-for-surecart/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/sales-by-state-report-for-surecart/)
by [RSS](https://plugins.trac.wordpress.org/log/sales-by-state-report-for-surecart/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.1

 * Code style cleanup, no functional change. Fixed WP.org listing banner.

#### 1.0.0

 * Initial release.

## Meta

 *  Version **1.0.1**
 *  Last updated **6 days ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.4 or higher **
 *  Tested up to **7.1**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [analytics](https://wordpress.org/plugins/tags/analytics/)[sales report](https://wordpress.org/plugins/tags/sales-report/)
   [sales tax](https://wordpress.org/plugins/tags/sales-tax/)[sales-by-state](https://wordpress.org/plugins/tags/sales-by-state/)
   [surecart](https://wordpress.org/plugins/tags/surecart/)
 *  [Advanced View](https://wordpress.org/plugins/sales-by-state-report-for-surecart/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/sales-by-state-report-for-surecart/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/sales-by-state-report-for-surecart/reviews/)

## Contributors

 *   [ Rodolfo Melogli ](https://profiles.wordpress.org/businessbloomer/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/sales-by-state-report-for-surecart/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://salesbystate.com/)