=== Country Based Restrictions PRO === Contributors: zorem Tags: woocommerce, country restrictions, geo restriction, product restriction, country blocking Requires at least: 5.0 Tested up to: 6.9.4 Requires PHP: 7.4 Stable tag: 4.3.6 License: GNU General Public License v3.0 License URI: https://www.gnu.org/licenses/gpl-3.0.html Country Based Restrictions PRO extends the free plugin and allows you to use more restriction options, restrict products by categories, and more. == Description == Country Based Restrictions PRO is a WooCommerce extension that allows store owners to restrict products, categories, tags, attributes, and shipping classes based on the customer's country. **Key Features:** * Restrict individual products by country (available for / not available for selected countries) * Bulk restrictions by product category, tag, attribute, or shipping class * Global restriction option to restrict all products for specific countries * Hide restricted products completely from catalog, or show with a restriction message * Restrict payment gateways by country * Country-based restrictions on checkout (classic and block checkout) * Custom restriction messages for products, cart, and category pages * CBR country selector widget for frontend * Debug toolbar to test geolocation detection * WooCommerce CSV Import/Export compatibility * HPOS (High Performance Order Storage) compatible * Bypass restrictions for specific users * Support for custom taxonomies restriction * Sort products by availability (available first, restricted last) * Restrict by billing or shipping country * "No products found" custom message on shop/catalog pages * Bundle product compatibility == Installation == 1. Ensure WooCommerce is installed and activated. 2. Upload the plugin files to the `/wp-content/plugins/country-base-restrictions-pro-addon` directory, or install via the WordPress plugin screen. 3. Activate the plugin through the **Plugins** screen in WordPress. 4. Go to **WooCommerce > Country Restrictions** to configure settings. == Frequently Asked Questions == = Does this plugin require WooCommerce? = Yes. WooCommerce must be installed and activated. = What is the minimum WooCommerce version required? = WooCommerce 4.0 or higher. = Can I restrict products for multiple countries at once? = Yes. You can select multiple countries when setting up a restriction rule on a product or in the bulk restriction settings. = Does it work with variable products? = Yes. You can set country restrictions on individual variations as well as the parent product. = Is it compatible with HPOS? = Yes. The plugin declares full compatibility with WooCommerce High Performance Order Storage (HPOS). == Screenshots == 1. Product-level country restriction settings tab. 2. Bulk restriction settings — restrict by category, tag, attribute, or shipping class. 3. Payment gateway restriction settings. 4. General settings page. 5. CBR country selector widget. == Changelog == = 4.3.6 = * Fix – Restriction logic now correctly blocks restricted variable product variations from being purchasable. * Fix – Fatal Error in CBR PRO When Editing Elementor Templates. * Fix – Catalog restriction by attribute now correctly applies to variable products. * Enhancement – Add option to customize "No products found" message on shop page. * Enhancement – Added option to sort products by availability. * Enhancement – Added Bypass Country Restriction for Specific Users. * Enhancement – Added option to select address source type (billing or shipping) for product visibility restrictions. * Enhancement – Added Support for Custom Taxonomy Restriction. * Dev – WC Compatibility added upto 10.6.1 * Dev – WP tested upto 6.9.4 = 4.3.5 = * Fix – "Get Support" dropdown hidden behind restriction rule container. * Fix – Catalog Visibility sub-options not showing correctly on page load. * Fix – Update deprecated WooCommerce script handles (WC 10.3.0+). * Enhancement – "Restrict product only on Place Order button (Checkout)". * Dev – WC Compatibility added upto 10.3.5 * Dev – WP tested upto 6.8.3 = 4.3.3 = * Improved – Add "Select a Rule" Option label for Restriction Rule Dropdown in Product Settings. * Fix – Fixed the Deprecated Warning for urldecode(). * Dev – WC Compatibility added upto 10.1.2 * Dev – WP tested upto 6.8.2 = 4.3.2 = * Enhancement – Added support for setting a cookie based on the country in the URL. * Improved – Redesigned the settings layout for better usability. * Improved – Updated all settings labels and tooltips for clarity. * Fix – Resolved the issue with default date selection. * Fix – Fixed the issue where cart and checkout items were not being removed as expected. * Fix – Addressed the missing WooPayments option in restriction rule settings. * Dev – WC Compatibility added upto 9.8.3 * Dev – WP tested upto 6.8.1 = 4.3 = * Fix – The issue of country widget. * Enhancement – Added admin message for return plugin. = 4.2 = * Dev – WC Compatibility added upto 9.2.3 * Dev – WP tested upto 6.6 * Enhancement – Added custom class in body tag. = 4.1 = * Dev – WC Compatibility added upto 9.0.2 * Dev – WP tested upto 6.5 * Dev – Added Compatibility with Products Bundle plugin. * Fix – Restriction not working on search products. = 4.0 = * Dev – WC Compatibility added upto 8.7.0 * Dev – WP tested upto 6.4.3 * Fix – The incorrect country flag for US. * Fix – The issue with selecting country at checkout. = 3.9 = * Enhancement – Added support for HTML tags in the restriction message. * Enhancement – Implemented the feature to restrict by billing country. * Fix – Bulk shipping class restriction not working with variable products. * Fix – Shortcode not working with esc_html() function. * Fix – Priority issue related to product level restriction. * Fix – Patched a vulnerability concerning nonces in admin notices. * Dev – Added compatibility with WooCommerce 8.5.2 = 3.8.1 = * Fix – The error with PHP 8.2. * Dev – WC Compatibility added upto 8.3.1 = 3.8 = * Dev – Added Compatibility with PHP 8.2. * Dev – WC Compatibility added upto 8.2.1 * Dev – WP tested upto 6.4 = 3.7 = * Dev – Added Compatibility with HPOS. * Dev – WC Compatibility added upto 7.8.1 * Dev – WP tested upto 6.2 = 3.6 = * Dev – WC Compatibility added upto 6.8 * Dev – WP tested upto 6.0 = 3.5 = * Fix – Uncaught Error get_shipping_class_id() on bool. * Dev – WC Compatibility added upto 6.3 * Dev – WP tested upto 5.9 = 3.4 = * Fix – Issue of country widget in sidebar. * Dev – WC Compatibility added upto 6.0 * Enhancement – Setup new licensing system. * Enhancement – Added Docs, Support and Review link on plugins page. = 3.3 = * Fix – Issue of country widget. * Dev – WC Compatibility added upto 5.8 = 3.2 = * Fix – Uncaught ReferenceError: setCountryCookie is not defined. * Dev – WC Compatibility added upto 5.6 * Enhancement – Added Country flag icon in widgets. = 3.1 = * Fix – Issue of shipping class restriction rule. * Dev – WP Compatibility added upto 5.8 = 3.0 = * Fix – First time select default country from geolocation in CBR widget shortcode. = 2.9 = * Dev – WC Compatibility added upto 5.3 * Enhancement – Added product restriction message in cart when allow add to cart option is selected. = 2.8 = * Fix – Warning: in_array() expects parameter 2 to be array, null given. * Fix – Fix the issue of Subscription variation restriction. = 2.6 = * Dev – WP tested upto 5.7 * Enhancement – Added features of restrict by shipping/payment methods. = 2.4 = * Fix – Related Products / WC products widgets bug. * Fix – Tool Bar / debug mode critical bug. = 2.0 = * Enhancement – Import all free plugin features into PRO (run without free plugin). = 1.5 = * Enhancement – Added addons tab and moved license tab inside the addons tab. = 1.3 = * Fix – Issue in bulk restriction products. * Enhancement – Added CBR widget for customer. * Enhancement – Added option for CBR widget customization. = 1.2.0 = * Enhancement – Added cart restriction message option. = 1.1.2 = * Enhancement – Added feature to hide product price for restricted product. = 1.1.3 = * Enhancement – Added option for Global restriction in Bulk restriction. = 1.0.6 = * Enhancement – Added feature to disable payment methods by countries. * Enhancement – Bulk product restriction by Categories, Tags, Attributes, Shipping class. = 1.0 = * Launch it! == Upgrade Notice == = 4.3.6 = Major enhancements including custom taxonomy restriction, user bypass, sort by availability, and billing/shipping country source selection.