=== Chili Anfrage – Price calculator and quote request form ===
Contributors: chilicooperation
Tags: price calculator, quote request, form, contractor, file upload
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 0.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Price calculator with a non-binding estimate and a guided quote request with photo upload, for tradespeople, service providers and agencies.

== Description ==

With **Chili Anfrage** visitors work out an estimated price themselves and then send a complete request. You receive everything you need for a quote: service, measurements, photos and contact details. The admin interface is currently in German.

The plugin has two parts that work together or separately:

**Price calculator** – shortcode `[chili_rechner id="1"]`

* Fields: single choice, multiple choice, number or quantity with unit, slider, yes/no
* Price rules: fixed amount, price per unit, surcharge in percent, minimum price
* Output as a price range "from … to …" or as a single estimate, with a breakdown
* Freely editable notice text, preset as a non-binding guide value
* Calculated instantly in the browser and recalculated on the server
* Also works without JavaScript (button "Berechnen")

**Quote request** – shortcode `[chili_anfrage id="1"]`

* Multi-step form: choose a service, details, upload photos, contact and consent
* Custom fields: short and long text, number, slider, single choice, multiple choice, yes/no, date
* Photo upload: images only (JPG, PNG, WebP, GIF), size and quantity limits, stored in a protected folder, shown only to authorised users in the admin area
* Take over the calculator result into the request (the price is recalculated in the process)
* Confirmation email to the customer and notification to your business
* Request list with status (new, in progress, quote sent, done), notes and search
* Automatic retention period for requests and photos
* Spam protection without an external service: check number, hidden field, timing check, rate limit

**Everything is free with no limits:** any number of calculators, forms, fields and requests.

**Privacy and technology**

* No connection to external servers, no cookies, no tracking, no external fonts.
* IP addresses are not stored.
* The shortcodes also work in the shortcode widget of Elementor and in the block editor. Elementor is a trademark of its owner. Chili Anfrage is an independent add-on and is not affiliated with Elementor.
* Usable with the keyboard, with labels for screen readers and on smartphones.

**Limits**

* The result is a guide value, not an offer. Whether your price information is sufficient from a legal point of view is for you to check.
* Emails depend on your site's mail delivery. Every request is also kept in the request list.

**Optional Pro add-on (separate, for businesses only)**

A separate add-on offers conditional fields, separate recipients per service, a printable summary, CSV export, reply templates by email, promotions with a time frame, statistics and reminders. It is obtained separately from chili-cooperation.com and is sold to businesses only. All features of this plugin stay free and nothing in it is locked. More information: https://chili-cooperation.com/wp-apps/#anfrage

**Important notes**

This plugin is a technical tool and not legal, tax or data protection advice. The plugin marks results as a non-binding guide value but does not guarantee that your price information meets legal requirements. The site operator is responsible for prices, texts, the consent, the privacy policy and the retention period. The supplied consent text is a sample and must be reviewed before publication. Use is at your own risk, and the plugin is provided without warranty.

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/` or search for the plugin under "Plugins > Add New".
2. Activate the plugin.
3. In the "Chili Anfrage" menu, create an entry under "Rechner" or "Formulare". For a quick start there is a button to create a sample for a painting business.
4. Place the displayed shortcode on a page.
5. Under "Einstellungen", set the business email address and the retention period and check the photo folder.

== Frequently Asked Questions ==

= Is the calculated price binding? =
No. The plugin shows a guide value and marks it as non-binding. You can change the notice text. Whether your price information is sufficient from a legal point of view is for you to check or have checked.

= Can a visitor manipulate the price? =
The price in the browser is only a display. When a request is submitted, the server recalculates it with your price rules. Only that value is stored.

= Where are the photos stored? =
In `wp-content/uploads/chili-anfrage/` in subfolders with random names. The folder is blocked by `.htaccess`. Some servers (for example nginx) ignore this file. You can test the protection under "Einstellungen". The test requests a test file from your own website only.

= Which files are allowed? =
Only images in JPG, PNG, WebP and GIF format. The content of the file is checked, not just the extension.

= Does the plugin set cookies or connect to external servers? =
No. The only request it makes is the optional protection test, which calls your own website.

= Do the emails arrive reliably? =
That depends on your site's mail delivery. Every request is listed in the request list regardless. Test the delivery after setup.

= What happens when I delete the plugin? =
Your data is kept. Only if you tick "remove everything when the plugin is deleted" in the settings are calculators, forms, requests, photos and settings deleted.

== Screenshots ==

1. List of price calculators with their shortcodes
2. Request list with status filter and search
3. A single request with details, calculator result, status and internal note
4. List of request forms with their shortcodes

== Changelog ==

= 0.1.0 =
* Initial release.
