Magna Quote Calculator

By magnawebworks

0+ active installationsVersion 1.0.1

Build a price-range estimate form, show a live estimate, and save the lead. Add it with a shortcode or a block.

Description

Magna Quote Calculator lets a service business put a price-range form on its site. A visitor picks options, sees a live estimate, and leaves a name, email and phone number. You read the lead in your WordPress dashboard.

It is built for lawn care, cleaning, moving, repairs, photography and other jobs that are quoted as a range, not a single checkout total.

Features

  • Calculator builder in wp-admin. Set a starting min/max range, a currency symbol, rounding, intro text, a disclaimer, button text and a thank-you message.
  • Four option types: dropdown, radio buttons, checkbox add-ons and a per-unit number (with a unit name and a quantity min/max/default).
  • Each choice or add-on has its own min and max price adjustment. Negative adjustments are allowed, for example a weekly discount.
  • Public form with the [magna_quote_calc id="123"] shortcode or the Quote Calculator block. The estimate updates as the visitor chooses options.
  • The number in the browser is display only. On submit the server recomputes the range from the saved config, so a tampered request cannot change the stored estimate.
  • Leads are saved as private posts. Filter them by calculator, delete one, or export a CSV. Cells that start with =, +, – or @ are neutralized against spreadsheet formula injection.
  • Email notices are off by default. If you turn them on, one plain email goes to the address you set (or the site admin email). The visitor is never emailed automatically.
  • Optional automatic deletion of leads after a number of days you choose.
  • Spam protection: a honeypot field, a signed timestamp (too-fast or forged submits get a silent thank-you and nothing is saved), and a rate limit of 5 leads per visitor per 10 minutes.
  • WordPress privacy tools: suggested privacy policy text, plus personal data export and erase by email address.

Privacy

The plugin does not phone home, does not track visitors, does not load any outside scripts, fonts or images, and sets no cookies. Leads stay in your own WordPress database. If you turn on new-lead email, that mail is sent through your site’s normal WordPress mail. The visitor’s IP address is used only as a short-lived hashed rate-limit key; it is not stored with the lead.

Magna setup and Quote Calculator Pro

The free plugin is complete on its own. It has no locked features, trial limits or license checks. If you want help building or styling a calculator on your site, Magna WebWorks can set it up for you.

Quote Calculator Pro is a planned, separate plugin from Magna WebWorks. A feature list and price are not part of this free plugin.

Installation

  1. Install and activate the plugin from Plugins > Add New, or upload the magna-quote-calculator folder to /wp-content/plugins/.
  2. Go to Quote Calculator > Add New. Give the calculator a title, set the starting price range and add your options, then publish it.
  3. Copy the shortcode from the “Add to a page” box, or add the Quote Calculator block to a page and pick this calculator.
  4. Optional: under Quote Calculator > Settings, turn on a new-lead email and choose how long to keep leads.

FAQ

Is the estimate a formal quote?

No. It is a price-range estimate. Put your own disclaimer under the estimate (a default is filled in for new calculators) so visitors know a final price may depend on a visit or a closer look at the job.

Does the plugin send data to Magna WebWorks or anyone else?

No. Nothing is sent to us or to any third-party service. Leads are stored in your own database. Emails, if you turn them on, go through your site’s normal WordPress mail.

Will the visitor get an email?

No. The plugin never emails the visitor. You can optionally email yourself when a lead comes in.

I use page caching. Will the form still work?

If a cached page is more than about 12 to 24 hours old, the form may say it expired and ask the visitor to reload. Exclude the calculator page from the cache, or keep the cache lifetime under 12 hours.

What happens to my data if I delete the plugin?

By default your calculators and leads are kept, in case you reinstall. Turn on Remove calculators, leads and settings in settings if you want that data removed when you delete the plugin. Pages you created are never deleted.

Can I create an example calculator for testing?

Yes. If you have WP-CLI, run wp magna-qc demo. That creates a made-up “Example Lawn Care Co.” calculator and a noindex demo page. The prices are examples only.

Who can build calculators, and who can see leads?

Editors and administrators can create and edit calculators. Leads, CSV export, delete and settings require the manage_options capability (administrators, by default). Developers can change that with the magna_qc_manage_capability filter.

Are there hooks for developers?

Yes: magna_qc_lead_saved (after a lead is stored), magna_qc_min_seconds, magna_qc_rate_limit and magna_qc_manage_capability.

How do I keep leads off a demo or staging site email?

Add define( 'MAGNA_QC_NO_MAIL', true ); to wp-config.php. That locks email off even if the settings box is ticked.

Screenshots

Changelog

1.0.1

  • Removed the leftover [mw_quote_calc] shortcode alias so every public name uses a 4+ character plugin prefix. Use [magna_quote_calc].

1.0.0

  • First public release on WordPress.org.