WooCommerce Address Sync
Automatically syncs incomplete billing and shipping addresses in WooCommerce
by Mohammed Omar · github.com/makiomar/woocommerce-address-sync · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/makiomar/woocommerce-address-sync/archive/refs/heads/main.zipReadme
WooCommerce Address Sync Plugin
A WordPress plugin that automatically synchronizes incomplete billing and shipping addresses in WooCommerce, solving the common issue where customers have complete information in one address type but incomplete in the other.
Features
- Automatic Sync: Automatically syncs addresses during checkout and customer profile updates
- Bulk Operations: Sync all existing customers and orders with incomplete addresses
- Flexible Direction: Choose sync direction (billing to shipping, shipping to billing, or both ways)
- Admin Interface: Easy-to-use admin panel for managing address synchronization
- Order Management: Sync addresses for individual orders from the order edit page
- Statistics: View counts of customers and orders with incomplete addresses
Installation
- Upload the plugin files to
/wp-content/plugins/woocommerce-address-sync/directory - Activate the plugin through the 'Plugins' menu in WordPress
- Go to WooCommerce > Address Sync to configure settings
Usage
Automatic Sync
The plugin automatically syncs addresses when:
- Customers complete checkout
- Customers update their address in their account
- Orders are processed
Manual Sync
- Go to WooCommerce > Address Sync in your WordPress admin
- Configure your sync preferences:
- Enable Auto Sync: Automatically sync addresses during checkout and profile updates
- Sync Direction: Choose which direction to sync addresses
- Use bulk operations to sync existing data:
- Sync All Customers: Sync addresses for all customers with incomplete information
- Sync All Orders: Sync addresses for all orders with incomplete information
Individual Order Sync
- Go to any order in WooCommerce > Orders
- Click the "Sync Addresses" button to sync that specific order
Settings
Sync Direction Options
- Both Ways (Billing ↔ Shipping): Syncs from complete address to incomplete address
- Billing to Shipping Only: Only syncs from billing to shipping addresses
- Shipping to Billing Only: Only syncs from shipping to billing addresses
How It Works
The plugin identifies incomplete addresses by checking for missing required fields:
- First Name
- Last Name
- Address Line 1
- City
- State/Province
- Postal Code
- Country
When an incomplete address is found, the plugin copies the complete address information from the other address type, ensuring all shipping plugins have the necessary information regardless of which address type they use.
Compatibility
- WordPress 5.0+
- WooCommerce 3.0+
- PHP 7.4+
Support
This plugin follows WordPress PHP Coding Standards (WPCS) and uses standard WordPress and WooCommerce hooks for maximum compatibility.
Changelog
Version 1.0.0
- Initial release
- Automatic address synchronization
- Bulk sync operations
- Admin interface
- Flexible sync directions
- Order management integration