Synchronize the WooCommerce Products, Stock, Orders, Customers, Coupons in Multiple WooCommerce Sites.
Synchronize the WooCommerce Products, Stock, Orders, Customers, Coupons in Multiple WooCommerce Sites.
Features
- Synchronize Products, Stock, Orders, Customers, Coupons.
- Synchronize using WooCommerce API.
- Synchronize Logs.
Screenshots
Configure API keys for both the main site and subsite.
Setting the Synchronzation of Products, Orders, Customers & Coupons.
Synchronization Log.
Manual Synchronization.
Product update and sync.
FAQ
Is getting SSL error?
Confirm SSL is enabled on both sites for secure data transfer. Without SSL, API key access will be ineffective. For testing on localhost or development environments, use self-signed SSL. Include the following code in the ‘functions.php’ or main plugin file on both sites.
add_filter('http_request_args', 'wp_wc_allow_unsafe_url_for_testing', 0, 1);
function wp_wc_allow_unsafe_url_for_testing($args) {
if (defined('WP_ENVIRONMENT_TYPE') && 'development' === WP_ENVIRONMENT_TYPE) {
$args['sslverify'] = false;
$args['reject_unsafe_urls'] = false;
}
return $args;
}
Please replace ‘development’ with the actual value that indicates your development environment if your setup uses a different constant or configuration.
Remember to remove or adjust this code before deploying your website to a live production environment, as using self-signed or invalid SSL certificates in production can expose your site and users to security threats.
How To Fix the “cURL Error 28: Connection Timed Out”
Increase the HTTP request timeout,
Place this code snippet in your theme’s functions.php
file, If you need a longer timeout, you can adjust the value accordingly.
// Increase HTTP request timeout
function custom_http_request_timeout( $timeout ) {
$timeout = 60; // in seconds
return $timeout;
}
add_filter( 'http_request_timeout', 'custom_http_request_timeout' );
If you’re still encountering errors after increasing the timeout, follow the troubleshooting steps you mentioned:
1. Check Firewall settings in Security Plugin: Ensure that your security plugin is not blocking outgoing requests.
2. Check site SSL Certificate: Verify that your SSL certificate is valid and properly configured.
3. Check the cURL version: Make sure cURL is installed and updated to the latest version on your server.
4. Check the PHP memory limit: Ensure that your PHP memory limit is sufficient for the operations you’re performing.
ChangeLog
1.1.2
- Fixed Product Sync.
- Small Fixes.
1.1.1
- Fixed product images sync issue.
- Added synced product on create or update in new product editor.
- Added sync product button in new product editor.
1.1.0
- Fixed new Products sync using SKU ID.
- Small fixes.
1.0.9
- Fixed Products Sync using SKU ID.
1.0.8
- Added Products Bulk & Row action sync.
- Added manual sync for Orders, Coupons, Customers.
- Small fixes.
1.0.7
- Added Categories sync.
- Added Product Reviews sync.
- Fixed cross-sell and up-sell product setting issue.
- Small fixes.
1.0.6
- Fixed stock reduce issue on block editor checkout order.
- Fixed manually synced time.
- Small fixes.
1.0.5
- Added SSL error notice.
- Small fixes.
1.0.4
- Fixed WooCommerce activation message.
- Fixed media size issue.
- Fixed Coupon restore issue.
- Fixed Product stock update on order.
- Fixed Product images sync issue.
- Update Webhooks.
- Security fixes.
1.0.3
- Compatible with WooCommerce 8.3+
- Update Webhooks.
- Coupon exclude products.
- Security fixes.
1.0.2
- Auto delete log using cron_schedules.
- Fixed Webhooks.
- Fixed order.updated webhook called multiple times.
- Fixed cross-sells, up-sells products sync.
- Small Fixes.
1.0.1
1.0.0
- Added Synchronize Products, Stock, Orders, Customers, Coupons.
- Added Synchronize Logs.