diff --git a/eu-vat-for-woocommerce.php b/eu-vat-for-woocommerce.php
index 883732f..cf81df8 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.11
+Version: 2.12.12
Author: WPFactory
Author URI: https://wpfactory.com/
Text Domain: eu-vat-for-woocommerce
@@ -33,8 +33,23 @@ final class Alg_WC_EU_VAT {
* @var string
* @since 1.0.0
*/
- public $version = '2.12.11';
+ public $version = '2.12.12';
+
+ /**
+ * core object.
+ *
+ * @var Alg_WC_EU_VAT_Core class instance
+ * @since 2.12.12
+ */
+
public $core = null;
+
+ /**
+ * admin settings.
+ *
+ * @var array
+ * @since 2.12.12
+ */
public $settings = array();
/**
diff --git a/includes/admin/class-alg-wc-eu-vat-admin.php b/includes/admin/class-alg-wc-eu-vat-admin.php
index 5c0a68f..7d38c45 100644
--- a/includes/admin/class-alg-wc-eu-vat-admin.php
+++ b/includes/admin/class-alg-wc-eu-vat-admin.php
@@ -2,7 +2,7 @@
/**
* EU VAT for WooCommerce - Admin Class
*
- * @version 2.12.9
+ * @version 2.12.12
* @since 1.0.0
* @author WPFactory
*/
@@ -398,7 +398,7 @@ function add_meta_box() {
/**
* create_meta_box.
*
- * @version 2.12.9
+ * @version 2.12.12
* @since 1.0.0
* @todo [dev] save actual EU VAT number used on checkout (instead of `get_post_meta( $order_id, '_' . alg_wc_eu_vat_get_field_id(), true )`)
* @todo [dev] (maybe) add country flag
@@ -456,6 +456,7 @@ function create_meta_box( $object ) {
);
// Output
+ $order_id = $_order->get_id();
echo alg_wc_eu_vat_get_table_html( $table_data, array( 'table_class' => 'widefat striped', 'table_heading_type' => 'vertical' ) );
echo '
' . '' .
__( 'Validate VAT and remove taxes', 'eu-vat-for-woocommerce' ) . '' . '
';
diff --git a/includes/class-alg-wc-eu-vat-core.php b/includes/class-alg-wc-eu-vat-core.php
index 5e18d7a..d03f056 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.11
+ * @version 2.12.12
* @since 1.0.0
* @author WPFactory
*/
@@ -804,7 +804,7 @@ function eu_vat_wp_footer() {
/**
* eu_vat_admin_footer.
*
- * @version 2.12.3
+ * @version 2.12.12
* @since 1.7.0
*/
@@ -853,12 +853,6 @@ function eu_vat_admin_footer() {
}
}
- if ( 'yes' === get_option( 'alg_wc_eu_vat_remove_validation_color', 'no' ) ) { ?>
- .form-row.woocommerce-invalid input.#billing_eu_vat_number{
- box-shadow: inset 2px 0 0 transparent;
- }
- \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-09-06T15:14:10+02:00\n"
+"POT-Creation-Date: 2024-09-12T08:30: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:1225
-#: includes/class-alg-wc-eu-vat-core.php:1227
-#: includes/class-alg-wc-eu-vat-core.php:1344
-#: includes/class-alg-wc-eu-vat-core.php:1424
-#: includes/class-alg-wc-eu-vat-core.php:1456
+#: includes/class-alg-wc-eu-vat-core.php:1219
+#: includes/class-alg-wc-eu-vat-core.php:1221
+#: includes/class-alg-wc-eu-vat-core.php:1338
+#: includes/class-alg-wc-eu-vat-core.php:1418
+#: includes/class-alg-wc-eu-vat-core.php:1450
#: 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
@@ -62,7 +62,7 @@ msgstr ""
msgid "I want to receive updates about products and promotions."
msgstr ""
-#: eu-vat-for-woocommerce-pro.php:166
+#: eu-vat-for-woocommerce-pro.php:181
msgid "Unlock All"
msgstr ""
@@ -101,7 +101,7 @@ msgstr ""
msgid "Taxes"
msgstr ""
-#: includes/admin/class-alg-wc-eu-vat-admin.php:461
+#: includes/admin/class-alg-wc-eu-vat-admin.php:462
msgid "Validate VAT and remove taxes"
msgstr ""
@@ -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:1893
+#: includes/class-alg-wc-eu-vat-core.php:1887
#: 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:1599
+#: includes/class-alg-wc-eu-vat-core.php:1593
msgid "Error: Country by IP does not match (%s)"
msgstr ""
#: includes/class-alg-wc-eu-vat-core.php:216
#: includes/class-alg-wc-eu-vat-core.php:380
-#: includes/class-alg-wc-eu-vat-core.php:1774
-#: includes/class-alg-wc-eu-vat-core.php:1844
+#: includes/class-alg-wc-eu-vat-core.php:1768
+#: includes/class-alg-wc-eu-vat-core.php:1838
#: 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:349
-#: includes/class-alg-wc-eu-vat-core.php:1821
+#: includes/class-alg-wc-eu-vat-core.php:1815
msgid "Success (checkout): VAT ID valid. Matched with prevalidated VAT numbers."
msgstr ""
#: includes/class-alg-wc-eu-vat-core.php:375
-#: includes/class-alg-wc-eu-vat-core.php:1852
+#: includes/class-alg-wc-eu-vat-core.php:1846
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:1031
+#: includes/class-alg-wc-eu-vat-core.php:1025
#: 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:1031
+#: includes/class-alg-wc-eu-vat-core.php:1025
#: 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
@@ -254,21 +254,21 @@ msgstr ""
msgid "Yes"
msgstr ""
-#: includes/class-alg-wc-eu-vat-core.php:1031
+#: includes/class-alg-wc-eu-vat-core.php:1025
msgid "No"
msgstr ""
-#: includes/class-alg-wc-eu-vat-core.php:1143
+#: includes/class-alg-wc-eu-vat-core.php:1137
#: 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:1162
+#: includes/class-alg-wc-eu-vat-core.php:1156
#: 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:1420
+#: includes/class-alg-wc-eu-vat-core.php:1414
msgid "Customer Decide"
msgstr ""
diff --git a/readme.txt b/readme.txt
index 7a0327f..236e9ed 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.6
-Stable tag: 2.12.11
+Stable tag: 2.12.12
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.12 - 12/09/2024 =
+* Fix - HPOS error issue.
+
= 2.12.11 - 06/09/2024 =
* Add - Validation & Progress - Remove validation color.
* WC tested up to: 9.2