Skip to content

Commit

Permalink
v2.12.3
Browse files Browse the repository at this point in the history
  • Loading branch information
kousikmukherjee committed Jul 2, 2024
1 parent 80a0c4a commit 74298e0
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 34 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.12.2
Version: 2.12.3
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.12.2
* @version 2.12.3
* @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.12.2';
public $version = '2.12.3';
public $core = null;
public $settings = array();

Expand Down
26 changes: 18 additions & 8 deletions includes/class-alg-wc-eu-vat-core.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* EU VAT for WooCommerce - Core Class
*
* @version 2.12.2
* @version 2.12.3
* @since 1.0.0
* @author WPFactory
*/
Expand Down Expand Up @@ -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() {
?>
<script type="text/javascript">
Expand Down Expand Up @@ -798,14 +805,17 @@ function eu_vat_admin_footer() {
});
});
</script>
<?php if ( version_compare( get_option( 'woocommerce_version', null ), '8.9.1', '>=' ) ) { ?>
<style>
#order_data .order_data_column_container .order_data_column div.address p:nth-child(4), #order_data .order_data_column_container .order_data_column div.edit_address p.form-field._billing_eu_vat_number_field {
display:none !important;
}

</style>
<?php
if ( 'yes' === get_option( 'alg_wc_eu_vat_enable_checkout_block_field', 'no' ) ) {
if ( version_compare( get_option( 'woocommerce_version', null ), '8.9.1', '>=' ) ) { ?>
<style>
#order_data .order_data_column_container .order_data_column div.address p:nth-child(4), #order_data .order_data_column_container .order_data_column div.edit_address p.form-field._billing_eu_vat_number_field {
display:none !important;
}

</style>
<?php
}
}
}

Expand Down
38 changes: 19 additions & 19 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.12.2\n"
"Project-Id-Version: eu-vat-for-woocommerce 2.12.3\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-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"
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 ""
Expand Down Expand Up @@ -201,38 +201,38 @@ 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 "<strong>EU VAT Number</strong> 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 ""

#: includes/class-alg-wc-eu-vat-core.php:427
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
Expand All @@ -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 ""

Expand Down
11 changes: 7 additions & 4 deletions 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.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

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

0 comments on commit 74298e0

Please sign in to comment.