# W2S Sync – WooCommerce to Shopify Integration

[![WordPress](https://img.shields.io/badge/WordPress-5.0%2B-blue.svg)](https://wordpress.org/)
[![PHP](https://img.shields.io/badge/PHP-7.2%2B-purple.svg)](https://php.net/)
[![License](https://img.shields.io/badge/License-GPLv2%2B-green.svg)](https://www.gnu.org/licenses/gpl-2.0.html)

**W2S Sync** is a powerful WordPress plugin that enables seamless bidirectional synchronization between your WooCommerce store and Shopify. Installed directly on your WordPress site, W2S Sync keeps your products, customers, and orders perfectly aligned across both platforms.

## 🚀 Quick Start

1. **Download** the plugin zip file
2. **Install** via WordPress admin: Plugins → Add New → Upload Plugin
3. **Activate** the plugin
4. **Configure** API credentials for WooCommerce and Shopify
5. **Start syncing** your data

## ✨ Key Features

### 🔄 Complete Bidirectional Sync
Synchronize products, customers, and orders in any direction—from WooCommerce to Shopify, Shopify to WooCommerce, or both simultaneously. Full control over sync direction and operations.

### ⚡ Real-Time & Scheduled Synchronization
Choose between instant sync when data changes or automated scheduled syncs. Perfect for keeping stores aligned continuously or running one-time syncs.

### 📦 Comprehensive Product Sync
Sync product titles, descriptions, SKUs, prices, inventory, variations, attributes, images, galleries, categories, and tags. Handles simple and variable products with complete accuracy.

### 👥 Complete Customer Management
Synchronize customer records including names, emails, phone numbers, billing and shipping addresses, and metadata. Maintains customer relationships across both platforms.

### 🛒 Full Order Synchronization
Sync orders with complete details: line items, customer information, order totals, taxes, shipping costs, fees, and order status. Preserves original timestamps and order identifiers.

### 🗺️ Intelligent Field Mapping
Automatic field mapping between WooCommerce and Shopify reduces configuration time. Customize mappings to match your specific store structure and requirements.

### 🔍 Advanced Filtering & Pagination
Filter syncs by category, tag, stock status, or date range. Built-in pagination handles thousands of products, orders, and customers without timeouts or performance issues.

### 📊 Detailed Audit Logging
Track every sync operation with comprehensive audit logs showing timestamps, success/failure status, error messages, and entity details. Export logs as CSV for reporting and troubleshooting.

### 🔒 Secure Local Authentication
All API credentials stored securely in your WordPress database. No external servers or third-party services involved. Your data stays private between your two stores.

### 📈 Inventory Management
Automatic stock level synchronization prevents overselling. Keep inventory accurate across both platforms in real-time.

### 🖼️ Media & Image Handling
Sync product images, thumbnails, and galleries seamlessly. Handles image uploads, optimization, and prevents duplicates.

### ⚙️ Flexible Sync Modes
Use W2S Sync for one-time store sync or continuous synchronization. Perfect for testing new platforms, maintaining multi-channel stores, or complete platform transitions.

## 🎯 How It Works

W2S Sync is installed on your WordPress site and connects to both your WooCommerce store (local) and Shopify store (remote) through secure API credentials. Once configured, you can:

### Choose Your Sync Direction
- **WooCommerce → Shopify**: Push your WordPress store data to Shopify
- **Shopify → WooCommerce**: Pull Shopify data into your WordPress store
- **Bidirectional**: Keep both platforms synchronized automatically

### Control Sync Operations
- **Create**: Add new products, customers, or orders
- **Update**: Modify existing records when changes occur
- **Delete**: Remove items when deleted on the source platform

### Schedule Sync Frequency
- Real-time sync on save
- Scheduled sync (hourly, daily, weekly)
- Custom date range sync
- One-time sync mode

## 📋 Requirements

- **WordPress**: 5.0 or higher
- **WooCommerce**: Latest version recommended
- **PHP**: 7.2 or higher
- **Shopify Store**: Active Shopify store with Admin API access

## 🔐 Authentication Setup

To connect your stores, you'll need API credentials from both platforms:

### WooCommerce API
1. Go to WooCommerce → Settings → Advanced → REST API
2. Click "Add Key"
3. Generate Consumer Key and Consumer Secret
4. Copy credentials to W2S Sync plugin

### Shopify API
1. Go to your Shopify admin → Apps → Develop apps
2. Create a private app with Admin API access
3. Generate Admin API access token
4. Copy token to W2S Sync plugin

Visual indicators (green/yellow/red) show connection status. Once connected, configure your sync settings and start syncing.

**Security Note:** All credentials are stored securely in your WordPress database. The plugin only connects to your own stores—no data is sent to third-party services.

## 🎨 Use Cases

- **Store Sync**: Complete one-time sync from WooCommerce to Shopify or vice versa
- **Continuous Sync**: Keep both platforms synchronized for multi-channel selling
- **Inventory Management**: Maintain accurate stock levels across platforms
- **Product Updates**: Sync product changes, pricing, and inventory automatically
- **Customer Sync**: Unify customer databases across platforms
- **Order Management**: Sync orders for centralized order processing
- **Testing & Staging**: Test Shopify store while maintaining WooCommerce production site
- **Partial Sync**: Sync specific categories, date ranges, or filtered product sets

## 👥 Who Is This Plugin For?

### Store Owners Running Multiple Platforms
If you maintain both WooCommerce and Shopify stores, W2S Sync keeps them synchronized automatically. Perfect for brands using WooCommerce for content-rich sites and Shopify for streamlined storefronts.

### Businesses Planning Platform Sync
Whether syncing from WooCommerce to Shopify or Shopify to WooCommerce, W2S Sync simplifies the entire process. Sync products, customers, and orders with complete accuracy and maintain both stores during transition.

### E-commerce Agencies & Developers
Streamline client syncs and eliminate repetitive manual syncing. W2S Sync handles bulk operations, filtering, and scheduling—saving hours of manual work.

### High-Volume Stores
Built to handle large catalogs and high transaction volumes. Pagination, filtering, and optimized sync processes ensure reliable performance even with thousands of SKUs.

### Multi-Channel Sellers
Keep inventory, pricing, and product information consistent across WooCommerce and Shopify. Perfect for sellers managing multiple sales channels.

## 💎 Pro Features

Upgrade to **W2S Sync Pro** for advanced features:

- **Unlimited Sync Volume**: Handle unlimited products, orders, and customers
- **Categories & Collections Sync**: Bidirectional category synchronization with hierarchy preservation
- **Product Tags Sync**: Complete tag synchronization between platforms
- **Advanced Filtering**: Filter by category, product type, date range, order status, and stock status
- **Background Processing**: Run heavy sync jobs without impacting site performance
- **Enhanced Media Handling**: Advanced image processing and optimization
- **Priority Support**: Fast, expert support for premium users

[Get W2S Sync Pro →](https://www.smackcoders.com/wordpress.html?utm_source=github&utm_medium=readme&utm_campaign=wc_to_shopify_plugin)

## 🔧 Configuration

### Sync Direction
Choose WooCommerce → Shopify, Shopify → WooCommerce, or Bidirectional sync based on your needs.

### Sync Settings
Enable Create, Update, and Delete operations for Products, Customers, and Orders independently.

### Schedule Options
- Real-time sync on save
- Hourly, daily, or weekly scheduled sync
- Custom date range sync
- One-time sync mode

### Field Mapping
Customize how WooCommerce fields map to Shopify fields. Automatic mapping handles most cases, with full customization available.

### Filtering
Filter syncs by category, tag, stock status, or date range for precise control over what gets synchronized.

## 📚 Documentation

- [Authentication Setup Guide](https://www.smackcoders.com/documentation/woocommerce-to-shopify-integration/woocommerce-to-shopify-integration-authentication-setup)
- [Complete Plugin Documentation](https://www.smackcoders.com/documentation/woocommerce-to-shopify-integration/woocommerce-to-shopify-integration-plugin)
- [FAQ & Support](https://www.smackcoders.com/support)

## 🔒 Security

- All API credentials stored securely in WordPress database
- No external servers or third-party services
- HTTPS required for all API communications
- WordPress nonces for AJAX security
- Secure token storage

## 🌐 External Services

This plugin connects to:

- **WooCommerce REST API**: Your WordPress site (where plugin is installed)
- **Shopify Admin API**: Your Shopify store domain (e.g., yourstore.myshopify.com)

**Important**: This plugin only connects to your own WooCommerce and Shopify stores. No data is sent to third-party services or external servers.

## 📝 Changelog

### Version 1.4
* Enhanced sync engine and performance optimizations
* Improved error handling and retry mechanisms
* Better pagination for large datasets
* Enhanced audit logging
* Security improvements

[View Full Changelog →](CHANGELOG.md)

## 🤝 Support

- **Documentation**: [Plugin Documentation](https://www.smackcoders.com/documentation/woocommerce-to-shopify-integration/woocommerce-to-shopify-integration-plugin)
- **Support**: [Contact Support](https://www.smackcoders.com/contact-us.html)
- **Issues**: Report issues via WordPress.org support forum

## 📄 License

This plugin is licensed under the GPLv2 or later.

```
Copyright (C) Smackcoders. - All Rights Reserved
Unauthorized copying of this file, via any medium, is strictly prohibited.
Proprietary and confidential. Contact: info@smackcoders.com
```

## 👨‍💻 Development

### Requirements
- WordPress 5.0+
- PHP 7.2+
- WooCommerce (latest version)
- Composer (for development)

### Installation for Development
```bash
git clone https://gitlab.com/smackcoders/wordpress/woocommerce-to-shopify/free.git
cd free
composer install
```

### Code Standards
- Follows WordPress Coding Standards
- Uses WordPress hooks and filters
- PSR-4 autoloading compatible

## 🏢 About

**W2S Sync** is developed and maintained by [Smackcoders](https://www.smackcoders.com).

- **Author**: Smackcoders
- **Author URI**: https://www.smackcoders.com
- **Contributors**: smackcoders, smacksupport, fenzik

## ⭐ Contributing

Contributions are welcome! Please follow WordPress coding standards and submit pull requests via GitLab.

## 📞 Contact

- **Website**: [www.smackcoders.com](https://www.smackcoders.com)
- **Support**: [Contact Us](https://www.smackcoders.com/contact-us.html)
- **Email**: support@smackcoders.com

---

**Powered by Smackcoders**

