=== Ebene Request a Quote for WooCommerce ===
Contributors: komlavi
Tags: woocommerce, request a quote, quote, b2b, price on request
Requires at least: 6.0
Tested up to: 7.0
Stable tag: 1.0.2
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Let customers request a personalised quote directly from any WooCommerce product page.

== Description ==

Ebene Request a Quote adds a "Request a Quote" button to your WooCommerce products. Perfect for B2B stores, wholesalers, and businesses that sell at negotiated prices.

**How it works:**

1. A customer clicks "Request a Quote" on a product page.
2. They fill in a short form (name, company, email, quantity, message).
3. You receive an email notification and review the request in your dashboard.
4. You send a personalised quote with price and validity date — directly from the WooCommerce admin.
5. The customer receives the quote by email and can accept it with one click, which automatically creates a WooCommerce order.

**Key features:**

* Replace "Add to Cart" with a "Request a Quote" button — on all products, specific products, or specific categories.
* Optionally hide the price and display "Price on request" instead.
* Quote request form: name, company, email, phone, quantity, message.
* Dedicated admin dashboard under WooCommerce > Quote Requests.
* Send personalised quotes by email with price, validity date and a custom note.
* One-click acceptance: customer clicks a link in the email → WooCommerce order is created automatically.
* Quote status tracking: Pending → Quote Sent → Accepted / Declined / Expired.

**Ideal for:**

* Wholesalers and distributors
* B2B stores with negotiated pricing
* Manufacturers selling to resellers
* Any store where price depends on quantity or customer profile

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/`, or install via **Plugins > Add New**.
2. Activate the plugin.
3. Go to **WooCommerce > WooQuote** to configure which products show the quote button.
4. Manage incoming requests under **WooCommerce > Quote Requests**.

== Frequently Asked Questions ==

= Can I choose which products show the quote button? =

Yes. In the settings you can enable the button on all products, specific products (by ID), or specific categories.

= Does it hide the price? =

Optionally. You can enable "Price on request" to replace the price display on quote-enabled products.

= What happens when a customer accepts a quote? =

A WooCommerce order is created automatically with the quoted price and the customer is redirected to the payment page.

= Can I customise the button text? =

Yes, from the settings page.

== Screenshots ==

1. Product page with "Request a Quote" button and form.
2. Admin dashboard — list of quote requests.
3. Admin detail view — send a personalised quote.

== Changelog ==

= 1.0.2 =
* Renamed all plugin prefixes to eraq_ / ERAQ_ for WordPress.org compliance.
* Replaced inline script on settings page with wp_add_inline_script().
* Added Requires Plugins header.

= 1.0.1 =
* Role restriction improvements and guest access fix.

= 1.0.0 =
* Initial release.
* Quote request form on product pages.
* Admin dashboard with request management.
* Send quotes by email with acceptance link.
* Automatic order creation on acceptance.

