=== HairGraftPro – Hair Transplant & SMP Clinic Toolkit ===
Contributors: aggarwalrahul87
Tags: hair transplant, elementor, calculator, before after slider, clinic
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

An interactive hair transplant graft & cost calculator, before/after slider, and case-studies post type for Elementor clinic websites.

== Description ==

HairGraftPro lets any hair transplant or SMP (Scalp Micropigmentation) clinic add conversion-focused, Elementor-native tools to their website — a visitor gets an instant graft/cost estimate, and the clinic gets the lead automatically, with no manual follow-up needed to capture it.

Every core feature below works on a plain WordPress + Elementor (free) install. No external account, API key, or paid service is required to use any part of this free plugin.

**Set up your calculator and pricing in wp-admin**

* A dedicated **HairGraftPro** settings screen for configuring per-procedure pricing (FUE, DHI, SMP), clinical badges, disclaimers, and email notifications — no code editing required.
* Fully editable email templates, with placeholders for the visitor's details and estimate, for both the clinic notification and the optional patient auto-reply.
* A global or per-calculator medical disclaimer with a required consent checkbox, since every estimate is informational, not a diagnosis.

**What visitors see on your site**

* **Graft & Cost Calculator** — a step-by-step Norwood/Ludwig visual selector that walks a visitor to an estimated graft count and price range, then captures their consultation request.
* **Before/After Comparison Slider** — an interactive split-screen slider for real patient results, with optional clinical badges (grafts, technique, stage, timeline, surgeon, hair type, donor density).

**Publish results with Case Studies**

* A dedicated **Case Studies** post type, separate from your regular blog, for publishing patient outcomes with structured metadata (before/after photos, grafts, timeline, age, surgeon) rather than freeform posts.

= Upgrade to HairGraftPro Pro =

A separate Pro version, sold independently from [aggarwalrahul.com](https://aggarwalrahul.com/hairgraftpro/), adds an AI photo-based hair loss scanner, PRP / GFC / SMP session calculators, a combined multi-treatment quote builder, and more. This free plugin works fully on its own and never requires the Pro version — upgrade prompts inside the plugin link out to the Pro product page and nothing is ever unlocked without a separate purchase there.

This plugin requires **Elementor** (free) to be installed and active.

== Installation ==

1. Upload the `hairgraftpro` folder to `/wp-content/plugins/`, or install it directly from your WordPress admin under Plugins → Add New.
2. Activate the plugin through the "Plugins" menu in WordPress.
3. Make sure the free **Elementor** plugin is installed and active.
4. Go to **HairGraftPro** in your WordPress admin menu to configure pricing, badges, disclaimers and email notifications.
5. Edit any page with Elementor, open the Elements panel, and find the **HairGraftPro – Hair & SMP Suite** category to drag in the Graft Calculator or Before/After Slider widgets.

== Frequently Asked Questions ==

= Do I need Elementor Pro? =

No. HairGraftPro's widgets work with the free version of Elementor. You only need Elementor (free) installed and active.

= Is the graft/cost estimate medical advice? =

No. The calculator provides an estimate for informational purposes only, and is not a medical diagnosis or treatment recommendation. A configurable disclaimer with a required consent checkbox is shown to visitors before they submit a consultation request.

= Where do consultation requests go? =

To the admin email address(es) you configure under HairGraftPro → Email Notifications. You can customize the subject and body of both the clinic notification email and the optional patient auto-reply.

= Does this plugin phone home or track my site? =

No. This free version makes no external network requests and includes no analytics, licensing or tracking code of any kind.

= What does the Pro version add? =

An AI-based photo hair-loss scanner, PRP/GFC/SMP session calculators, a combined treatment quote builder, and additional features, sold separately from the plugin author's website. This free plugin is fully functional without it.

== Screenshots ==

1. The Graft & Cost Calculator widget on a clinic's website.
2. The Before/After comparison slider with clinical badges.
3. The HairGraftPro settings dashboard — module manager and badges.
4. Email notification template settings.

== Changelog ==

= 1.0.1 =
* Fixed: the Before/After widget collapsed into a thin strip when placed in an Elementor Flexbox container with Width set to Default. It now fills the container by default; a Custom Width you set is still respected.
* Fixed: before and after photos were cropped to fit a widescreen frame. The frame now matches the shape of the uploaded photo by default, so the whole photo is always shown. Very tall photos are kept within the screen height.
* Added: a 5:4 frame shape, a "Photo Fit" setting (show the whole photo, or fill the frame), and a "Frame Background" colour.
* Added: recommended photo size (1250 x 1000 px, 5:4) shown in the widget and the Case Study editor.
* Fixed: the Follicle HD Zoom lens now magnifies exactly the point under the cursor.

= 1.0.0 =
* Initial public release on WordPress.org: Graft & Cost Calculator, Before/After Slider, Case Studies post type, consultation lead capture with email notifications, and medical disclaimer controls.

== Upgrade Notice ==

= 1.0.1 =
Fixes the Before/After widget appearing squeezed in Elementor containers, stops photos from being cropped, and makes the zoom lens show the exact spot under the cursor.

= 1.0.0 =
Initial public release.
