=== Integration for WooCommerce - Zoho CRM, Books, Invoice, Inventory, Desk, Campaigns, Bigin ===
Contributors: integrazo, plugcrux
Tags: woocommerce zoho, zoho crm, zoho books, zoho inventory, woocommerce integration
Requires at least: 5.0
Tested up to: 7.0
Requires PHP: 7.0
Stable tag: 1.0.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Sync WooCommerce orders, customers, and products to Zoho CRM, Books, Invoice, Inventory, Desk, Campaigns, and Bigin — automatically.

== Description ==

**Integrazo** connects your WooCommerce store with all major Zoho products. Automatically sync orders, customers, and products to Zoho without any manual data entry.

Whether you're managing sales in Zoho CRM, sending invoices through Zoho Books or Zoho Invoice, tracking stock in Zoho Inventory, handling support in Zoho Desk, running email campaigns via Zoho Campaigns, or managing pipelines in Zoho Bigin — Integrazo keeps everything in sync in real time.

### Why Store Owners Choose Integrazo

**One Plugin for All 7 Zoho Products** — No need to install separate plugins for each Zoho service. Integrazo connects WooCommerce to Zoho CRM, Zoho Books, Zoho Invoice, Zoho Inventory, Zoho Desk, Zoho Campaigns, and Zoho Bigin through a single lightweight plugin.

**Set Up in Minutes** — Select WooCommerce as the source, choose a Zoho product, authenticate with OAuth, map your fields, and go live. No developer needed.

**Reliable Data Delivery** — Every sync is logged with detailed Zoho API responses. Failed records can be retried with one click from the Logs page.

**No Sync Limits** — The free version has no limits on integrations, submissions, or syncs. Use it as much as you need.

### How It Works

1. **Select WooCommerce** as your data source
2. **Choose a Zoho Product** — Zoho CRM, Books, Invoice, Inventory, Desk, Campaigns, or Bigin
3. **Authenticate** — Securely connect your Zoho account using OAuth 2.0
4. **Map Fields** — Match WooCommerce data to Zoho module fields
5. **Go Live** — Enable the integration and every new order syncs automatically

### 🌐 7 Zoho Products Supported

**Zoho CRM**
Sync WooCommerce customers and orders to Zoho CRM. Create or update Leads, Contacts, Accounts, Deals, and Sales Orders automatically when an order is placed.

**Zoho Books**
Send WooCommerce order data to Zoho Books. Create Contacts, Sales Orders, or Invoices with full line item details, taxes, shipping, and billing information.

**Zoho Invoice**
Automatically generate Zoho Invoice records from WooCommerce orders. Create Customers and Invoices with complete order data including products, quantities, and tax details.

**Zoho Inventory**
Keep your Zoho Inventory in sync with WooCommerce. Sync orders and products to Contacts, Items, and Sales Orders based on your store activity.

**Zoho Desk**
Convert WooCommerce orders or customer events into Zoho Desk Tickets or Contacts. Automate your support workflow so your team is notified the moment a customer needs help.

**Zoho Campaigns**
Add WooCommerce customers to your Zoho Campaigns mailing lists automatically. Build targeted email audiences from buyers without any manual import.

**Zoho Bigin**
Push WooCommerce customers and orders into Zoho Bigin pipelines. Create Contacts, Companies, and Deals to manage your sales pipeline directly from store data.

### 📊 Powerful Features

**Flexible Field Mapping**
Map any WooCommerce data field to the corresponding Zoho field — order details, customer information, product line items, billing and shipping addresses, custom values, and system fields.

**Detailed Sync Logs**
Every sync is recorded with the full Zoho API response. Filter logs by integration, status, or date range. Failed records can be retried individually or in bulk — no data is ever lost.

**Filter Conditions (Pro)**
Apply conditions to control which orders are synced. For example, only sync orders with a specific status, above a certain total, or from a particular country.

**Error Notifications**
Get email alerts when a sync fails so you can take action immediately. Configure multiple notification recipients and customize the subject line.

**Unlimited Integrations**
Create as many integrations as you need. For example, sync orders to Zoho CRM as deals AND to Zoho Books as invoices simultaneously.

**Multi-Data Center Support**
Supports all Zoho data centers including zoho.com, zoho.in, zoho.eu, zoho.com.au, zoho.jp, and zohocloud.ca.

### 🔒 Secure by Design

* OAuth 2.0 authentication — your Zoho credentials are never stored
* All admin actions protected with WordPress nonces and capability checks
* ABSPATH direct-access guards on all PHP files
* No data stored on external servers — everything stays on your WordPress site

### Third-Party Services

This plugin connects to the following external services to function:

**Zoho API** (zoho.com, zohoapis.com, accounts.zoho.com) — Used to authenticate your Zoho account via OAuth 2.0 and send WooCommerce data to your selected Zoho product. [Zoho Privacy Policy](https://www.zoho.com/privacy.html) | [Zoho Terms of Service](https://www.zoho.com/terms.html)

Data is only transmitted to Zoho when a WooCommerce event triggers a configured integration. No data is sent to Integrazo servers.

== Upgrade to Pro ==

Unlock advanced WooCommerce-Zoho integration features with **Integrazo Pro**.

**Free Version Includes:**
* Unlimited integrations and syncs
* All 7 Zoho products supported
* Add-only record creation
* Custom values and system fields
* Sync logs with one-click retry
* Error email notifications

**Pro Version Adds:**
* Add or Update existing records (no duplicates)
* Advanced filter conditions (sync specific orders only)
* File attachment support
* Tags and notes mapping
* Custom and premium Zoho field mapping
* Multiple Zoho account support
* Extended log retention
* Priority support

[Get Integrazo Pro →](https://integrazo.com/products/woocommerce-zoho-integration)

== Installation ==

**Automatic Installation (Recommended)**
1. Go to **Plugins → Add New** in your WordPress dashboard.
2. Search for **Integrazo**.
3. Click **Install Now**, then **Activate**.

**Manual Installation**
1. Download the plugin ZIP file.
2. Go to **Plugins → Add New → Upload Plugin**.
3. Upload the ZIP file and click **Install Now**.
4. Activate the plugin.

**Quick Start**
1. Navigate to the **Integrazo** menu in WordPress admin.
2. Click **Add Integration** on the Setup page.
3. Select a Zoho product as the destination.
4. Authenticate with your Zoho account.
5. Map your WooCommerce fields and save — your integration is live.

== Screenshots ==

1. Select Zoho Product  
2. Field Mapping  
3. Logs Page  
4. Settings  

== Frequently Asked Questions ==

= Which WooCommerce data can be synced to Zoho? =

You can sync WooCommerce orders, customers, and products — including billing details, shipping details, line items, taxes, totals, and order status — to any supported Zoho product.

= Can I sync WooCommerce orders to Zoho CRM? =

Yes. WooCommerce orders and customers can be synced to Zoho CRM as Leads, Contacts, Accounts, Deals, or Sales Orders. You control exactly how fields are mapped.

= Can I sync WooCommerce orders to Zoho Books? =

Yes. WooCommerce orders are sent to Zoho Books as Contacts, Sales Orders, or Invoices — with full line items, taxes, shipping, and customer details.

= Can I sync WooCommerce orders to Zoho Invoice? =

Yes. WooCommerce orders can automatically create Customers and Invoices in Zoho Invoice, including product line items and tax data.

= Can I sync WooCommerce orders to Zoho Inventory? =

Yes. Sync WooCommerce orders and products to Zoho Inventory as Contacts, Items, or Sales Orders based on your setup.

= Can I sync WooCommerce customers to Zoho Desk? =

Yes. WooCommerce order or customer data can create Tickets or Contacts in Zoho Desk, automating your support workflows.

= Can I add WooCommerce customers to Zoho Campaigns? =

Yes. Automatically add WooCommerce customers to Zoho Campaigns mailing lists when they place an order.

= Can I push WooCommerce data to Zoho Bigin? =

Yes. WooCommerce customers and orders can be pushed to Zoho Bigin as Contacts, Companies, or Deals.

= Can I create multiple integrations for different Zoho products? =

Yes. You can create unlimited integrations. For example, sync orders to Zoho CRM as deals AND to Zoho Books as invoices simultaneously.

= Does the plugin support all Zoho data centers? =

Yes. Integrazo supports all Zoho data centers: zoho.com (US), zoho.in (India), zoho.eu (Europe), zoho.com.au (Australia), zoho.jp (Japan), and zohocloud.ca (Canada).

= What happens if a sync fails? =

Failed records are stored in the Logs page with the full Zoho API error response. You can review the reason, fix the issue, and retry with one click. Email notifications can also alert you immediately.

= Can I disable an integration without deleting it? =

Yes. Each integration has an enable/disable toggle on the Setup page. Disabled integrations stop syncing but retain all settings and field mappings.

= Does this plugin slow down my store? =

No. Integrazo processes syncs efficiently so your WooCommerce checkout and order processing remain fast.

= Is my Zoho account data safe? =

Yes. Authentication uses Zoho's official OAuth 2.0 flow. Your Zoho credentials are never stored in the plugin. All API calls use HTTPS. No data is sent to third-party servers.

= Do I need coding skills? =

No. Setup is done entirely through a visual interface — select source, destination, map fields, and save. No code required.

= Does this plugin work with WordPress Multisite? =

Yes. Integrazo is compatible with WordPress multisite installations.

== Changelog ==

= 1.0.3 =
* Added: 24-hour free trial access to Pro features directly from the admin page.
* Improved: Compatibility tested up to WordPress 7.0.
* Improved: Verified all global variables and constants follow consistent plugin prefixing.

= 1.0.2 =
* Improved: Admin notice display and positioning across all admin pages.
* Improved: Internal code optimization for better reliability.

= 1.0.1 =
* Security: Added capability checks across all admin action handlers
* Security: Added ABSPATH direct-access guards to all PHP files
* Security: Fixed path traversal vulnerability in admin tab loading
* Security: Replaced wp_redirect with wp_safe_redirect for internal redirects
* Improved: Orderby parameter validation with whitelist approach
* Improved: Internationalization for all user-facing strings
* Improved: Sanitized external API response before display
* Improved: Removed dead code and cleaned up production files
* Improved: Clean filter parameter handling without superglobal manipulation
* Improved: Updated readme with better SEO and documentation

= 1.0.0 =
* Initial release
* WooCommerce integration with Zoho CRM, Books, Invoice, Inventory, Desk, Campaigns, and Bigin
* OAuth 2.0 authentication with multi-data center support
* Flexible field mapping with custom values
* Sync logs with one-click retry
* Email notifications for failed syncs

== Upgrade Notice ==

= 1.0.3 =
New 24-hour Pro trial and full WordPress 7.0 compatibility.

= 1.0.1 =
Security update — includes capability checks, path traversal fix, and improved input validation. Update recommended for all users.

= 1.0.0 =
Initial release. Install now to start syncing WooCommerce data with Zoho automatically.

== Support ==

* [Documentation](https://integrazo.com/products/woocommerce-zoho-integration)
* [Contact Support](https://integrazo.com/pages/contact)
* [Request a Feature](https://integrazo.com/pages/request-feature)

Email: support@integrazo.com