=== Modeway Shipping Delivery Estimator — Estimated Delivery Date with Geo-IP ===
Contributors: magiwd
Tags: shipping delivery, estimated delivery date, delivery estimator, woocommerce shipping, delivery countdown
Requires at least: 5.8
Tested up to: 7.0
Stable tag: 1.5.1
License: GPLv2 or later
License URI: http://gnu.org

Eliminate cart abandonment and build instant buyer trust. Automatically calculate and display precise estimated delivery date intervals on WooCommerce single product pages, shopping carts, and checkout funnels based on custom shipping classes, daily warehouse cutoffs, and intelligent multi-zone Geo-IP targeting.


== Description ==

Boost your store conversion rate and reduce customer anxiety by showing clear, dynamic delivery windows! **Modeway Shipping Delivery Estimator** automatically scans your active WooCommerce shipping classes and displays highly accurate business day intervals tailored to each product.

= ⚙️ Free Features =
* **Dynamic Shortcode:** Place `[modeway_product_shipping]` anywhere on your single product layout.
* **Automatic Database Sync:** One-click scan syncs all your existing WooCommerce shipping classes.
* **Cart & Checkout Integration:** Automatically parses and shows delivery intervals based on the longest matching item in the customer's cart.
* **Global Defaults:** Set a fallback minimum and maximum delivery window for untagged products.
* **Clean Code:** Lightweight, highly secure, and optimized for fast page loading.

= 👑 Unlock Pro Features =
Want to skyrocket your sales? Upgrade to the PRO version at [shipping.modeway.co](https://shipping.modeway.co) to unlock advanced conversion-driven features:
* **🎨 Live Design Customizer:** Take total control over typography, backgrounds, borders, and toggle the delivery truck icon to perfectly match your store branding.
* **⏳ FOMO Order Countdown:** Add an automated, live-ticking urgency clock (e.g., *"Order within 02h 15m to ship TODAY!"*) to drive massive instant sales.

= PRO Multi-Zone GeoTargeting (Geo-IP) =
Stop losing conversions on international traffic. The premium version integrates seamlessly with WooCommerce MaxMind Geolocation infrastructure to dynamically analyze your customers' IP addresses and automatically display targeted, hyper-localized delivery thresholds based on their continent or country.

Key Features:
* Dynamic Country Detection: Automatically senses and identifies the buyer's localized country name in real-time.
* Micro-Targeted Regional Zones: Configure independent delivery day intervals for 3 major economic markets:
  - Zone 1 (Tier-1): Accelerated delivery fulfillment windows for USA, Canada, United Kingdom, Australia, and New Zealand.
  - Zone 2 (European Union): Specialized thresholds covering all EU member states (Germany, France, Spain, Italy, etc.).
  - Zone 3 (Asia & India): Optimized intervals for high-growth Eastern and Asian markets (China, Japan, India, South Korea, etc.).
* Automated Rest-of-the-World Fallback: Any country outside the specified premium zones will seamlessly inherit your global default shipping rules.
* Conversion-Boosting Geo-Notices: Automatically injects a crisp, localized notification banner (e.g., "📍 Localized delivery options detected for Austria") directly above the shipping badge to dramatically lower shopping cart abandonment rates.

= Requirements for GeoTargeting Activation =
To ensure precise country detection and keep the built-in WooCommerce MaxMind IP database automatically updated weekly, please follow these standard 3-step configuration instructions:

1. Enable Geolocation in WooCommerce:
   Go to WooCommerce -> Settings -> General. Find the "Default customer location" dropdown and change it to "Geolocate" or "Geolocate (with page caching support)". Click Save Changes.

2. Get Your Free MaxMind License Key:
   Sign up for a free Geolite2 account on the official MaxMind website (maxmind.com). Head over to your account dashboard, navigate to "Manage License Keys", and click "Generate License Key". Copy your unique key string.

3. Sync with WooCommerce Integrations:
   Return to your WordPress dashboard, navigate to WooCommerce -> Settings -> Integration tab. Paste your copied string into the "MaxMind License Key" input field and press Save. WooCommerce will instantly download the global country grid database.



== Installation ==

1. Upload the plugin folder to the `/wp-content/plugins/` directory, or install directly via the WordPress Admin dashboard.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Navigate to **⚙️ Modeway Shipping** in your admin sidebar.
4. Click **Scan Store Database Now** to sync your shipping classes, set your delivery days, and save!
5. Paste the shortcode `[modeway_product_shipping]` onto your product page template.

== Frequently Asked Questions ==

= Does this plugin support custom product builders? =
Yes! Since the plugin operates via a standard shortcode `[modeway_product_shipping]`, you can easily paste it inside Elementor, Divi, Bricks, Gutenberg, or any other layout builder.

= How does the cart calculation work? =
If a customer adds multiple items with different shipping speeds (e.g., a 3-day class product and a 12-day class product), the plugin automatically parses the cart and displays the maximum delivery window at checkout to ensure realistic customer expectations.

= Where can I purchase the PRO version? =
You can buy the license key and unlock all customizer, FOMO countdown, and Geo-IP features at [shipping.modeway.co](https://shipping.modeway.co).

== Changelog ==

= 1.4.0 =
* Initial release. Fully stable WooCommerce core integration.
* Added Database Scan tool for seamless shipping class sync.
* Built-in fallback rule system for cart and checkout page labels.


= 1.5.1 =
* Feature: Deployed advanced Multi-Zone GeoTargeting engine with independent delivery day routing for Tier-1, European Union, and Asia-Pacific regions.
* Feature: Integrated native WordPress Media Library uploader buttons into both Live Design Customizer and FOMO dashboard for quick icon management.
* Feature: Added real-time location-based dynamic conversion banners (e.g., "Localized delivery options detected for Austria") directly onto the frontend widget.
* Fix: Completely refactored the single product delivery estimator layout using responsive flex-grid block markup, eliminating fragile legacy HTML tables and fixing pixel-perfect icon-to-text vertical alignment.
* Fix: Patched the responsive admin panel dashboard layouts to prevent viewport grid overlapping and container bleeding on smartphone screens.
* Fix: Resolved admin settings persistence bugs by ensuring stable WooCommerce selected() option value synchronization for border styles.


== Screenshots ==

1.Minimalist and high-converting delivery estimate widget seamlessly integrated on the WooCommerce single product page.
2.Syncing and configuring dynamic shipping rules and delivery days per WooCommerce shipping class.
3.Granular Layout Controls: micro-tuning of borders, custom color palettes, and internal widget padding for pixel-perfect store integration.
4.Automated estimated delivery calendar block displayed inside the WooCommerce shopping cart totals.
5.Clean, automated shipping dates threshold layout shown on the final checkout billing step.
6.Advanced Live Design Studio: micro-adjusting typography, text color, borders, and custom SVG icons.
7.Mobile-optimized single product view displaying a pixel-perfect, thumb-friendly delivery estimate badge with an integrated real-time geolocation notice.
8.Intelligent Multi-Zone GeoTargeting engine enabling independent delivery thresholds for Tier-1, EU, and Asia-Pacific markets with dynamic location-based conversion banners.
9.FOMO Urgency Trigger Dashboard: setting up warehouse daily cutoff hours and dynamic countdown clocks.
10.Elite VIP Client Hub: premium license key verification and direct developer updates portal.
11.Thumb-friendly mobile cart view with a fully responsive estimated delivery calendar block seamlessly formatted inside the checkout funnel totals.
11.Thumb-friendly mobile cart view with a fully responsive estimated delivery calendar block seamlessly formatted inside the checkout funnel totals.
12.Fully responsive mobile checkout billing step displaying a clean, distraction-free shipping dates threshold layout to minimize conversion drops.

