=== TRP Catalog Enquiry Forms and Lead Logs for WooCommerce ===
Contributors: techrahulpal
Donate link: https://techrahulpal.com
Tags: woocommerce, enquiry, product enquiry, whatsapp, popup, email enquiry, catalog mode
Requires at least: 5.6
Tested up to: 7.0
Stable tag: 1.3.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Add customizable popup product enquiry forms and WhatsApp triggers to WooCommerce product pages with ease. Supports drag-and-drop forms, local performance analytics, CSV exports, Google Sheets sync, and selective catalog mode.

== Description ==

TRP Catalog Enquiry Forms and Lead Logs for WooCommerce is a lightweight, responsive, and secure WooCommerce plugin that replaces the default WooCommerce purchase flow with flexible product enquiries.

Perfect for wholesale stores, custom manufacturing, quotation-based selling, or catalog display, the plugin enables custom "Enquiry on Mail" and "WhatsApp Now" triggers.

= Key Features =
* **Selectable Catalog Mode**: Select product categories where purchasing (Add to Cart / Buy Now) is hidden and replaced automatically with enquiry buttons.
* **Custom Form Builder**: Drag, drop, reorder, and configure custom input fields (Name, Email, Phone, Numbers, Checkboxes, Textareas) for the popup modal.
* **Dual Channel Engagement**: Support both direct email submissions (using secure wp_mail) and redirect to WhatsApp Web / Mobile App with pre-filled message text.
* **Google Sheets Real-time Integration**: Send logged enquiries to your Google Spreadsheet instantly via asynchronous webhooks.
* **Local Leads Logging Dashboard**: View and search collected leads inside WordPress, monitor delivery metrics, and download filtered monthly reports as CSV files.
* **Highly Customizable**: Edit buttons colors, background gradients, custom font families, borders, and margins directly from the settings page.

== Installation ==

1. Upload the `trp-catalog-enquiry-lead-logs` folder to the `/wp-content/plugins/` directory, or upload the ZIP file via Plugins > Add New > Upload.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Navigate to **WooCommerce > Product Enquiry** to customize your settings, forms, and triggers.

== Frequently Asked Questions ==

= Does it support variable WooCommerce products? =
Yes! Hiding cart elements is handled via theme-safe classes, which means variation attributes (like size or color) remain completely active, allowing customers to choose their specs before requesting enquiries.

= Can I use it on specific products only? =
Yes. You can use the shortcodes `[trpcell_enquiry_buttons]` or `[trpcell_enquiry_form]` on any specific product page, or use the Category Catalog Mode to enable/disable checkout automatically per category.

= How do I sync lead logs with Google Sheets? =
Under the **Google Sheets Sync** tab in the plugin settings page, we provide a 7-step guide along with the copy-paste Apps Script code block. Enable the webhook and paste the Web App URL to begin syncing in real-time.

== Screenshots ==

1. Performance analytics dashboard, channel stats, and monthly distribution charts.
2. General settings page with Category selection checklists, auto-injection options, and email routes.
3. Dynamic drag-and-drop form fields editor.
4. Button styling controls with solid/gradient pickers, radius tokens, and font styles.
5. Google Sheets App Script integration guide.
6. Leads logs registry with search pagination and CSV exporters.

== Changelog ==

= 1.3.0 =
* Added option to bypass popup form and redirect directly to WhatsApp.
* Updated WhatsApp icon to official brand vector graphic.
* Added Shortcodes Helper box to Admin Settings panel.

= 1.2.0 =
* Initial public release.
* Introduced Catalog Mode and category-specific checkout replacements.
* Integrated dynamic styling options (gradients, typography) and form field builders.
* Implemented live leads log dashboard, CSV exporter, and real-time Google Sheets webhook sync.
