From 74298e0fc65ad59ebedad0febfb2b732ca03aa3a Mon Sep 17 00:00:00 2001 From: kousikmukherjee Date: Tue, 2 Jul 2024 11:31:29 +0530 Subject: [PATCH] v2.12.3 --- eu-vat-for-woocommerce.php | 6 ++--- includes/class-alg-wc-eu-vat-core.php | 26 ++++++++++++------ langs/eu-vat-for-woocommerce.pot | 38 +++++++++++++-------------- readme.txt | 11 +++++--- 4 files changed, 47 insertions(+), 34 deletions(-) diff --git a/eu-vat-for-woocommerce.php b/eu-vat-for-woocommerce.php index 2133635..aeefce1 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.12.2 +Version: 2.12.3 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.12.2 + * @version 2.12.3 * @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.12.2'; + public $version = '2.12.3'; public $core = null; public $settings = array(); diff --git a/includes/class-alg-wc-eu-vat-core.php b/includes/class-alg-wc-eu-vat-core.php index d5344fb..6b79f34 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 2.12.2 + * @version 2.12.3 * @since 1.0.0 * @author WPFactory */ @@ -766,6 +766,13 @@ function maybe_exclude_vat_free( $value ) { return $preserve_base_country_check_passed; } + /** + * eu_vat_admin_footer. + * + * @version 2.12.3 + * @since 1.7.0 + */ + function eu_vat_admin_footer() { ?> - =' ) ) { ?> - + =' ) ) { ?> + \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-07-01T15:07:31+02:00\n" +"POT-Creation-Date: 2024-07-02T08:00:53+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" @@ -37,11 +37,11 @@ msgstr "" #: eu-vat-for-woocommerce-blocks-initialize.php:55 #: includes/admin/class-alg-wc-eu-vat-admin.php:356 -#: includes/class-alg-wc-eu-vat-core.php:1168 -#: includes/class-alg-wc-eu-vat-core.php:1170 -#: includes/class-alg-wc-eu-vat-core.php:1287 -#: includes/class-alg-wc-eu-vat-core.php:1367 -#: includes/class-alg-wc-eu-vat-core.php:1399 +#: includes/class-alg-wc-eu-vat-core.php:1178 +#: includes/class-alg-wc-eu-vat-core.php:1180 +#: includes/class-alg-wc-eu-vat-core.php:1297 +#: includes/class-alg-wc-eu-vat-core.php:1377 +#: includes/class-alg-wc-eu-vat-core.php:1409 #: includes/settings/class-alg-wc-eu-vat-settings-general.php:86 #: includes/settings/class-alg-wc-eu-vat-settings-general.php:94 #: build/eu-vat-for-woocommerce-checkout-eu-vat-field-block.js:1 @@ -169,7 +169,7 @@ msgid "VAT is valid." msgstr "" #: includes/class-alg-wc-eu-vat-ajax.php:55 -#: includes/class-alg-wc-eu-vat-core.php:1814 +#: includes/class-alg-wc-eu-vat-core.php:1824 #: includes/settings/class-alg-wc-eu-vat-settings-validation.php:272 msgid "VAT is not valid." msgstr "" @@ -201,25 +201,25 @@ msgid "(optional)" msgstr "" #: includes/class-alg-wc-eu-vat-ajax.php:125 -#: includes/class-alg-wc-eu-vat-core.php:1541 +#: includes/class-alg-wc-eu-vat-core.php:1551 msgid "Error: Country by IP does not match (%s)" msgstr "" #: includes/class-alg-wc-eu-vat-core.php:201 #: includes/class-alg-wc-eu-vat-core.php:365 -#: includes/class-alg-wc-eu-vat-core.php:1710 -#: includes/class-alg-wc-eu-vat-core.php:1779 +#: includes/class-alg-wc-eu-vat-core.php:1720 +#: includes/class-alg-wc-eu-vat-core.php:1789 #: includes/settings/class-alg-wc-eu-vat-settings-validation.php:70 msgid "EU VAT Number is not valid." msgstr "" #: includes/class-alg-wc-eu-vat-core.php:334 -#: includes/class-alg-wc-eu-vat-core.php:1757 +#: includes/class-alg-wc-eu-vat-core.php:1767 msgid "Success (checkout): VAT ID valid. Matched with prevalidated VAT numbers." msgstr "" #: includes/class-alg-wc-eu-vat-core.php:360 -#: includes/class-alg-wc-eu-vat-core.php:1787 +#: includes/class-alg-wc-eu-vat-core.php:1797 msgid "Error: VAT is not valid (checkout)" msgstr "" @@ -227,12 +227,12 @@ msgstr "" msgid "VAT SHIFTED" msgstr "" -#: includes/class-alg-wc-eu-vat-core.php:979 +#: includes/class-alg-wc-eu-vat-core.php:989 #: includes/settings/class-alg-wc-eu-vat-settings-general.php:163 msgid "You didn't set your VAT ID. Are you sure you want to continue?" msgstr "" -#: includes/class-alg-wc-eu-vat-core.php:979 +#: includes/class-alg-wc-eu-vat-core.php:989 #: includes/settings/class-alg-wc-eu-vat-settings-general.php:171 #: includes/settings/class-alg-wc-eu-vat-settings-general.php:180 #: includes/settings/class-alg-wc-eu-vat-settings-general.php:202 @@ -252,21 +252,21 @@ msgstr "" msgid "Yes" msgstr "" -#: includes/class-alg-wc-eu-vat-core.php:979 +#: includes/class-alg-wc-eu-vat-core.php:989 msgid "No" msgstr "" -#: includes/class-alg-wc-eu-vat-core.php:1091 +#: includes/class-alg-wc-eu-vat-core.php:1101 #: includes/settings/class-alg-wc-eu-vat-settings-general.php:244 msgid "I don't have a VAT ID" msgstr "" -#: includes/class-alg-wc-eu-vat-core.php:1110 +#: includes/class-alg-wc-eu-vat-core.php:1120 #: includes/settings/class-alg-wc-eu-vat-settings-general.php:260 msgid "I have a valid VAT but not exempted" msgstr "" -#: includes/class-alg-wc-eu-vat-core.php:1363 +#: includes/class-alg-wc-eu-vat-core.php:1373 msgid "Customer Decide" msgstr "" diff --git a/readme.txt b/readme.txt index 334d02f..0d0f16b 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.12.2 +Stable tag: 2.12.3 License: GNU General Public License v3.0 License URI: http://www.gnu.org/licenses/gpl-3.0.html @@ -290,14 +290,17 @@ Once activated, access the plugin's settings by navigating to “WooCommerce > S == Changelog == += 2.12.3 - 02/07/2024 = +* Fix - eu_vat_admin_footer() for admin order creation. + = 2.12.2 - 01/07/2024 = -*Fix - admin_inline_js() for admin order creation. +* Fix - admin_inline_js() for admin order creation. = 2.12.1 - 30/06/2024 = -*Fix - deployment. +* Fix - deployment. = 2.12.0 - 30/06/2024 = -*Fix - checkout block compatibility. +* Fix - checkout block compatibility. = 2.11.12 - 29/06/2024 = * Add - Autofill company name from VAT ID.