Store deployment

Move WooCommerce staging to live without overwriting orders

Moving WooCommerce staging to live without losing orders starts with deciding which changes actually need transferring. A full copy of an older staging database can replace the orders, customers and stock updates created since that copy.

Time: Plan and rehearse before scheduling deployment Level: Advanced
Neil McNaught, founder of BugShield and WordPress author
Written by
Written by
Updated
Updated

Treat live trading records as newer information

Staging is a separate copy used for testing. While you adjust its design or plugins, the live shop continues taking orders. Those two copies now contain different changes. Deployment needs an explicit transfer plan rather than a button that treats the whole staging site as the newest version.

WordPress Reading settings showing the search engine visibility checkbox
An earlier WordPress Reading settings example. Search visibility is one staging check, but this setting does not restrict access or prevent payment and email effects. It is not evidence of an order-preserving deployment. Credit: WordPress Training Team / Learn WordPress, CC BY-SA 4.0.

Classify the change before selecting a transfer

List the approved changes and where they are stored. A stylesheet or custom plugin change can be file-based. Builder layouts, menus, settings and product changes can involve the database. A software update can also require a database migration, so confirm that the selected files remain compatible with the live data.

For a file-only change, identify the exact files and leave live order data in place. For database-backed work, use the builder’s supported export or a reviewed deployment method that can transfer the required content without replacing unrelated records. Do not assume all page-builder changes live in the theme folder.

Check storage and extension support

Record whether live uses HPOS or legacy order storage and whether compatibility synchronisation is enabled. A list of excluded tables from an older tutorial is not a general order-preservation plan. WP STAGING documents its WooCommerce exclusions for its own supported workflow; confirm the installed tool’s behaviour rather than applying those instructions to every host.

Customers, stock, refunds, subscriptions and extension records can span other data. Ask the deployment tool’s provider which items it preserves and what remains outside its scope. For unfamiliar HPOS state, use the order-storage guide before proceeding.

Keep the rehearsal separate from live customers

Use a protected copy with outgoing customer mail contained and payment gateways connected to test environments. Preserve WooCommerce Subscriptions’ staging protections; do not activate copied live subscriptions merely to make a rehearsal run.

Rehearse the exact transfer with test orders created after the initial clone. Record the software versions, storage mode, transferred files or content, excluded data and before-and-after order references. Keep the results with the deployment plan so the final transfer can be checked against the rehearsal.

Agree the live change window and recovery plan

Take a current usable backup and preserve the previous versions of the changed files. Agree who controls the transfer and how new orders, callbacks, stock synchronisation and scheduled jobs are handled during it. A maintenance screen does not necessarily stop background writes or payment notifications.

If the method requires a quiet database, coordinate a controlled pause with the host and integration owners. Record the last reconciled transaction and the conditions for reopening. Do not proceed with a database overwrite while the preservation plan is uncertain.

Reconcile the store before calling deployment complete

Compare the known newer order references, totals, customers, stock and relevant subscription records. Check the updated page on mobile and desktop, then make an authorised test purchase and inspect its notification and payment result. Confirm background processing still runs.

If verification fails, reverse only the deployed change where possible. A rollback to an older full database creates its own order-loss risk. The WooCommerce recovery guide explains that decision; use the staging setup guide for creating and containing the initial copy.

Get help with the next step

If the evidence is unclear, get help planning a staging deployment. Share the symptom and checks already completed so the next step can be agreed.

Questions answered

WooCommerce deployment questions

Can I push the whole staging database to a trading store?

Only with a verified plan for every newer live record and controlled writes. A direct overwrite from an older clone can remove orders and other changes.

Does excluding order tables preserve everything?

No. Customers, stock, subscriptions and extension data can live elsewhere. Storage modes and synchronisation add further dependencies.

Are Elementor layouts file-only changes?

Do not assume so. Builder content and settings can be stored in the database. Use a supported export or reviewed content-transfer workflow.

Does a maintenance page stop all order-related changes?

No. Scheduled tasks, integrations and payment callbacks can continue. Coordinate the actual sources of writes before a database transfer.

What should the rehearsal prove?

Create test orders after cloning, perform the exact planned transfer and verify those orders, customer links, stock and relevant subscriptions remain correct. Record the tested versions and limitations.

Need a hand with your WordPress site?

Tell us what happened and where you got stuck. A BugShield developer can help you work out the next step and confirm a price for the fix.

Explore help with this issue

Accessibility settings

Adjust how this site looks and moves. Your choices are saved in this browser.