From 0ccbd2400e0d79dc4784041ef9863aff61089180 Mon Sep 17 00:00:00 2001 From: algoritmika Date: Tue, 7 Jan 2025 13:59:25 +0100 Subject: [PATCH] v3.2.3 --- eu-vat-for-woocommerce.php | 4 +- includes/class-alg-wc-eu-vat-core.php | 61 +++++++++++---------------- langs/eu-vat-for-woocommerce.pot | 40 +++++++++--------- readme.txt | 5 ++- 4 files changed, 50 insertions(+), 60 deletions(-) diff --git a/eu-vat-for-woocommerce.php b/eu-vat-for-woocommerce.php index 379df00..2a50170 100644 --- a/eu-vat-for-woocommerce.php +++ b/eu-vat-for-woocommerce.php @@ -3,7 +3,7 @@ Plugin Name: EU/UK VAT Validation Manager for WooCommerce Plugin URI: https://wpfactory.com/item/eu-vat-for-woocommerce/ Description: Manage EU VAT in WooCommerce. Beautifully. -Version: 3.2.2 +Version: 3.2.3 Author: WPFactory Author URI: https://wpfactory.com/ Text Domain: eu-vat-for-woocommerce @@ -68,7 +68,7 @@ final class Alg_WC_EU_VAT { * @var string * @since 1.0.0 */ - public $version = '3.2.2'; + public $version = '3.2.3'; /** * core object. diff --git a/includes/class-alg-wc-eu-vat-core.php b/includes/class-alg-wc-eu-vat-core.php index 293ded1..ee7ec9e 100644 --- a/includes/class-alg-wc-eu-vat-core.php +++ b/includes/class-alg-wc-eu-vat-core.php @@ -2,7 +2,7 @@ /** * EU VAT for WooCommerce - Core Class * - * @version 3.2.2 + * @version 3.2.3 * @since 1.0.0 * * @author WPFactory @@ -1024,57 +1024,44 @@ function eu_vat_wp_footer() { /** * eu_vat_admin_footer. * - * @version 2.12.12 + * @version 3.2.3 * @since 1.7.0 */ function eu_vat_admin_footer() { - - $nonce = wp_create_nonce('alg-wc-eu-vat-ajax-nonce'); + $nonce = wp_create_nonce( 'alg-wc-eu-vat-ajax-nonce' ); ?> =' ) ) { ?> - - EU VAT Number is not valid." msgstr "" #: includes/class-alg-wc-eu-vat-core.php:603 -#: includes/class-alg-wc-eu-vat-core.php:2046 +#: includes/class-alg-wc-eu-vat-core.php:2033 msgid "" "Success (checkout): VAT ID valid. Matched with prevalidated VAT numbers." msgstr "" #: includes/class-alg-wc-eu-vat-core.php:629 -#: includes/class-alg-wc-eu-vat-core.php:2101 +#: includes/class-alg-wc-eu-vat-core.php:2088 msgid "Error: VAT is not valid (checkout)" msgstr "" @@ -259,12 +259,12 @@ msgstr "" msgid "VAT SHIFTED" msgstr "" -#: includes/class-alg-wc-eu-vat-core.php:1241 +#: includes/class-alg-wc-eu-vat-core.php:1228 #: includes/settings/class-alg-wc-eu-vat-settings-general.php:129 msgid "You didn't set your VAT ID. Are you sure you want to continue?" msgstr "" -#: includes/class-alg-wc-eu-vat-core.php:1241 +#: includes/class-alg-wc-eu-vat-core.php:1228 #: includes/settings/class-alg-wc-eu-vat-settings-general.php:136 #: includes/settings/class-alg-wc-eu-vat-settings-general.php:144 #: includes/settings/class-alg-wc-eu-vat-settings-general.php:164 @@ -286,29 +286,29 @@ msgstr "" msgid "Yes" msgstr "" -#: includes/class-alg-wc-eu-vat-core.php:1241 +#: includes/class-alg-wc-eu-vat-core.php:1228 msgid "No" msgstr "" -#: includes/class-alg-wc-eu-vat-core.php:1357 +#: includes/class-alg-wc-eu-vat-core.php:1344 #: includes/settings/class-alg-wc-eu-vat-settings-general.php:202 msgid "I don't have a VAT ID" msgstr "" -#: includes/class-alg-wc-eu-vat-core.php:1377 +#: includes/class-alg-wc-eu-vat-core.php:1364 #: includes/settings/class-alg-wc-eu-vat-settings-general.php:217 msgid "I have a valid VAT but not exempted" msgstr "" -#: includes/class-alg-wc-eu-vat-core.php:1632 +#: includes/class-alg-wc-eu-vat-core.php:1619 msgid "Customer Decide" msgstr "" -#: includes/class-alg-wc-eu-vat-core.php:2181 +#: includes/class-alg-wc-eu-vat-core.php:2168 msgid "Keep VAT for this product" msgstr "" -#: includes/class-alg-wc-eu-vat-core.php:2182 +#: includes/class-alg-wc-eu-vat-core.php:2169 msgid "" "Enable this to ensure VAT is charged on this product, even if the customer " "provides a valid VAT number." diff --git a/readme.txt b/readme.txt index 8749bca..6a2f925 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.7 -Stable tag: 3.2.2 +Stable tag: 3.2.3 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 the “WPFactory == Changelog == += 3.2.3 - 07/01/2025 = +* Fix - When the "Admin > Checkout block field" option was enabled, the EU VAT field was hidden on the admin order edit page. + = 3.2.2 - 31/12/2024 = * Fix - Show field for selected user roles only.