=== Preciousuite Gold Buyback Quote Calculator ===
Contributors: vimakava
Tags: gold calculator, buyback, price calculator, jewelry, preciousuite
Requires at least: 6.0
Tested up to: 7.1
Stable tag: 1.8
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html


A highly polished, conversion-optimized WordPress calculator designed for gold buyers, jewelers, and pawn shops. Part of the Preciousuite ecosystem.

== Description ==

Preciousuite Gold Buyback Quote Calculator provides an elegant frontend interface for customers to calculate the value of their gold based on live/manual metrics, whilst quietly feeding actionable leads and custom SMTP emails into your backend.

### ✨ Core Features
* **Premium Glassmorphic UI:** Features a sleek, trust-building frontend calculator utilizing modern typography, subtle hover states, drop-shadows, and slide-up animations.
* **Dynamic Pricing Engine:** Manage today’s base gold price per gram directly from your dashboard.
* **Profit Margin Control:** Easily set your payout percentage (e.g., 95% = You profit 5%). The calculator hides this margin gracefully from the customer.
* **International Currencies:** Out-of-the-box support for USD ($), EUR (€), GBP (£), INR (₹), AUD (A$), and CAD (C$).
* **Opt-In Lead Capture Flow:** Customers can choose to "Lock this Price" by submitting their email address. (Can be toggled On/Off in settings).
* **Internal Quote Database (CRM):** Captures all submitted quotes into a searchable "Quotes" custom post type inside your admin panel.
* **Unique Quotation IDs:** Every lead generates a secure Unique ID (e.g., PS-F5B9A2) that customers can bring physically into your retail shop.
* **Dual HTML Email Notifications:** Dispatches beautifully formatted HTML receipt emails natively to both the Customer and the Shop Admin.
* **Built-in SMTP Engine:** Bypasses local or strict server email blocks with a native SMTP routing settings integration (Support for Gmail App Passwords integrated).
* **Intelligent Pre-fill:** Operates cleanly for guests but seamlessly auto-fills email fields for users natively logged in to your WordPress platform.

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/preciousuite-gold-buyback-quote-calculator` directory.
2. Activate the plugin through the 'Plugins' screen in WordPress.
3. Navigate to **Gold Calc** in your sidebar to configure your rates, margins, and currency.
4. Use the shortcode `[preciousuite_calculator]` on any page, post, or widget where you want the calculator to appear.

== Frequently Asked Questions ==

= How do I change the currency? =
Go to the Gold Calc settings in your WordPress Admin panel and select your desired currency from the dropdown menu.

= The emails are not sending! What do I do? =
If your server blocks outbound PHP emails (very common on Localhost/XAMPP or strict hosts), go to Gold Calc settings and configure the **Email Deliverability (SMTP)** section at the bottom. Check "Enable Custom SMTP" and enter your SMTP details.

= How do I stop collecting emails? =
If you only want a simple price viewer, just uncheck "Enable Lead Capture" on the Gold Calc settings page. The calculator will stop asking for emails and will just display the instant quote.

== Screenshots ==

1. Front-end calculator layout.
2. The Gold Calc Settings page.
3. The Quotes CRM database viewer.

== Changelog ==

= 1.8 =
* Updated: Compatibility confirmed with latest WordPress versions.
* Improved: WordPress compatibility updates.

= 1.7 =
* Complete UI/UX Overhaul with premium glassmorphic styling

= 1.6 =
* Complete UI/UX Overhaul with premium glassmorphic styling

= 1.5 =
* Added native Lead Capture system with toggles
* Added unique quote ID generation
* Added Custom Post Type quote logging database with ID searching
* Formatted dual HTML email capabilities
* Added native SMTP integration hook to bypass local firewalls

= 1.2 =
* Rebranded to Preciousuite
* Updated all prefixes to 'preciousuite_' to avoid collisions
* Complete UI/UX Overhaul with premium glassmorphic styling

= 1.0 =
* Initial stable release.
