=== Lead Sync - Divi 5 to Jetpack CRM ===

Contributors: kroozz
Donate link: https://github.com/nadim1992/
Tags: divi, jetpack crm, lead generation, contact form
Requires at least: 6.0
Tested up to: 6.8
Stable tag: 1.0.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Automatically sync Divi 5 Contact Form submissions to Jetpack CRM as leads. Streamline your lead generation and customer management.

== Description ==

**Transform your Divi 5 Contact Forms into a powerful lead generation machine!**

Lead Sync - Divi 5 to Jetpack CRM is the ultimate solution for businesses using Divi 5 theme and Jetpack CRM. This plugin creates a seamless bridge between your website's contact forms and your customer relationship management system, ensuring no lead ever falls through the cracks.

### 🚀 Key Features

* **Automatic Lead Sync** - Every Divi 5 contact form submission instantly creates a lead in Jetpack CRM
* **Zero Configuration** - Works out of the box with no setup required
* **Smart Field Mapping** - Automatically maps form fields to CRM customer data
* **Custom Field Support** - Handles both standard and custom form fields
* **Duplicate Prevention** - Updates existing contacts instead of creating duplicates
* **Error Logging** - Built-in logging for troubleshooting and monitoring
* **Developer Friendly** - Includes hooks and filters for customization
* **Secure & Reliable** - WordPress coding standards compliant with proper sanitization

### 💼 Perfect for Business Growth

Transform casual website visitors into trackable leads with this powerful integration. Whether you're a:

* **Digital Marketing Agency** - Streamline client lead management
* **Small Business Owner** - Never miss a potential customer
* **E-commerce Store** - Convert inquiries into sales opportunities
* **Service Provider** - Organize client communications effectively

### 🔧 How It Works

1. **Install & Activate** - No configuration needed
2. **Create Divi Contact Forms** - Use Divi 5's powerful contact form module
3. **Watch Leads Flow** - Form submissions automatically appear in Jetpack CRM
4. **Manage & Convert** - Use Jetpack CRM's tools to nurture leads into customers

### 📊 Supported Form Fields

* **Name** - Automatically splits into first and last name
* **Email** - Validates and syncs as primary contact method
* **Phone** - Adds to mobile phone field in CRM
* **Subject** - Included in lead notes for context
* **Message** - Full message content preserved in CRM notes
* **Custom Fields** - Any additional fields are captured in lead notes

### 🛡️ Security & Reliability

* Full WordPress security compliance
* Data sanitization and validation
* Error handling with detailed logging
* Compatible with WordPress multisite
* Regular updates and maintenance

### 🔗 Integration Requirements

This plugin requires both:
* **[Jetpack CRM](https://wordpress.org/plugins/zero-bs-crm/)** (Free CRM plugin)
* **[Divi Theme](https://www.elegantthemes.com/gallery/divi/)** with Divi 5 or **Divi Builder Plugin**

### 🎯 SEO Benefits

By streamlining your lead management process, you can:
* Respond faster to customer inquiries
* Improve customer satisfaction scores
* Increase conversion rates from leads to customers
* Build better customer relationships through organized data

### 💡 Pro Tips

* Use descriptive form field names for better organization in CRM
* Set up Jetpack CRM automations to follow up with new leads
* Create different forms for different lead sources to track performance
* Use Divi's conditional logic for advanced form functionality

### 🌟 Why Choose Lead Sync?

Unlike complex CRM integrations that require technical setup, Lead Sync works instantly. It's designed specifically for the Divi + Jetpack CRM combination, ensuring perfect compatibility and reliable performance.

**Start capturing and managing leads more effectively today!**

== Installation ==

### Automatic Installation (Recommended)

1. Login to your WordPress admin dashboard
2. Navigate to **Plugins → Add New**
3. Search for "Lead Sync Divi Jetpack CRM"
4. Click **Install Now** and then **Activate**
5. That's it! The plugin will start working immediately

### Manual Installation

1. Download the plugin zip file
2. Login to your WordPress admin dashboard
3. Navigate to **Plugins → Add New → Upload Plugin**
4. Choose the downloaded zip file and click **Install Now**
5. Click **Activate Plugin**

### Requirements Check

After activation, ensure you have:
* **Jetpack CRM** plugin installed and activated
* **Divi theme** (with Divi 5) or **Divi Builder plugin** active

If either requirement is missing, you'll see an admin notice with instructions.

### Setup Verification

1. Create a test Divi contact form on any page
2. Submit the form with test data
3. Check your Jetpack CRM → Contacts to see the new lead
4. If the lead appears, you're all set!

== Frequently Asked Questions ==

= Does this plugin work with older Divi versions? =

This plugin is specifically designed for Divi 5. For maximum compatibility and features, we recommend using the latest version of Divi.

= Will it sync existing form submissions? =

No, the plugin only syncs new form submissions made after activation. It does not retroactively import historical form data.

= Can I customize which fields are synced? =

Yes! The plugin includes developer hooks and filters. Use the `lsdjc_jetpack_crm_data` filter to modify the data before it's sent to Jetpack CRM.

= What happens if I have duplicate email addresses? =

The plugin intelligently updates existing contacts instead of creating duplicates, helping keep your CRM clean and organized.

= Does it work with Jetpack CRM's free version? =

Yes! The plugin works perfectly with the free version of Jetpack CRM. Premium features of Jetpack CRM will enhance the experience but aren't required.

= Can I disable the plugin temporarily? =

Yes, simply deactivate the plugin and form submissions will stop syncing to Jetpack CRM. Your existing CRM data remains untouched.

= Is there any configuration required? =

No configuration is needed! The plugin works automatically once activated, as long as you have both Jetpack CRM and Divi installed.

= What about GDPR compliance? =

The plugin only processes data that users voluntarily submit through your contact forms. Ensure your forms include appropriate privacy notices and consent mechanisms as required by GDPR.

= Does it support multisite installations? =

Yes, the plugin is compatible with WordPress multisite networks. Activate it on individual sites where you want the sync functionality.

= How can I troubleshoot sync issues? =

The plugin logs all sync attempts. Check your WordPress error logs or use a debugging plugin to view detailed error messages if leads aren't syncing properly.

== Screenshots ==

1. **Divi Contact Form** - Simple contact form created with Divi 5's contact form module
2. **Jetpack CRM Contacts** - Leads automatically appear in your CRM with organized data
3. **Lead Details** - Complete lead information including form metadata and timestamps
4. **Admin Notice** - Helpful dependency notices ensure proper plugin setup

== Changelog ==

= 1.0.0 =
* **Release Date:** 18-Aug-2025
Initial release.
