Skip to content

Commit

Permalink
v2.10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
kousikmukherjee committed Mar 26, 2024
1 parent 01e4589 commit a1d6d40
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 13 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.10.1
Version: 2.10.2
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.10.1
* @version 2.10.2
* @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.10.1';
public $version = '2.10.2';
public $core = null;
public $settings = array();

Expand Down
5 changes: 3 additions & 2 deletions includes/class-alg-wc-eu-vat-ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* EU VAT for WooCommerce - AJAX Class
*
* @version 2.9.16
* @version 2.10.2
* @since 1.0.0
* @author WPFactory
*/
Expand Down Expand Up @@ -31,7 +31,7 @@ function __construct() {
/**
* enqueue_scripts.
*
* @version 2.9.16
* @version 2.10.2
* @since 1.0.0
* @todo [dev] (important) `... && function_exists( 'is_checkout' ) && is_checkout()`
*/
Expand All @@ -53,6 +53,7 @@ function enqueue_scripts() {
'text_shipping_billing_countries' => do_shortcode( get_option( 'alg_wc_eu_vat_shipping_billing_countries', __( 'Different shipping & billing countries.', 'eu-vat-for-woocommerce' ) ) ),
'company_name_mismatch' => do_shortcode( get_option( 'alg_wc_eu_vat_company_name_mismatch', __( ' VAT is valid, but registered to %company_name%.', 'eu-vat-for-woocommerce' ) ) ),
'is_required' => get_option( 'alg_wc_eu_vat_field_required', 'no' ),
'optional_text' => __( '(optional)', 'eu-vat-for-woocommerce' ),
) );
}
}
Expand Down
8 changes: 4 additions & 4 deletions includes/js/alg-wc-eu-vat.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* alg-wc-eu-vat.js
*
* @version 2.9.16
* @version 2.10.2
* @since 1.0.0
* @author WPFactory
* @todo [dev] replace `billing_eu_vat_number` and `billing_eu_vat_number_field` with `alg_wc_eu_vat_get_field_id()`
Expand Down Expand Up @@ -110,7 +110,7 @@ jQuery( function( $ ) {
vat_input.removeClass('field-required');
vat_input_label.find("abbr").hide();
vat_input_label.find("span.optional").remove();
vat_input_label.append('<span class="optional">(optional)</span>');
vat_input_label.append('<span class="optional">' + alg_wc_eu_vat_ajax_object.optional_text + '</span>');
// vat_paragraph.hide();
}
}
Expand Down Expand Up @@ -141,7 +141,7 @@ jQuery( function( $ ) {
vat_input.removeClass('field-required');
vat_input_label.find("abbr").hide();
vat_input_label.find("span.optional").remove();
vat_input_label.append('<span class="optional">(optional)</span>');
vat_input_label.append('<span class="optional">' + alg_wc_eu_vat_ajax_object.optional_text + '</span>');
vat_paragraph.hide();
return;
}else{
Expand Down Expand Up @@ -256,7 +256,7 @@ jQuery( function( $ ) {
vat_paragraph.addClass( 'woocommerce-invalid' );
} else {
// Not required
vat_paragraph.addClass( 'woocommerce-validated' );
// vat_paragraph.addClass( 'woocommerce-validated' );
}
$( 'body' ).trigger( 'update_checkout' );
}
Expand Down
10 changes: 7 additions & 3 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.10.1\n"
"Project-Id-Version: eu-vat-for-woocommerce 2.10.2\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-03-26T13:31:13+01:00\n"
"POT-Creation-Date: 2024-03-26T18:40:47+01: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 @@ -172,7 +172,11 @@ msgstr ""
msgid " VAT is valid, but registered to %company_name%."
msgstr ""

#: includes/class-alg-wc-eu-vat-ajax.php:95
#: includes/class-alg-wc-eu-vat-ajax.php:56
msgid "(optional)"
msgstr ""

#: includes/class-alg-wc-eu-vat-ajax.php:96
#: includes/class-alg-wc-eu-vat-core.php:1251
msgid "Error: Country by IP does not match (%s)"
msgstr ""
Expand Down
6 changes: 5 additions & 1 deletion 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: woocommerce, eu, uk, vat, eu vat, vat validation
Requires at least: 6.1
Tested up to: 6.4
Stable tag: 2.10.1
Stable tag: 2.10.2
License: GNU General Public License v3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -284,6 +284,10 @@ Once activated, access the plugin's settings by navigating to “WooCommerce > S

== Changelog ==

= 2.10.2 - 26/03/2024 =
* Fix - Optional text translation support.
* Fix - remove woocommerce-validated class on first load.

= 2.10.1 - 26/03/2024 =
* Add - Admin & Advance > Reduce concurrent request to VIES
* Fix - code check for manual validation at checkout.
Expand Down

0 comments on commit a1d6d40

Please sign in to comment.