=== Jutalla Quotes ===
Contributors: jutalla
Tags: quotes, estimates, leads, pipeline, request a quote
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
Stable tag: 0.3.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Turn quote requests into a pipeline: request → quoting → quote sent → won or lost. With a PDF quote and a fully translated interface.

== Description ==

Jutalla Quotes is made for small service businesses — trades, contractors, freelancers, agencies — that answer the same question every day: "how much does it cost?"

Instead of letting those requests pile up in an inbox, Jutalla Quotes puts a request form on your site and every submission into one list with a clear status: New, Quoting, Quote sent, Won, Lost. You build the quote inside the request, download it as a PDF, and email it to the client without leaving WordPress.

**What you get in the free version**

* Request form with configurable fields, added with the `[jutalla_quotes_form]` shortcode or the "Quote request form" block
* Spam protection with a honeypot field — no external service, no captcha to solve
* All requests in one admin list: name, email, date, status, amount, with a status filter and search
* A fixed pipeline: New → Quoting → Quote sent → Won / Lost, changed by hand in the request
* Email to you when a request arrives, and an optional confirmation email to the client
* Quote lines inside the request with an automatic total
* A quote PDF with your logo and company details, ready to download or to email to the client as an attachment
* CSV export of all requests, or just the ones matching the current filter
* Interface translated into English, German, Spanish and French — both the admin screens and the form

**No strings attached**

* No WooCommerce required
* No external API, no account, no third-party service — email goes through the standard WordPress mail function
* No page builder or framework required; the form is plain HTML and CSS

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/`, or install the ZIP under Plugins → Add New → Upload Plugin.
2. Activate the plugin through the Plugins menu.
3. Go to Jutalla Quotes → Settings and fill in your company details, currency and email templates.
4. Check Jutalla Quotes → Form fields if you want other fields than name, email, phone and message.
5. Add the form to a page with the "Quote request form" block or the `[jutalla_quotes_form]` shortcode.

== Frequently Asked Questions ==

= Do I need WooCommerce? =

No. Jutalla Quotes works on its own and does not touch WooCommerce in any way.

= Where are the quote PDFs stored? =

Nowhere. The PDF is generated when you download it or when the email is sent, and the temporary file is deleted right after sending — so no quote is left on the server for anyone to find by guessing a URL.

= Can I change the fields of the form? =

Yes, under Jutalla Quotes → Form fields. You can add text, number, dropdown, checkbox and text area fields, reorder them and mark them as required. The name, email, phone and message fields stay, because the requests list, the emails and the PDF rely on them.

= How do I type quantities and prices? =

Type them the way you write numbers everywhere else. Both `1250.50` and `1250,50` work, spaces between thousands are fine, and `12,000` or `12.000` is read as twelve thousand or as twelve point zero depending on the separators of your site language — the same ones Jutalla Quotes uses to print the amounts back.

= Can I change the pipeline stages? =

Not in the free version — the five stages are fixed. Custom stages are planned for the Pro version.

= Does the quote PDF support non-Latin alphabets? =

Not yet. The PDF uses the built-in fonts, which cover English, German, Spanish, French and other Latin-alphabet languages. Cyrillic, Greek and similar scripts need an embedded font, which is not part of the free version.

= The client never got the email. What now? =

Jutalla Quotes sends mail with the standard WordPress function, so it depends on your hosting. If mail from WordPress does not arrive in general, install an SMTP plugin — Jutalla Quotes will use it automatically.

== Screenshots ==

1. The request form on the site
2. All requests in one list with statuses and amounts
3. A request with its quote lines, total and status history
4. The generated quote PDF
5. Plugin settings: company details, currency and email templates
6. The form builder: fields, types and what is required

== Changelog ==

= 0.3.3 =
* The bundled FPDF library is now prefixed as Jutaqu_FPDF, so another plugin's copy of FPDF cannot conflict with it.
* Settings are sanitized through a single named callback passed to register_setting().

= 0.3.2 =
* Documented why the one-time prefix migration uses direct database queries; no functional changes.

= 0.3.1 =
* Every class, constant, option, meta key, capability and hook now uses the unique jutaqu prefix.
* Data saved by earlier versions is migrated automatically on the first admin page load after the update.

= 0.3.0 =
* The plugin is now called Jutalla Quotes. The name, the text domain and the shortcode changed with it; option and meta keys stayed as they were.

= 0.2.0 =
* Renamed the plugin, its text domain, shortcode, block, post type and all option and meta keys.

= 0.1.1 =
* Dropdown options in the form builder are now sanitized with sanitize_text_field().
* The bundled FPDF class is only declared when no other plugin has declared it already.
* Removed load_plugin_textdomain(); translations are served by translate.wordpress.org.

= 0.1.0 =
* First release: request form, pipeline, emails, quote lines, quote PDF, sending the quote to the client, CSV export, settings, form builder and translations for English, German, Spanish and French.
