=== Instant Quote Calculator ===
Contributors: instantquotecalculator
Tags: quote calculator, price calculator, cost estimator, quote form, lead generation
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Add your Instant Quote Calculator pricing calculators to any page with a block or shortcode, and see quote requests in your dashboard.

== Description ==

[Instant Quote Calculator](https://instantquotecalculator.com) is an online service where a business builds pricing and quote calculators: a visitor answers a few questions, sees a price or a price range, and can ask for a quote.

This plugin connects your WordPress site to your Instant Quote Calculator account. **An account on the service is required.** The calculators themselves are built, hosted and run by the service; the plugin lets you place them and follow the results without leaving WordPress.

= What the plugin does =

* **Quote Calculator block.** Add the block to a post or page and choose one of your published calculators from a dropdown. There are no IDs or embed codes to paste.
* **Shortcode.** `[instant_quote_calculator id="..."]` for the classic editor and page builders. The Calculators screen lists every calculator in your account with its shortcode ready to copy and whether it is live or a draft.
* **Quote requests in WordPress.** A Quote requests screen lists the requests your calculators have received (date, name, email, phone, calculator, total and status), with a link to open each one in your console.
* **Dashboard widget.** The five latest quote requests on the WordPress dashboard.
* **One script, loaded only where needed.** The service's script is added only to pages that contain a calculator, once per page, and loaded asynchronously.

= What the service does =

These are features of the Instant Quote Calculator service, not of the plugin:

* Templates for trades to start from.
* Building a calculator with AI from a written description or from an uploaded Excel price sheet.
* Quote requests sent to you by email.
* Printable quotes.
* A webhook for new quote requests (Pro plan).

The service does not take card payments and has no direct connections to CRM systems.

= Pricing =

The plugin is free. The service has a free plan, which allows one live calculator, and paid plans. Limits depend on your plan with the service; the plugin itself has no limits and no locked features.

== Installation ==

1. Install the plugin from the Plugins screen in WordPress and activate it.
2. Go to **Quote Calculator → Settings**.
3. Create a free account at [instantquotecalculator.com](https://instantquotecalculator.com) if you do not have one, build a calculator and publish it.
4. In your Instant Quote Calculator console, open the WordPress page (`/app/wordpress`) and create an API key.
5. Paste the key into the plugin's settings and click **Connect**. The name of your business and your plan are shown when the key is accepted.
6. Edit a page, add the **Quote Calculator** block and choose your calculator. Or copy a shortcode from **Quote Calculator → Calculators**.

== Frequently Asked Questions ==

= Do I need an Instant Quote Calculator account? =

Yes. The calculators are built and hosted on instantquotecalculator.com. The plugin connects your site to your account. There is a free plan with one live calculator.

= Can I build or edit calculators inside WordPress? =

No. Calculators are built in your console on the service. The plugin links to the right place: each calculator in the list and in the block has an edit link.

= Why does the block show a placeholder instead of the calculator? =

The editor shows the name of the chosen calculator and a link to edit it. The calculator itself is drawn on the public page. Preview the page to try it.

= My calculator is not in the dropdown. =

Only published calculators can be shown on a site, so drafts are not offered. The list is kept for a few minutes; if you have just published a calculator, use **Refresh** on the Calculators screen or "Refresh the list" in the block settings.

= Where is my API key stored? Can visitors see it? =

It is stored in your site's database. It is only used by your server to talk to the service from the admin area. It is never added to a page or sent to a browser.

= Who can see the quote requests? =

Users who can manage the site's options (administrators). Users who can edit posts can see the list of calculators and use the block and the shortcode.

= Does the plugin add a credit link or tracking to my site? =

No. The plugin adds nothing to your public pages except the calculators you place.

= Will the calculator clash with my theme's styles? =

The service's script draws each calculator inside a shadow root, which keeps your theme's CSS and the calculator's CSS apart.

= What happens to my pages if I disconnect or remove the plugin? =

Disconnecting removes the API key from the site; calculators already placed keep working while the plugin is active. If the plugin is deactivated or deleted, the blocks and shortcodes stay in your content but show nothing until it is active again. Deleting the plugin removes its settings and cached data.

== External services ==

This plugin connects to Instant Quote Calculator (https://instantquotecalculator.com), the service that hosts and runs your calculators. It cannot do anything useful without it.

**From your WordPress server, when someone uses the admin area:**

* When you click Connect or "Check the connection" in the settings, the plugin sends your API key to `https://instantquotecalculator.com/api/v1/account` and receives the name and plan of your account.
* When the Calculators screen, the settings screen or the block editor needs the list of your calculators (and it is not already cached; it is cached for five minutes), the plugin sends your API key to `https://instantquotecalculator.com/api/v1/calculators` and receives the list.
* When an administrator opens the Quote requests screen or the dashboard (the widget is cached for five minutes), the plugin sends your API key and the page number to `https://instantquotecalculator.com/api/v1/leads` and receives the quote requests, which include the names, email addresses and phone numbers your visitors submitted.

These requests are made with the WordPress HTTP API, which by default identifies itself with your WordPress version and site address. Nothing else about your site or its users is sent. No request is made before you have entered an API key.

**From your visitors' browsers, on pages where you have placed a calculator:**

* The browser loads the script `https://instantquotecalculator.com/embed.js`, which then loads the calculator from the service. As with any request, the service receives the visitor's IP address, browser details and the address of the page.
* What a visitor enters in the calculator, and the contact details they submit when asking for a quote, are sent to and stored by the service.

Pages without a calculator load nothing from the service.

The service is provided by Instant Quote Calculator: [terms of service](https://instantquotecalculator.com/terms), [privacy policy](https://instantquotecalculator.com/privacy).

== Changelog ==

= 1.0.0 =
* First release: settings and connection, Quote Calculator block, shortcode, Calculators screen, Quote requests screen and dashboard widget.

== Upgrade Notice ==

= 1.0.0 =
First release.
