diff --git a/eu-vat-for-woocommerce.php b/eu-vat-for-woocommerce.php index 672e35e..5d66da6 100644 --- a/eu-vat-for-woocommerce.php +++ b/eu-vat-for-woocommerce.php @@ -3,7 +3,7 @@ Plugin Name: EU/UK VAT for WooCommerce Plugin URI: https://wpfactory.com/item/eu-vat-for-woocommerce/ Description: Manage EU VAT in WooCommerce. Beautifully. -Version: 2.11.3 +Version: 2.11.4 Author: WPFactory Author URI: https://wpfactory.com/ Text Domain: eu-vat-for-woocommerce @@ -22,7 +22,7 @@ * Main Alg_WC_EU_VAT Class * * @class Alg_WC_EU_VAT - * @version 2.11.3 + * @version 2.11.4 * @since 1.0.0 */ final class Alg_WC_EU_VAT { @@ -33,7 +33,7 @@ final class Alg_WC_EU_VAT { * @var string * @since 1.0.0 */ - public $version = '2.11.3'; + public $version = '2.11.4'; public $core = null; public $settings = array(); diff --git a/includes/functions/alg-wc-eu-vat-functions-validation.php b/includes/functions/alg-wc-eu-vat-functions-validation.php index 7765c8b..8b83848 100644 --- a/includes/functions/alg-wc-eu-vat-functions-validation.php +++ b/includes/functions/alg-wc-eu-vat-functions-validation.php @@ -2,7 +2,7 @@ /** * EU VAT for WooCommerce - Functions - Validation * - * @version 2.10.3 + * @version 2.11.4 * @since 1.0.0 * @author WPFactory */ @@ -13,7 +13,7 @@ /** * alg_wc_eu_vat_parse_vat. * - * @version 1.7.1 + * @version 2.11.4 * @since 1.1.0 * @todo [dev] (maybe) `alg_wc_eu_vat_maybe_log`: extract ID from `$full_vat_number` */ @@ -31,6 +31,9 @@ function alg_wc_eu_vat_parse_vat( $full_vat_number, $billing_country ) { } } elseif ( 'yes' === get_option( 'alg_wc_eu_vat_allow_without_country_code', 'no' ) ) { $country = $billing_country; + if( 'GR' === $billing_country ) { + $country = 'EL'; + } $number = $full_vat_number; } else { $country = ''; diff --git a/langs/eu-vat-for-woocommerce.pot b/langs/eu-vat-for-woocommerce.pot index 27efb00..b947bda 100644 --- a/langs/eu-vat-for-woocommerce.pot +++ b/langs/eu-vat-for-woocommerce.pot @@ -2,14 +2,14 @@ # This file is distributed under the GNU General Public License v3.0. msgid "" msgstr "" -"Project-Id-Version: eu-vat-for-woocommerce 2.11.3\n" +"Project-Id-Version: eu-vat-for-woocommerce 2.11.4\n" "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/eu-vat-for-woocommerce\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"POT-Creation-Date: 2024-06-13T08:04:53+02:00\n" +"POT-Creation-Date: 2024-06-13T14:58:40+02:00\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "X-Generator: WP-CLI 2.9.0\n" "X-Domain: eu-vat-for-woocommerce\n" @@ -276,52 +276,52 @@ msgstr "" msgid "Error: Country code does not match (%s)" msgstr "" -#: includes/functions/alg-wc-eu-vat-functions-validation.php:62 -#: includes/functions/alg-wc-eu-vat-functions-validation.php:75 -#: includes/functions/alg-wc-eu-vat-functions-validation.php:346 -#: includes/functions/alg-wc-eu-vat-functions-validation.php:358 +#: includes/functions/alg-wc-eu-vat-functions-validation.php:65 +#: includes/functions/alg-wc-eu-vat-functions-validation.php:78 +#: includes/functions/alg-wc-eu-vat-functions-validation.php:349 +#: includes/functions/alg-wc-eu-vat-functions-validation.php:361 msgid "Error: %s is disabled" msgstr "" -#: includes/functions/alg-wc-eu-vat-functions-validation.php:83 -#: includes/functions/alg-wc-eu-vat-functions-validation.php:367 +#: includes/functions/alg-wc-eu-vat-functions-validation.php:86 +#: includes/functions/alg-wc-eu-vat-functions-validation.php:370 msgid "Error: No response" msgstr "" -#: includes/functions/alg-wc-eu-vat-functions-validation.php:91 -#: includes/functions/alg-wc-eu-vat-functions-validation.php:136 -#: includes/functions/alg-wc-eu-vat-functions-validation.php:208 -#: includes/functions/alg-wc-eu-vat-functions-validation.php:299 -#: includes/functions/alg-wc-eu-vat-functions-validation.php:422 +#: includes/functions/alg-wc-eu-vat-functions-validation.php:94 +#: includes/functions/alg-wc-eu-vat-functions-validation.php:139 +#: includes/functions/alg-wc-eu-vat-functions-validation.php:211 +#: includes/functions/alg-wc-eu-vat-functions-validation.php:302 +#: includes/functions/alg-wc-eu-vat-functions-validation.php:425 msgid "Success: VAT ID is valid" msgstr "" -#: includes/functions/alg-wc-eu-vat-functions-validation.php:99 -#: includes/functions/alg-wc-eu-vat-functions-validation.php:132 -#: includes/functions/alg-wc-eu-vat-functions-validation.php:200 -#: includes/functions/alg-wc-eu-vat-functions-validation.php:418 +#: includes/functions/alg-wc-eu-vat-functions-validation.php:102 +#: includes/functions/alg-wc-eu-vat-functions-validation.php:135 +#: includes/functions/alg-wc-eu-vat-functions-validation.php:203 +#: includes/functions/alg-wc-eu-vat-functions-validation.php:421 msgid "Error: VAT ID not valid" msgstr "" -#: includes/functions/alg-wc-eu-vat-functions-validation.php:129 -#: includes/functions/alg-wc-eu-vat-functions-validation.php:193 -#: includes/functions/alg-wc-eu-vat-functions-validation.php:411 +#: includes/functions/alg-wc-eu-vat-functions-validation.php:132 +#: includes/functions/alg-wc-eu-vat-functions-validation.php:196 +#: includes/functions/alg-wc-eu-vat-functions-validation.php:414 msgid "Error: Company name does not match (%s)" msgstr "" -#: includes/functions/alg-wc-eu-vat-functions-validation.php:204 +#: includes/functions/alg-wc-eu-vat-functions-validation.php:207 msgid "Error: Result is not set" msgstr "" -#: includes/functions/alg-wc-eu-vat-functions-validation.php:217 +#: includes/functions/alg-wc-eu-vat-functions-validation.php:220 msgid "Error: SoapClient class does not exist" msgstr "" -#: includes/functions/alg-wc-eu-vat-functions-validation.php:223 +#: includes/functions/alg-wc-eu-vat-functions-validation.php:226 msgid "Error: Exception: %s" msgstr "" -#: includes/functions/alg-wc-eu-vat-functions-validation.php:287 +#: includes/functions/alg-wc-eu-vat-functions-validation.php:290 msgid "Success: VAT ID valid. Matched with prevalidated VAT numbers." msgstr "" diff --git a/readme.txt b/readme.txt index 3068e5e..98aeba7 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: wpcodefactory, omardabbas, karzin, anbinder, algoritmika, kousikmu Tags: EU VAT, UK VAT, tax, vat validation, VAT Requires at least: 6.1 Tested up to: 6.5 -Stable tag: 2.11.3 +Stable tag: 2.11.4 License: GNU General Public License v3.0 License URI: http://www.gnu.org/licenses/gpl-3.0.html @@ -290,6 +290,9 @@ Once activated, access the plugin's settings by navigating to “WooCommerce > S == Changelog == += 2.11.4 - 13/06/2024 = +* Fix - “Allow VAT number input without country code” for Greek VATs. + = 2.11.3 - 13/06/2024 = * HOPS - ADMIN ORDERS LIST FOR EU VAT.