How to Add Status Badges to a WooCommerce Orders Table

Updated July 2026 • 7 min read • By Fahad Murtaza • By Fahad Murtaza

TableCrafter table builder, connect Gravity Forms, Google Sheets, Airtable, CSV, or JSON data sources
TableCrafter table builder, connect Gravity Forms, Google Sheets, Airtable, CSV, or JSON data sources

Order status is the heartbeat of any WooCommerce store, but the default WooCommerce orders screen is only visible to admins. TableCrafter lets you surface a real-time orders table anywhere on your site, with color-coded status badges that make pending, processing, completed, and refunded orders instantly scannable at a glance. In this guide you will build a WooCommerce orders table from scratch and configure status badges so every row communicates its state without anyone needing to read a word. WordPress powers 43% of all websites globally (W3Techs, July 2026), and TableCrafter bridges the gap between the data you collect and the tables your users need to see, no custom PHP, no dashboard access required for viewers. The free version on WordPress.org supports CSV, JSON, Google Sheets, and Excel. Pro adds Gravity Forms, Airtable, Notion, WooCommerce, REST APIs, inline cell editing, export to CSV and Excel, role-based column visibility, and auto-refresh. Every table embeds on any page with a [tablecrafter] shortcode or the native Gutenberg block.

What You Need Before You Start?

The WooCommerce data source is a Pro-only feature. Status badges, however, work on all plans including the free version. For this guide you need both, so a Pro license is required for the WooCommerce source. Make sure you have the following in place before diving into the builder:

Tier note: The WooCommerce data source requires Pro. Status badges are a Free feature and work on any data source. The free tier supports unlimited tables from JSON, CSV, Google Sheets, and Excel sources with read-only display, search, sort, and pagination. If you already have a non-WooCommerce table, you can configure status badges on it without a Pro upgrade.

If you are still evaluating, the free plugin is available on WordPress.org and you can upgrade to Pro from the TableCrafter settings screen without reinstalling anything. Your table configurations are preserved through the upgrade.

Step 1: How Do I Create a New Table with the WooCommerce Data Source?

Navigate to TableCrafter → Tables → Add New in your WordPress admin. The table builder opens with a data source selector at the top.

  1. Under Data Source, choose WooCommerce. TableCrafter will query your WooCommerce orders directly, no Gravity Forms entry needed.
  2. Give the table a clear internal name, such as WooCommerce Orders. This name is only visible to admins in the table list.
  3. Under Columns, click Add Column and select the fields you want to display. Typical choices for an orders table include: Order Number, Customer Name, Order Date, Order Total, Payment Method, and Order Status.
  4. Drag the columns into the order that makes sense for your use case, Order Status is usually most useful near the front so visitors can filter by it quickly.
Tip: TableCrafter Pro has no column limit. Add as many or as few fields as your audience needs. For a customer-facing orders table you might strip it down to Order Number, Date, Total, and Status only.

Click Save Table before moving to badge configuration. TableCrafter assigns the table an integer ID, you will use this ID in the shortcode later.

Step 2: How Do I Configure Status Badges on the Order Status Column?

Status badges are TableCrafter's text-to-color mapping system. For each distinct value a column can hold, you define a label and a background/text color pair. TableCrafter then replaces the raw cell text with a styled pill badge at render time.

To configure badges on your Order Status column:

  1. In the column list, click the gear icon next to your Order Status column to open column settings.
  2. Scroll to the Status Badges section and toggle it on.
  3. Click Add Badge Rule for each WooCommerce order status you want to style. WooCommerce ships with the following statuses out of the box:
    • pending, awaiting payment
    • processing, payment received, order being fulfilled
    • on-hold, awaiting manual action
    • completed, fulfilled and closed
    • cancelled, cancelled by admin or customer
    • refunded, payment returned
    • failed, payment failed
  4. For each rule, enter the exact status string in the Value field and choose a Background Color hex and a Text Color hex. Both hex fields are required; if either is missing or not a valid hex color, the rule is dropped. The badge displays the raw cell value as its text, there is no separate display label field.

A sensible starting color scheme that matches WooCommerce conventions. Note that WooCommerce stores the status without the wc- prefix for most statuses; verify the exact stored string in your WooCommerce orders admin before defining rules:

pending     → bg: #f0ad4e  text: #fff
processing  → bg: #5b9bd5  text: #fff
on-hold     → bg: #f0ad4e  text: #fff
completed   → bg: #5cb85c  text: #fff
cancelled   → bg: #d9534f  text: #fff
refunded    → bg: #9b59b6  text: #fff
failed      → bg: #d9534f  text: #fff
Case-sensitive matching: TC_Badge_Service uses array_key_exists() for lookups, which is case-sensitive. If WooCommerce stores processing (lowercase) and your rule uses Processing (capital P), no badge renders. Always copy the exact value from the WooCommerce order status column to confirm casing.

Click Save Table once all badge rules are defined. TableCrafter stores the badge configuration alongside the column metadata; nothing is written to the WooCommerce database.

Step 3: How Do I Set Role-Based Permissions?

A WooCommerce orders table often needs different audiences: shop managers should see every order, while customers might only see their own. TableCrafter Pro handles both levels with its role-based permission system.

In the table builder, open the Permissions tab:

Note: All permission checks are enforced server-side. TableCrafter validates capabilities on every AJAX call to wp-admin/admin-ajax.php with nonce validation, restricted columns are never included in the JSON response for unauthorized roles, not merely hidden with CSS.

Save your permissions settings before embedding the table.

Step 4: How Do I Embed the Table with the Shortcode?

TableCrafter registers three shortcode aliases that all resolve to the same handler. Use whichever fits your workflow:

[tablecrafter id="X"]
[tablecrafter id="X"]
[tablecrafter id="X"]

Replace X with the table ID shown in TableCrafter → Tables. Paste the shortcode into any page, post, or widget. If you are using the block editor, drop in a Shortcode block. Elementor users can use a Shortcode widget.

For a minimal orders status page you might use:

[tablecrafter id="12"]

TableCrafter will render the table with full pagination, search, and column sorting enabled by default. The Order Status column will display your configured badges instead of raw status strings.

Auto-refresh: If your store processes orders frequently, enable the auto-refresh option in table settings. TableCrafter will poll for new data at your configured interval via AJAX, no page reload required. This is especially useful on a wall-mounted fulfillment screen or a shop manager dashboard.

Step 5: How Do I Fine-Tune and Test?

With the table embedded, load the page in a browser and verify the following before calling the setup complete:

Once everything checks out, your WooCommerce orders table with status badges is production-ready. Any new orders WooCommerce creates will appear in the table automatically on the next data refresh, there is no manual sync step.

Frequently Asked Questions

What do you need before you start?

This feature sits firmly in TableCrafter's Pro tier. Make sure you have the following in place before diving into the builder:

What Is TableCrafter?

TableCrafter is a WordPress plugin that turns data from Gravity Forms, Google Sheets, Airtable, Notion, REST APIs, CSV files, and WooCommerce into interactive, sortable, filterable frontend tables. Embed any table on any WordPress page with the [tablecrafter] shortcode or the native Gutenberg block. No PHP or custom development required. The free version supports CSV, JSON, Google Sheets, and Excel. Pro adds Gravity Forms, Airtable, Notion, WooCommerce, REST APIs, inline cell editing, export to CSV and Excel, role-based column visibility, and auto-refresh.

Does this require PHP or developer skills?

No. TableCrafter is configured entirely through the WordPress admin interface. You choose your data source, map fields to columns, and set display preferences using point-and-click controls. Embedding uses the [tablecrafter] shortcode or the native Gutenberg block.

Is the free version sufficient or do I need Pro?

The free plugin on WordPress.org supports CSV, JSON, Google Sheets, and Excel sources with unlimited tables, rows, and columns. Pro adds Gravity Forms, Airtable, Notion, WooCommerce, REST API sources, inline cell editing, bulk row actions, export to CSV and Excel, role-based column visibility, and auto-refresh every N seconds.

Ready to try it?

TableCrafter is free on WordPress.org. Status badges work on the free plan. Pro unlocks WooCommerce and other advanced data sources, inline editing, and role-based column permissions.