=== FunnelWheel Country Based Pricing === Contributors: funnelwheel, upnrunn, kishores Donate link: https://github.com/funnelwheel Tags: woocommerce, country pricing, geolocation pricing, multi currency pricing, regional pricing Requires at least: 5.6 Tested up to: 6.9 Requires PHP: 7.2 Requires Plugins: woocommerce Stable tag: 1.0.1 License: GPLv3 or later License URI: https://www.gnu.org/licenses/gpl-3.0.html Boost conversions globally with smart, country-based pricing in WooCommerce. == Description == FunnelWheel Country Based Pricing lets you automatically adjust product prices based on your customer's location — helping you offer region-specific pricing, increase sales, and stay competitive worldwide. Instead of running multiple stores or managing complex pricing rules manually, this plugin dynamically applies pricing based on country using WooCommerce's built-in geolocation, billing data, or store fallback logic. == Why Use This Plugin? == Different regions have different purchasing power. With this plugin, you can: - Offer lower prices in price-sensitive markets - Increase conversions from international visitors - Run geo-targeted promotions effortlessly - Avoid maintaining multiple WooCommerce stores - Keep your base store pricing untouched == Key Features == - Set flat or percentage-based discounts per country - Dynamic currency detection based on visitor location - Automatic currency locking once product is added to cart - Detect customer country via: - Geolocation (IP address) - Billing country (logged-in users) - Session-based detection for guests - Store base country fallback - Country selector for manual override (frontend) - Smart payment gateway filtering by country and currency - Works across: - Shop page - Product pages - Cart & Checkout - AJAX-compatible mini-cart updates - Lightweight and performance-focused - Developer-friendly filters and hooks == Installation == 1. Upload the plugin folder to the `/wp-content/plugins/` directory or install via the WordPress Plugin Installer. 2. Activate the plugin through the 'Plugins' screen in WordPress. 3. Go to **WooCommerce > Settings > Country Pricing** tab. 4. Add discount rules for different countries. 5. Save your settings. 6. Ensure WooCommerce geolocation is enabled (the plugin will set it automatically if not configured). == Frequently Asked Questions == = Does this plugin support currency switching? = Yes. The plugin dynamically detects and applies the appropriate currency based on the customer's country. It also locks the currency once a product is added to the cart to prevent inconsistencies during checkout. = Will it work with variable products? = Yes. Discounts apply to all WooCommerce product types using standard pricing filters. = Does it support tax-inclusive pricing? = Yes. The plugin adjusts the base product price before tax calculations. Your WooCommerce tax settings will continue to apply normally. = How does geolocation work? = The plugin uses WooCommerce's built-in geolocation system powered by MaxMind GeoLite2. You can configure it under: WooCommerce > Settings > General > Default Customer Location = Can customers change their country manually? = Yes. A frontend country selector allows users to manually switch their country, which updates pricing and currency accordingly. == Use Cases == - Global eCommerce stores with region-based pricing strategies - SaaS or digital product pricing by country - Running targeted promotions for specific countries - Wholesale or B2B region-based pricing models == Compatibility == - WooCommerce 6.x – 8.x+ - WordPress 5.6+ - Compatible with most WooCommerce themes - Works with caching plugins (with proper configuration) == Developer Hooks == This plugin includes several filters for customization: - `funncoba_should_load_public_features` - `funncoba_public_visibility_conditions` - `funncoba_enable_ajax_mini_cart` These allow developers to modify behavior without editing plugin core files. == Screenshots == 1. Configure country-based pricing rules in WooCommerce settings 2. Automatically adjusted product prices based on visitor country 3. Frontend country selector for manual override == Changelog == = 1.0.1 = * Improved asset loading logic (fixed JS not loading issue) * Added safe conditional loader using `wp` hook * Synced frontend UI and script loading conditions * Performance improvements with internal caching * Minor stability fixes = 1.0.0 = * Initial release * Country-based pricing adjustments * WooCommerce geolocation integration * Admin settings panel == Upgrade Notice == = 1.0.1 = Improves frontend script loading reliability and overall performance. Recommended update. == License == This plugin is licensed under the GPLv3 or later. See LICENSE file or https://www.gnu.org/licenses/gpl-3.0.html for more details.