Skip to content

Commit

Permalink
v2.12.12
Browse files Browse the repository at this point in the history
  • Loading branch information
kousikmukherjee committed Sep 12, 2024
1 parent 8066610 commit a509784
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 34 deletions.
19 changes: 17 additions & 2 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.11
Version: 2.12.12
Author: WPFactory
Author URI: https://wpfactory.com/
Text Domain: eu-vat-for-woocommerce
Expand Down Expand Up @@ -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();

/**
Expand Down
5 changes: 3 additions & 2 deletions includes/admin/class-alg-wc-eu-vat-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* EU VAT for WooCommerce - Admin Class
*
* @version 2.12.9
* @version 2.12.12
* @since 1.0.0
* @author WPFactory
*/
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 '<p>' . '<a href="' . add_query_arg( 'validate_vat_and_maybe_remove_taxes', $order_id ) . '">' .
__( 'Validate VAT and remove taxes', 'eu-vat-for-woocommerce' ) . '</a>' . '</p>';
Expand Down
10 changes: 2 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.11
* @version 2.12.12
* @since 1.0.0
* @author WPFactory
*/
Expand Down Expand Up @@ -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
*/

Expand Down Expand Up @@ -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;
}
<?php
}
}

/**
Expand Down
42 changes: 21 additions & 21 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.11\n"
"Project-Id-Version: eu-vat-for-woocommerce 2.12.12\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-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"
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: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
Expand All @@ -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 ""

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

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: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 ""
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: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 "<strong>EU VAT Number</strong> 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 ""

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

Expand Down
5 changes: 4 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: 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

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

0 comments on commit a509784

Please sign in to comment.