Skip to content

Commit

Permalink
v2.11.4
Browse files Browse the repository at this point in the history
  • Loading branch information
kousikmukherjee committed Jun 13, 2024
1 parent 24ac9b5 commit 8593690
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 30 deletions.
6 changes: 3 additions & 3 deletions eu-vat-for-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 {
Expand All @@ -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();

Expand Down
7 changes: 5 additions & 2 deletions includes/functions/alg-wc-eu-vat-functions-validation.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* EU VAT for WooCommerce - Functions - Validation
*
* @version 2.10.3
* @version 2.11.4
* @since 1.0.0
* @author WPFactory
*/
Expand All @@ -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`
*/
Expand All @@ -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 = '';
Expand Down
48 changes: 24 additions & 24 deletions langs/eu-vat-for-woocommerce.pot
Original file line number Diff line number Diff line change
Expand Up @@ -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 <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\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"
Expand Down Expand Up @@ -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 ""

Expand Down
5 changes: 4 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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.

Expand Down

0 comments on commit 8593690

Please sign in to comment.