Skip to content

Commit

Permalink
v2.11.3
Browse files Browse the repository at this point in the history
  • Loading branch information
kousikmukherjee committed Jun 13, 2024
1 parent ea4ec1a commit 24ac9b5
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 36 deletions.
15 changes: 0 additions & 15 deletions .distignore

This file was deleted.

3 changes: 2 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ README.md export-ignore
vendor/wpfactory/wpf-settings-exporter export-ignore
vendor/wpfactory/wpf-documentor export-ignore
# GIT - Release version
/git-tag.sh export-ignore
/git-tag.sh export-ignore
src/ export-ignore
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.11.2
Version: 2.11.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.11.2
* @version 2.11.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.11.2';
public $version = '2.11.3';
public $core = null;
public $settings = array();

Expand Down
28 changes: 26 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 1.6.0
* @version 2.11.3
* @since 1.0.0
* @author WPFactory
*/
Expand All @@ -16,7 +16,7 @@ class Alg_WC_EU_VAT_Admin {
/**
* Constructor.
*
* @version 1.5.0
* @version 2.11.3
* @since 1.0.0
*/
function __construct() {
Expand All @@ -41,6 +41,10 @@ function __construct() {
if ( 'yes' === get_option( 'alg_wc_eu_vat_add_order_list_column', 'no' ) ) {
add_filter( 'manage_edit-shop_order_columns', array( $this, 'add_order_columns' ), PHP_INT_MAX );
add_action( 'manage_shop_order_posts_custom_column', array( $this, 'render_order_columns' ), PHP_INT_MAX );

add_filter( 'manage_woocommerce_page_wc-orders_columns', array( $this, 'add_order_columns' ), PHP_INT_MAX );
add_action('manage_woocommerce_page_wc-orders_custom_column', array( $this, 'render_wc_order_columns' ), PHP_INT_MAX, 2);

add_action( 'restrict_manage_posts', array( $this, 'display_admin_shop_order_by_meta_filter' ), PHP_INT_MAX );

add_filter( 'request', array( $this, 'process_admin_shop_order_marketing_by_meta' ), 99 );
Expand Down Expand Up @@ -121,6 +125,26 @@ function render_order_columns( $column ) {
}
}

/**
* render_wc_order_columns.
*
* @version 2.11.3
* @since 2.11.3
*/
function render_wc_order_columns( $column, $order ) {
if ( 'alg_wc_eu_vat' === $column ) {
$key = '_'. alg_wc_eu_vat_get_field_id();
$vat_value = $order->get_meta($key);
$is_vat_exempt = $order->get_meta('is_vat_exempt');
if ( ! empty($vat_value) ) {
echo $vat_value;
}
if ( 'yes' === $is_vat_exempt ) {
echo ' ✔';
}
}
}

/**
* get_filter_shop_order_meta.
*
Expand Down
28 changes: 14 additions & 14 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.11.2\n"
"Project-Id-Version: eu-vat-for-woocommerce 2.11.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-06-08T20:47:41+02:00\n"
"POT-Creation-Date: 2024-06-13T08:04: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 All @@ -36,7 +36,7 @@ msgid "https://wpfactory.com/"
msgstr ""

#: eu-vat-for-woocommerce-blocks-initialize.php:55
#: includes/admin/class-alg-wc-eu-vat-admin.php:265
#: includes/admin/class-alg-wc-eu-vat-admin.php:289
#: includes/class-alg-wc-eu-vat-core.php:1012
#: includes/class-alg-wc-eu-vat-core.php:1014
#: includes/class-alg-wc-eu-vat-core.php:1127
Expand Down Expand Up @@ -67,42 +67,42 @@ msgstr ""
msgid "Unlock All"
msgstr ""

#: includes/admin/class-alg-wc-eu-vat-admin.php:93
#: includes/admin/class-alg-wc-eu-vat-admin.php:97
msgid "Let Customer Decide:"
msgstr ""

#: includes/admin/class-alg-wc-eu-vat-admin.php:105
#: includes/admin/class-alg-wc-eu-vat-admin.php:230
#: includes/admin/class-alg-wc-eu-vat-admin.php:295
#: includes/admin/class-alg-wc-eu-vat-admin.php:109
#: includes/admin/class-alg-wc-eu-vat-admin.php:254
#: includes/admin/class-alg-wc-eu-vat-admin.php:319
#: includes/settings/class-alg-wc-eu-vat-settings.php:24
msgid "EU VAT"
msgstr ""

#: includes/admin/class-alg-wc-eu-vat-admin.php:249
#: includes/admin/class-alg-wc-eu-vat-admin.php:273
msgid "Report includes all EU VAT countries with existing sales."
msgstr ""

#: includes/admin/class-alg-wc-eu-vat-admin.php:250
#: includes/admin/class-alg-wc-eu-vat-admin.php:274
msgid "Table is sorted by total tax value."
msgstr ""

#: includes/admin/class-alg-wc-eu-vat-admin.php:339
#: includes/admin/class-alg-wc-eu-vat-admin.php:363
msgid "Customer IP"
msgstr ""

#: includes/admin/class-alg-wc-eu-vat-admin.php:343
#: includes/admin/class-alg-wc-eu-vat-admin.php:367
msgid "Country by IP"
msgstr ""

#: includes/admin/class-alg-wc-eu-vat-admin.php:347
#: includes/admin/class-alg-wc-eu-vat-admin.php:371
msgid "Customer EU VAT Number"
msgstr ""

#: includes/admin/class-alg-wc-eu-vat-admin.php:351
#: includes/admin/class-alg-wc-eu-vat-admin.php:375
msgid "Taxes"
msgstr ""

#: includes/admin/class-alg-wc-eu-vat-admin.php:359
#: includes/admin/class-alg-wc-eu-vat-admin.php:383
msgid "Validate VAT and remove taxes"
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.5
Stable tag: 2.11.2
Stable tag: 2.11.3
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.11.3 - 13/06/2024 =
* HOPS - ADMIN ORDERS LIST FOR EU VAT.

= 2.11.2 - 09/06/2024 =
* Fix - Checout block error.

Expand Down

0 comments on commit 24ac9b5

Please sign in to comment.