Docs: WooCommerce

WooCommerce extension

Enhanced backup for WooCommerce stores with orders, products, customers, and store settings export.

v1.1.0Updated 2026-09-27

Requires LOX backup for WordPress

This extension requires the LOX Backup for WordPress plugin to be installed and activated first.

Requirements

  • WordPress 5.6 or higher
  • WooCommerce 5.0 or higher
  • LOX Backup for WordPress plugin
  • PHP 7.4 or higher

Installation

  1. Install LOX Backup for WordPress

    Follow the WordPress plugin installation guide first.

  2. Download the WooCommerce extension

    Click the download button above.

  3. Upload and activate

    Go to Plugins → Add New → Upload Plugin and activate.

  4. Configure WooCommerce backup options

    A new "WooCommerce Backup" section will appear in LOX Backup settings.

Exported data

Orders

Complete order data exported as JSON:

  • Order ID, number, status, currency
  • Dates (created, modified, completed, paid)
  • Totals (subtotal, tax, shipping, discount)
  • Payment method and transaction ID
  • Billing and shipping addresses
  • Line items with product details
  • Shipping methods
  • Applied coupons
  • Refunds

Products

Full product catalog export:

  • Product details (name, SKU, description)
  • Pricing (regular, sale, dates)
  • Stock management settings
  • Dimensions and weight
  • Categories and tags
  • Attributes and variations
  • Image IDs

Customers

Customer profiles with:

  • Email and account details
  • Billing address
  • Shipping address
  • Order count and total spent

Additional data

  • Coupons - All coupon codes with settings
  • Tax Rates - Tax rules and rates
  • Shipping Zones - Zones and shipping methods
  • Store Settings - Currency, units, checkout options

HPOS compatibility

This extension is fully compatible with WooCommerce High-Performance Order Storage (HPOS). Order data is exported using the WooCommerce CRUD API, ensuring compatibility with both traditional post-based storage and the new HPOS tables.

Backup profiles (updated in v1.1.0)

A profile says what the plugin backs up, how often, and how long LOX keeps each copy. Profiles are stored in LOX, so you can define them in two places:

  • In the plugin: WooCommerce → LOX Profiles → New profile. You can start from a LOX template and change it before saving.
  • In the LOX dashboard: Backups → Profiles → New profile, choosing this site. The site appears there once it has sent LOX a backup.

The plugin only lists and runs the profiles of its own site. Each profile sets:

  • What to back up: Catalog (catalog), Orders and customers (transactional), Files (files), Configuration (config)
  • Frequency: hourly up to monthly, with a preferred day for weekly and monthly profiles (day 31 = last day of the month)
  • Time window and timezone: the hours a scheduled run may start, or any time
  • Retention and immutability: how long LOX keeps each copy, and how many of those days it cannot be deleted
  • Active: an inactive profile is kept but never runs

Running profiles on schedule

The plugin runs its site's active profiles when they are due, from its scheduled task. Each backup is attached to its profile, and the next run time is saved in LOX. Call the task every hour:

0 * * * * curl -s "https://your-site.com/wp-content/plugins/lox-backup/cron.php?token=YOUR_TOKEN" > /dev/null 2>&1

Scheduled WooCommerce profiles run through the task of LOX Backup for WordPress, version 1.4.0 or later; its settings show the URL with its token.

Backups that LOX requests from the site (PULL) follow the site's schedule in LOX, not the profiles.

Restoring data

WooCommerce data is exported as JSON files in the woocommerce/ directory of your backup:

  • orders.json
  • products.json
  • customers.json
  • coupons.json
  • tax-rates.json
  • shipping-zones.json
  • settings.json

Use the WooCommerce REST API or import plugins like WP All Import to restore this data.