WooCommerce HPOS and Checkout Blocks Migration: The Safe Switch for Pre-2024 Stores

If your WooCommerce store was built before 2024, it is probably still running on two systems WooCommerce has already replaced. Orders are stored as WordPress posts, and checkout runs on the old [woocommerce_checkout] shortcode. Both still work today, and that is exactly why so many stores have never switched. Nothing is broken, so nothing feels urgent.

The problem is what quietly accumulates underneath. Plugins that read orders through raw SQL against the posts table keep working only because compatibility layers paper over the gap. WooCommerce 10.7, released in April 2026, turned sync-on-read off by default, which means code that writes directly to the old tables no longer gets its changes copied into the new ones automatically. And every new checkout feature WooCommerce ships now lands in the block checkout first, while the shortcode checkout gets nothing new. Staying put is not standing still. It is falling behind one quiet update at a time.

This guide covers both switches in the order that protects your store: the pre-flight audit, the HPOS migration, then the checkout blocks migration, with the staging tests and the rollback plan at each step. Do them together and you only disrupt the store once. Do them in the wrong order, or without the audit, and the most likely outcome is a checkout that takes no money or an export that reports no orders.

Two switches, one job

HPOS and checkout blocks are often talked about as one modernization, but they touch different parts of the store. HPOS, short for High-Performance Order Storage, changes where order data lives in the database. Checkout blocks change how the checkout page is built in the editor. Neither depends on the other, and you can switch one without the other. The reason to do them together is practical: both need the same staging copy, the same plugin audit, and the same round of test orders. Run the audit once and both switches get cheaper.

Both switches also share the same risk profile. The switch itself is a setting, and the setting is easy. The breakage comes from everything connected to the old way: a payment gateway that never learned blocks, an export plugin that queries the posts table, a snippet in functions.php that reads order meta directly. That is why this guide spends more time on the audit and the testing than on the toggles.

One more thing to settle before starting. There is no announced deadline forcing either switch. WooCommerce has published no date for removing posts-based order storage, and it has said it has no plans to phase out the classic shortcode checkout in core. You are not racing a cutoff. You are switching because the old paths get slower, get fewer features, and get less compatible with every plugin update. That is a good reason to plan the move, and a bad reason to rush it on a Friday afternoon.

What HPOS actually changes under the hood

Since WooCommerce first launched, orders have been stored as a custom post type. Every order was a row in wp_posts, with its details scattered across wp_postmeta as key-value pairs. It worked, but it meant every order lookup fought through the same tables as blog posts and pages, and reporting queries had to join across thousands of meta rows to answer simple questions like which orders are unfulfilled.

HPOS moves orders into four dedicated tables: wc_orders for the core record (status, totals, currency, customer, dates), wc_order_addresses for billing and shipping addresses as proper columns, wc_order_operational_data for the internal flags WooCommerce uses while processing an order, and wc_orders_meta for the custom metadata plugins attach to orders. The tables have proper indexes for the queries a store actually runs, so order lists, admin searches, and reporting get noticeably faster, especially on stores with tens of thousands of orders.

HPOS has been the default for new installations since WooCommerce 8.2, released in October 2023. Stores created after that date are already on it unless an incompatible or undeclared plugin blocked it at install time. Existing stores were never migrated automatically. If your store predates late 2023 and nobody has deliberately switched it, you are almost certainly still on legacy storage. Check under WooCommerce, Settings, Advanced, Features, where the Order data storage row shows which one is active.

Two ideas matter more than the table names. First, at any moment one set of tables is authoritative, meaning WooCommerce reads and writes there, and the other is a backup copy. Second, compatibility mode is WooCommerce’s name for synchronization: while it is on, every change to the authoritative tables is copied to the backup tables. Compatibility mode is what makes the whole migration safe, because it keeps a working copy of your orders in the old tables until you are sure nothing still needs them.

The change that made this urgent in 2026 is sync-on-read. Before WooCommerce 10.7, a second mechanism quietly copied into HPOS any changes a plugin wrote directly to the legacy tables at the moment the order was read. That safety net masked a lot of incompatible code. Since version 10.7, released on April 14, 2026, sync-on-read is off by default. Code that still writes directly to wp_posts and wp_postmeta now writes into a copy nothing reads. The order looks fine in one place and wrong in another, and the symptom shows up days later in a report or an export.

What checkout blocks actually change

The classic checkout is a shortcode. The page contains [woocommerce_checkout], WordPress renders the whole form server-side through PHP template hooks, and plugins inject their fields, buttons, and payment methods into those hooks. Developers have customized it this way for a decade, and a huge number of plugins were built around those hooks.

The block checkout replaces that with a Checkout block made of nested blocks for contact details, address, shipping, payment, and order review. The form runs in the browser and talks to the store through the Store API instead of server-rendered PHP. Plugins that want to appear in it must support blocks separately, through the block extensibility model. A plugin written only for the classic checkout simply does not show up. There is no error, no warning on the frontend, just a missing field or a missing payment method.

The block cart and checkout have been the default for new stores since WooCommerce 8.3, released in November 2023. Older stores kept whatever they already had, even through upgrades. A store built in 2022 is almost certainly still on the shortcode checkout unless someone deliberately migrated it. To check yours, open Pages, then Checkout, in the editor. A single Checkout block means blocks. A shortcode block holding [woocommerce_checkout] means classic. You can also check WooCommerce, Status, System status, where the WooCommerce pages table says whether each page contains the block or the shortcode.

The practical difference for a store owner is the feature gap. WooCommerce builds new checkout capabilities for blocks first: express payment placement, client-side validation, the newer address flow, and the extensibility model that replaces template overrides. The classic checkout still works, and WooCommerce has committed to advance notice if that ever changes, but it is a frozen surface. If you want the checkout to keep improving, blocks are where that happens.

Switching is done in the block editor: select the shortcode block, click Transform in the block toolbar, and choose the Checkout block. To go back, select the Checkout block, click Transform, and choose Classic Shortcode. Cart and checkout should be switched together, since WooCommerce treats them as one system. The switch itself takes seconds. The testing after it is the real work, and it is covered below.

Before you touch anything: the pre-flight audit

Every failed HPOS or blocks migration I have seen had the same shape: the toggle worked, and something connected to the old way broke a week later. The audit exists to find those connections before they cost orders. Do it on a staging copy of production, never by inspecting the live admin and guessing.

Start with the plugin inventory. Export the active plugin list and sort it into three groups: plugins that touch orders (payment gateways, shipping, invoicing, exports, ERP connectors, CRM sync, subscription handling, returns), plugins that touch checkout (field editors, delivery date pickers, upsell widgets, custom payment methods, checkout optimizers), and everything else. The first two groups are the audit. The third group almost never matters for these two switches.

For each plugin in the first two groups, check whether it declares HPOS compatibility and block compatibility. WooCommerce shows HPOS declarations on the Features settings page: if an active plugin declares itself incompatible, the HPOS option is greyed out and a warning names the offenders behind a View and manage link. For blocks, open the checkout page in the editor after switching on staging and read the warnings in the Payment Options block, which name gateways that do not support blocks. WooCommerce.com extension listings also carry a compatibility indicator for blocks.

Then hunt for the hidden readers, the code that never appears in any compatibility list. These are the usual suspects: custom code in functions.php or a site-specific plugin that queries orders with WP_Query or raw SQL against wp_posts; reporting scripts and nightly exports that read order data straight from the database; an ERP or accounting connector that pulls orders by post ID; a snippet that adds custom order meta with update_post_meta instead of the order object. Any of these will keep working while compatibility mode is on, because WooCommerce keeps the old tables populated, and break the day you turn it off. The fix is to move them to wc_get_orders() and the WC_Order object before the switch, or to keep compatibility mode on until they are rewritten.

Finally, record the baseline. Note the current WooCommerce and WordPress versions, the PHP version, the active theme and whether it is a block theme or a classic theme, the payment gateways in use, and the order count. Take a full backup of files and database, and confirm you can restore it. A backup that has never been tested is not a recovery plan. If you are also planning a WordPress version upgrade, read the WordPress 7.2 upgrade guide first and sequence the two jobs so you are never debugging two changes at once.

The HPOS switch, step by step

Run this on staging first, end to end, and time it. The duration of the sync on a full production copy is your best estimate for the production window. Then run the same steps on production during a low-traffic period.

Step 1: Turn on sync, keep posts authoritative. In WooCommerce, Settings, Advanced, Features, leave WordPress posts storage selected and tick Enable compatibility mode, then save. Nothing changes for the store yet. WooCommerce starts copying orders into the new tables in the background through Action Scheduler. On a store with a long order history, do not wait for the background jobs. Run the sync directly from the command line, then confirm nothing is left:

wp wc hpos status
wp wc hpos sync
wp wc hpos count_unmigrated

The status command reports whether HPOS and compatibility mode are on, how many orders are out of sync, and how many are waiting for cleanup. The sync command copies orders from the current authoritative store to the other one, in batches of 500 by default. Do not proceed until the unmigrated count reaches zero. If Action Scheduler has a stalled backlog, the sync will barely move, so check WooCommerce, Status, Scheduled Actions if the count is not falling.

Older tutorials use the wp wc cot namespace. WooCommerce 8.9 deprecated it: the old commands still run, but each one prints a warning naming its wp wc hpos replacement, and wc cot migrate no longer works at all. Use the hpos commands.

Step 2: Verify the copy. A sync that reports zero unmigrated orders is not proof the data matches. Run the verification:

wp wc hpos verify_data

This compares every order across both datastores and prints the differing columns and meta keys for any order that does not match. If a few orders differ, inspect them with wp wc hpos diff <order_id> before deciding anything. The verify command has a --re-migrate flag that re-syncs differing orders, but it can overwrite an order, so try it on staging first and only after confirming the destination datastore should be overwritten.

Step 3: Switch HPOS to authoritative, with compatibility mode still on. Select High-performance order storage (recommended) as the order data storage and save, leaving compatibility mode ticked. From this point WooCommerce reads and writes the new tables, and every change is still copied back to the posts tables. This is the safest state in the whole migration: the new system is live, and the old copy is still complete.

Step 4: Run the store for a settling-in period. Keep compatibility mode on for at least a week of normal trading, longer if the store has subscriptions, a nightly export, or an ERP sync. During this week, run every order workflow the store actually uses: new orders, refunds, failed payments retried, subscription renewals, manual orders created in the admin, and the nightly export or sync job. Check each one against both copies. If finance reports that the export shows no orders since the switch, or a plugin reads stale data, you have found a hidden reader while you still have a one-click way back.

Step 5: Turn compatibility mode off, then clean up only when you are sure. When the settling-in week passes clean, untick Enable compatibility mode and save. From here on, switching back means copying your orders back first, so do not rush this step. The wp wc hpos cleanup command removes redundant legacy post data for migrated orders, and its documentation calls it destructive. Run it only after compatibility mode has been off long enough that no plugin reads the legacy copy, and only after a fresh database backup. Without arguments it does nothing; wp wc hpos cleanup all processes every order.

One command to keep in your pocket for the whole process: wp wc hpos compatibility-info groups the active plugins into compatible, incompatible, and uncertain. A plugin that declares support shows as compatible. A plugin that says nothing shows as uncertain, which is not a failure, but it is a plugin to test explicitly on staging before you trust it.

The checkout blocks switch, step by step

Do this after HPOS is settled, not at the same time. If something breaks, you want to know which switch broke it.

Step 1: Confirm what you have, on staging. Open the Cart and Checkout pages in the editor on the staging copy and confirm both are classic shortcode. Note every plugin that adds something to checkout: custom fields, delivery date pickers, gift messages, upsell widgets, newsletter checkboxes, and every payment gateway. Make a list, because the staging test below runs through that list one item at a time.

Step 2: Switch cart and checkout together. On the staging copy, select the shortcode block on the Cart page, click Transform, and choose the Cart block. Do the same on the Checkout page with the Checkout block. Check the block settings sidebar for warnings: when WooCommerce detects an incompatible extension, it surfaces a warning and a one-click revert-to-classic button in the sidebar. Read those warnings before placing any test order. They name the extension that will not work.

Step 3: Place test orders for every payment method. This is the step that catches the failure that costs real money. Place a test order through each active gateway, guest and logged in, and confirm the payment method actually appears at checkout. The most common failure after switching to blocks is the message “There are no payment methods available”, and it usually means a gateway only registered with the classic checkout. If only incompatible gateways are active, no payment methods show at all. The fix is either a gateway update that adds block support, a different gateway, or staying on classic checkout until the gateway catches up. Never discover this from a customer.

Step 4: Test every checkout field and widget on your list. Go through the list from step 1: does the delivery date picker appear, does the gift message field save to the order, does the newsletter checkbox subscribe the customer, does the upsell widget render. A plugin that appears to do nothing on blocks is almost always a plugin built only for the classic checkout. WooCommerce’s own Checkout Field Editor extension, for example, works only with the legacy checkout. Either find a blocks-compatible replacement or keep the classic checkout for now.

Step 5: Switch production, then watch the first real orders. Repeat the transform on production during a low-traffic period, then place a real order yourself and watch the first few customer orders come through. Confirm the order confirmation emails fire, the payment settles, and the order appears correctly in the admin. Keep the classic shortcode version one Transform click away: reverting is fast, and a fast revert is worth more than a clever fix at midnight.

The test order checklist that catches what settings screens miss

Settings screens can report success while the store is broken. Test orders are the only check that matters, and they need to cover the flows customers actually use, not just the happy path. Run this list on staging after each switch, and again on production after the switch goes live.

  • A standard guest checkout and a logged-in customer checkout, each through a different payment gateway.
  • A coupon, a taxable product, a shipping calculation, and a product with variations, all in one order if possible.
  • A refund issued from the admin, and a failed payment retried from the order page.
  • A subscription renewal, if the store sells subscriptions, because renewals exercise order creation code that a first purchase never touches.
  • The nightly export, ERP sync, or accounting connector, checked the morning after the switch, with order counts compared against the admin.
  • Order confirmation and shipping emails, checked in the inbox rather than assumed from the settings page.
  • The admin order list and a reporting view, sorted and filtered, to confirm HPOS queries return the same orders the old tables did.

If any item on this list fails, stop. Fix it on staging, re-run the list, and only then touch production. A migration that passes six of seven checks is not a migration that is nearly done. It is a migration with one live bug.

What breaks most often, and the fix for each

No payment methods at checkout after switching to blocks. This is the most common failure, and it is almost always a gateway that does not support the Checkout block. Confirm at WooCommerce, Settings, Payments that at least one gateway is enabled and set up, then open the checkout page in the editor and read the warning in the Payment Options block, which names the gateway that does not support blocks. Update the gateway, switch to a gateway with block support, or transform the checkout back to the classic shortcode until the gateway catches up.

Custom checkout fields vanish on blocks. Field editor plugins and custom code written for the classic checkout use PHP hooks that the block checkout does not call. The field simply never renders. Check whether the plugin has a blocks-compatible version or a dedicated block, and if it does not, either rebuild the field as a block or stay on classic. Do not hack the field back in with JavaScript. It will break again on the next WooCommerce update.

The nightly export shows no orders since the switch. This is the classic HPOS hidden reader. The export queries wp_posts directly, and since the switch WooCommerce writes orders only to the HPOS tables. While compatibility mode is on, the export keeps working, which is why the failure appears a week later, after compatibility mode is turned off. The fix is to point the export at the order object or the HPOS tables. If the export is a third-party plugin, check for an HPOS-compatible update before the switch, not after.

Order data differs between the two copies. The verify command prints the differing columns and meta keys. Small differences often come from a plugin writing meta directly to postmeta after the sync ran. Find the writer, move it to the order object, re-run the sync for the affected orders, and verify again. Do not ignore a short diff list. A handful of wrong orders is worse than a hundred, because nobody notices them until a customer complains.

Sync barely moves on a large store. The background sync runs through Action Scheduler, so a stalled cron system or a large Action Scheduler backlog can leave the migration looking busy while nothing copies. Run wp wc hpos sync directly from the command line with an explicit batch size, and check WooCommerce, Status, Scheduled Actions for stuck jobs. On a store with hundreds of thousands of orders, plan the sync for low-traffic hours and expect it to take several hours.

Webhooks fire in a loop, or an order flips back to pending. These were real bugs in the sync-on-read era, fixed in WooCommerce 10.4 in December 2025, and they are a reminder of why the order of operations matters. If you see either symptom, check the WooCommerce version first, then check whether any plugin is writing order data directly to the legacy tables. With sync-on-read off by default since 10.7, direct writes to the old tables are now silent data loss, not a quirk.

When to hire a developer for the switch

Most small stores with a standard plugin stack can do this themselves by following the steps above on staging. Bring in a developer when any of these apply: the store has meaningful daily revenue and cannot afford a broken checkout; the plugin audit turns up custom code, an ERP connector, or a nightly export nobody fully understands; subscriptions or B2B pricing depend on order data; or the staging tests keep failing in ways the plugin documentation does not explain.

As a developer who builds and maintains stores on both WooCommerce and Shopify, I regularly see the same pattern: the switch itself takes an afternoon, and the audit and testing take the rest of the week. That is the correct ratio. If you are weighing whether to keep investing in WooCommerce or move platforms entirely, the WooCommerce to Shopify migration guide covers the costs, the timeline, and the SEO checklist for that decision. Either way, do not let the store drift on legacy systems because nobody wanted to open the settings page.

One related job worth doing in the same maintenance window: a proper speed pass. HPOS helps the admin and order queries, but the frontend has its own bottlenecks, and the WooCommerce speed optimization guide covers them in the order that matters, from cart fragments to caching. If the store also needs a security review, the WordPress hacked-site cleanup guide covers the cleanup order that stops reinfection, which is the same discipline as this migration: find every hidden reader before you change anything.

FAQs

Is HPOS safe to enable on a live store?

Yes, if you follow the order in this guide: back up first, enable compatibility mode on staging, sync, verify, switch authoritative with compatibility mode still on, settle in for a week, and only then turn compatibility mode off. The dangerous version is toggling HPOS on production with no staging test and no compatibility mode. That is not a migration, it is a gamble.

Will HPOS make my store faster?

It makes order queries, the admin order list, and reporting noticeably faster, especially on stores with a large order history. It does not speed up the frontend on its own. If the shop pages are slow, the cause is usually images, cart fragments, uncached checkout, or plugin scripts, which the WooCommerce speed optimization guide covers separately.

Can I switch back to legacy order storage after enabling HPOS?

Yes, while compatibility mode is on, switching back is straightforward because WooCommerce keeps the posts tables synchronized. After compatibility mode is turned off, switching back means copying orders back first, which is a real migration in the other direction. Treat turning compatibility mode off as the point of no return, and only do it after a clean settling-in week.

Do I have to switch to checkout blocks?

No. WooCommerce has said it has no plans to phase out the classic shortcode checkout in core, and there is a one-click revert if an extension is not block-compatible. The reason to switch is the widening feature gap: new checkout capabilities land in blocks first. If a gateway or a field plugin you depend on has no block support, staying on classic is the correct decision for now.

What if a payment gateway does not support checkout blocks?

Check for a gateway update first, since block support has been added to most major gateways since 2024. If there is no update, either switch to a gateway with block support or keep the classic checkout. Do not switch to blocks and hope customers will not notice the missing payment method. They will notice, and they will leave.

How long does the HPOS migration take?

The toggle takes minutes. The sync takes anywhere from minutes on a small store to several hours on a store with hundreds of thousands of orders. The audit, staging tests, and settling-in week take the rest of the time. Budget a week from audit to compatibility mode off, and run the production switch during low-traffic hours.

The short version

HPOS moves orders into dedicated tables and checkout blocks rebuild the checkout as blocks instead of a shortcode. Both have been the default for new stores since late 2023, and neither has an announced removal date for the old way, so this is a planned upgrade, not a deadline. Audit the plugins and custom code first, because hidden readers are what actually break. Migrate HPOS with compatibility mode on, sync, verify, switch authoritative, settle in for a week, then turn compatibility mode off. Switch checkout blocks on staging, test every payment method and checkout field with real test orders, then switch production and watch the first real orders. And if the audit turns up custom code or an export nobody understands, get a developer involved before the switch, not after the first missing order.

If your WooCommerce store is still on legacy storage and the shortcode checkout, and you would rather have a developer run the switch than risk a broken checkout, Hire Shopify Developer for a developer-led migration, or see the approach on real stores in my portfolio.