=== OhmTang RFQ ===
Contributors: ohmtang
Tags: quotation, rfq, product inquiry form, B2B, smtp
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

OhmTang RFQ is a fully open-source and free RFQ (Request for Quotation) form plugin for WooCommerce that streamlines B2B inquiries.

== Description ==

**OhmTang RFQ** is an excellent, fully open-source and free inquiry form plugin for WooCommerce, designed specifically for B2B operations.

OhmTang RFQ seamlessly inserts a customizable RFQ form for WooCommerce product pages. It automatically captures and submits crucial product information with each inquiry, saving time for both customers and administrators.

= Key Features =

*   **Smart Form Placement:** Insert the RFQ form at different positions on your product pages (e.g., after price, after add-to-cart, before product Description).
*   **Automated Product Data Capture:** When a customer submits the form, it automatically includes:
    *   Product Image
    *   Product Link/URL
    *   Product Category
    *   Default or customer-selected product attributes (like size, color)
*   **Efficient Lead Management:** This automation allows managers to quickly identify which product page the inquiry came from and understand the customer's specific needs, eliminating repetitive basic questions and improving reply efficiency.
*   **Full Form Customization:**
    *   Custom form title.
    *   Customize field labels for Name, Email, and Message.
    *   Custom placeholder text for the message area.
    *   Customizable success and error messages upon form submission.
*   **Integrated SMTP Engine:**
    *   Built-in, complete SMTP functionality - no need for an additional SMTP plugin.
    *   Granular SMTP error debugging at all levels to verify configuration and troubleshoot issues.
    *   Dedicated debugging page with a **"Send Test Email"** feature to:
        1.  Verify your SMTP setup is working correctly.
        2.  Send temporary emails to customers if needed.
    *   Provides error logs for easy problem diagnosis.

= 🌍 Multi-language Ready =

* Full translation support with .pot file

== Recommended Plugins ==

* <a href="https://wordpress.org/plugins/ohmtang-cft/" target="_blank" >**OhmTang CFT**</a> - Protect all your WordPress forms from bots and spam with Cloudflare Turnstile. This plugin is fully compatible with OhmTang RFQ and provides seamless integration.

== Installation ==

1.  Upload the `ohmtang-rfq` folder to the `/wp-content/plugins/` directory.
2.  Activate the plugin through the 'Plugins' menu in WordPress.
3.  Navigate to **OhmTang RFQ** to configure the form placement, labels.
4.  Navigate to **SMTP Settings** to configure the SMTP settings.
5.  Navigate to **SMTP Debug Settings** to configure SMTP Debug settings and send test emails.

== Frequently Asked Questions ==

= Where can I configure the form? =
All settings are located under **OhmTang RFQ** in your WordPress admin panel.

= Does this plugin require WooCommerce? =
Yes, this plugin is designed specifically as an extension for WooCommerce and requires it to be installed and active.

= Can I use my own SMTP plugin instead of the built-in one? =
Yes, you can go to **Dashboard->OhmTang RFQ->SMTP Settings** uncheck **Enable SMTP** option and save settings, then you can use your own SMTP plugin.

= How do I test if emails are sending correctly? =
Go to the plugin's settings page and find the **"SMTP Debug Settings"** section. use SMTP Send Test Email function there.

== Screenshots ==
1.  RFQ Form displayed on a product page.
2.  Main plugin settings page for form customization.
3.  SMTP configuration settings panel.
4.  SMTP debugging settings panel.
5.  Example of a received inquiry email with auto-captured product details on desktop email client.
6.  Example of a received inquiry email with auto-captured product details on mobile email client.

== Changelog ==

= 1.0.1 =
* Update date: 2026-05-05
* Optimized file reading method: use WordPress built-in function to read files
* Fixed issue where the EDCCM RFQ form still showed validation even after excluding logged-in users
* Fixed issue where product category links showed as raw code in some mobile email clients  
* Fixed issue where styles were not displayed in some mobile email clients

= 1.0.0 =
*   Initial release.

== Upgrade Notice ==

= 1.0.1 =
* WordPress 6.9.4 compatibility. a recommended update for all.