=== Formzap for Mailchimp and Contact Form 7 ===
Contributors: nazarpelekh
Tags: contact form 7, mailchimp, newsletter, subscription, email
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.0.0
Requires Plugins: contact-form-7
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Simple integration between Contact Form 7 and Mailchimp. Subscribe form submissions to Mailchimp lists based on checkbox selections.

== Description ==

Formzap for Mailchimp and Contact Form 7 provides a seamless integration between Contact Form 7 and Mailchimp. Automatically subscribe your form visitors to your Mailchimp audience lists.

= Features =

* **Easy Setup** - Enter your Mailchimp API key and start subscribing users
* **Multiple Lists** - Map different checkboxes to different Mailchimp lists
* **Merge Field Mapping** - Map CF7 form fields to Mailchimp merge fields (FNAME, LNAME, etc.)
* **Double Opt-in Support** - Enable confirmation emails for GDPR compliance
* **Deduplication** - Automatically prevents duplicate subscriptions
* **No Tracking** - We don't collect any data about your users or site

= Requirements =

* WordPress 6.4 or higher
* PHP 7.4 or higher
* Contact Form 7 plugin (active)
* Mailchimp account with API key

= How to Use =

1. Install and activate the plugin
2. Edit any Contact Form 7 form
3. Go to the "Mailchimp" tab
4. Enter your Mailchimp API key and click "Validate"
5. Select your default list
6. Map checkboxes to lists (optional)
7. Map form fields to Mailchimp merge fields
8. Save the form

= Privacy =

This plugin connects to the Mailchimp API (api.mailchimp.com) to:
* Validate your API key
* Fetch your audience lists
* Fetch merge fields for lists
* Subscribe users to your lists

No data is sent to any other third-party service. The plugin does not track users or collect analytics.

For Mailchimp's privacy policy, visit: https://mailchimp.com/legal/privacy/

== Installation ==

1. Upload the `formzap-mailchimp-cf7` folder to the `/wp-content/plugins/` directory
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Make sure Contact Form 7 is installed and activated
4. Edit a Contact Form 7 form and go to the "Mailchimp" tab
5. Enter your Mailchimp API key (find it at https://admin.mailchimp.com/account/api/)
6. Configure your lists and field mappings

== Frequently Asked Questions ==

= Where do I find my Mailchimp API key? =

Log in to your Mailchimp account, go to Account → Extras → API keys. Create a new key if you don't have one.

= Can I subscribe users to multiple lists? =

Yes! Use checkbox mappings to subscribe users to different lists based on their checkbox selections.

= Does this plugin support double opt-in? =

Yes, you can enable double opt-in in the Mailchimp tab settings. Users will receive a confirmation email before being added to your list.

= Is this plugin GDPR compliant? =

The plugin itself doesn't collect or store any personal data. However, you are responsible for:
* Getting proper consent before subscribing users
* Having a privacy policy that mentions Mailchimp
* Using double opt-in when required by law

= The form is submitted but users aren't added to Mailchimp =

Check the following:
* Your API key is valid (click "Validate" button)
* You have selected an email field
* You have selected a default list or configured checkbox mappings
* The email field in your form is properly named

== Screenshots ==

1. Mailchimp panel in Contact Form 7 editor
2. API key validation and list selection
3. Checkbox to list mapping
4. Merge field mapping table

== Changelog ==

= 1.0.0 =
* Initial release
* API key validation with encryption
* Multiple list support via checkbox mappings
* Merge field mapping with required field indicators
* Double opt-in support
* Automatic list deduplication

== Upgrade Notice ==

= 1.0.0 =
Initial release of Formzap for Mailchimp and Contact Form 7.
