From 80a0c4a973d63a4795fe168cb172cedbe19e2a96 Mon Sep 17 00:00:00 2001 From: kousikmukherjee Date: Mon, 1 Jul 2024 18:38:27 +0530 Subject: [PATCH] v2.12.2 --- eu-vat-for-woocommerce.php | 6 ++--- includes/class-alg-wc-eu-vat-core.php | 7 ++--- langs/eu-vat-for-woocommerce.pot | 38 +++++++++++++-------------- readme.txt | 5 +++- 4 files changed, 30 insertions(+), 26 deletions(-) diff --git a/eu-vat-for-woocommerce.php b/eu-vat-for-woocommerce.php index 369d34a..2133635 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.1 +Version: 2.12.2 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.0 + * @version 2.12.2 * @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.1'; + public $version = '2.12.2'; 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 5ecfedc..d5344fb 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.11.7 + * @version 2.12.2 * @since 1.0.0 * @author WPFactory */ @@ -882,7 +882,7 @@ function current_url() { /** * admin_inline_js. * - * @version 1.4.1 + * @version 2.12.2 * @since 1.4.1 */ function admin_inline_js() @@ -928,7 +928,8 @@ function alg_wc_eu_vat_validate_vat_admin() { type: "POST", url: '', data: data, - success: function( response ) { + success: function( resp ) { + var response = resp.res; response = response.trim(); // $( 'body' ).trigger( 'update_checkout' ); $("#woocommerce-order-data").unblock(); diff --git a/langs/eu-vat-for-woocommerce.pot b/langs/eu-vat-for-woocommerce.pot index 2b596cd..a989741 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.12.1\n" +"Project-Id-Version: eu-vat-for-woocommerce 2.12.2\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-30T09:44:08+02:00\n" +"POT-Creation-Date: 2024-07-01T15:07:31+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:1167 -#: includes/class-alg-wc-eu-vat-core.php:1169 -#: includes/class-alg-wc-eu-vat-core.php:1286 -#: includes/class-alg-wc-eu-vat-core.php:1366 -#: includes/class-alg-wc-eu-vat-core.php:1398 +#: 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/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:1813 +#: includes/class-alg-wc-eu-vat-core.php:1814 #: 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:1540 +#: includes/class-alg-wc-eu-vat-core.php:1541 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:1709 -#: includes/class-alg-wc-eu-vat-core.php:1778 +#: includes/class-alg-wc-eu-vat-core.php:1710 +#: includes/class-alg-wc-eu-vat-core.php:1779 #: 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:1756 +#: includes/class-alg-wc-eu-vat-core.php:1757 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:1786 +#: includes/class-alg-wc-eu-vat-core.php:1787 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:978 +#: includes/class-alg-wc-eu-vat-core.php:979 #: 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:978 +#: includes/class-alg-wc-eu-vat-core.php:979 #: 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:978 +#: includes/class-alg-wc-eu-vat-core.php:979 msgid "No" msgstr "" -#: includes/class-alg-wc-eu-vat-core.php:1090 +#: includes/class-alg-wc-eu-vat-core.php:1091 #: 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:1109 +#: includes/class-alg-wc-eu-vat-core.php:1110 #: 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:1362 +#: includes/class-alg-wc-eu-vat-core.php:1363 msgid "Customer Decide" msgstr "" diff --git a/readme.txt b/readme.txt index 12b32a0..334d02f 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.1 +Stable tag: 2.12.2 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.12.2 - 01/07/2024 = +*Fix - admin_inline_js() for admin order creation. + = 2.12.1 - 30/06/2024 = *Fix - deployment.