Skip to content

Commit

Permalink
v2.9.17
Browse files Browse the repository at this point in the history
  • Loading branch information
kousikmukherjee committed Nov 30, 2023
1 parent c06f783 commit 46d06d2
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 30 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.9.16
Version: 2.9.17
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.9.13
* @version 2.9.17
* @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.9.16';
public $version = '2.9.17';
public $core = null;
public $settings = array();

Expand Down
18 changes: 16 additions & 2 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.9.7
* @version 2.9.17
* @since 1.0.0
* @author WPFactory
*/
Expand All @@ -20,7 +20,7 @@ class Alg_WC_EU_VAT_Core {
/**
* Constructor.
*
* @version 2.9.7
* @version 2.9.17
* @since 1.0.0
* @todo [dev] (maybe) "eu vat number" to "eu vat"
* @todo [feature] `add_eu_vat_verify_button` (`woocommerce_form_field_text`) (`return ( alg_wc_eu_vat_get_field_id() === $key ) ? $field . '<span style="font-size:smaller !important;">' . '[<a name="billing_eu_vat_number_verify" href="">' . __( 'Verify', 'eu-vat-for-woocommerce' ) . '</a>]' . '</span>' : $field;`)
Expand Down Expand Up @@ -128,11 +128,25 @@ function __construct() {

add_action( 'restrict_manage_users', array( $this, 'add_billing_eu_vat_section_filter'), 10 );
add_filter( 'pre_get_users', array( $this, 'filter_users_by_billing_eu_vat'), 10 );

add_action( 'wpo_wcpdf_after_order_details', array( $this, 'add_vat_exempt_text_pdf_footer'), 10, 2 );

}
}


/* add_vat_exempt_text_pdf_footer.
*
* @version 2.9.17
* @since 2.9.17
*/
function add_vat_exempt_text_pdf_footer( $document_type, $order ) {
$is_vat_exempt = $order->get_meta( 'is_vat_exempt' );
if ( 'yes' === $is_vat_exempt ) {
echo get_option( 'alg_wc_eu_vat_advanced_vat_shifted_text', __( 'VAT SHIFTED', 'eu-vat-for-woocommerce' ) );
}
}

/**
* add_billing_eu_vat_section_filter.
*
Expand Down
12 changes: 10 additions & 2 deletions includes/settings/class-alg-wc-eu-vat-settings-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* EU VAT for WooCommerce - Admin Section Settings
*
* @version 1.7.2
* @version 2.9.17
* @since 1.5.0
* @author WPFactory
*/
Expand Down Expand Up @@ -30,7 +30,7 @@ function __construct() {
/**
* get_settings.
*
* @version 1.7.2
* @version 2.9.17
* @since 1.5.0
* @todo [dev] (important) set "Session type" default value to "WC session (recommended)"
*/
Expand Down Expand Up @@ -118,6 +118,14 @@ function get_settings() {
'default' => 'no',
'type' => 'checkbox',
),
array(
'title' => __( 'VAT shifted text', 'eu-vat-for-woocommerce' ),
'desc_tip' => __( 'Please use text for 3rd party PDF invoice plugin.', 'eu-vat-for-woocommerce' ),
'desc' => '',
'id' => 'alg_wc_eu_vat_advanced_vat_shifted_text',
'default' => __( 'VAT Shifted', 'eu-vat-for-woocommerce' ),
'type' => 'text',
),
array(
'type' => 'sectionend',
'id' => 'alg_wc_eu_vat_advanced_options',
Expand Down
60 changes: 38 additions & 22 deletions langs/eu-vat-for-woocommerce.pot
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ msgid "Table is sorted by total tax value."
msgstr ""

#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\admin\class-alg-wc-eu-vat-admin.php:265
#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\class-alg-wc-eu-vat-core.php:851
#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\class-alg-wc-eu-vat-core.php:853
#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\class-alg-wc-eu-vat-core.php:938
#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\class-alg-wc-eu-vat-core.php:1018
#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\class-alg-wc-eu-vat-core.php:1050
#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\class-alg-wc-eu-vat-core.php:865
#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\class-alg-wc-eu-vat-core.php:867
#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\class-alg-wc-eu-vat-core.php:952
#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\class-alg-wc-eu-vat-core.php:1032
#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\class-alg-wc-eu-vat-core.php:1064
#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\settings\class-alg-wc-eu-vat-settings-general.php:86
#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\settings\class-alg-wc-eu-vat-settings-general.php:94
msgid "EU VAT Number"
Expand Down Expand Up @@ -171,7 +171,7 @@ msgid "VAT is valid."
msgstr ""

#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\class-alg-wc-eu-vat-ajax.php:51
#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\class-alg-wc-eu-vat-core.php:1375
#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\class-alg-wc-eu-vat-core.php:1389
#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\settings\class-alg-wc-eu-vat-settings-validation.php:254
msgid "VAT is not valid."
msgstr ""
Expand All @@ -192,37 +192,41 @@ msgid "VAT is valid, but registered to %company_name%."
msgstr ""

#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\class-alg-wc-eu-vat-ajax.php:95
#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\class-alg-wc-eu-vat-core.php:1173
#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\class-alg-wc-eu-vat-core.php:1187
#, php-format
msgid "Error: Country by IP does not match (%s)"
msgstr ""

#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\class-alg-wc-eu-vat-core.php:662
#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\class-alg-wc-eu-vat-core.php:146
msgid "VAT SHIFTED"
msgstr ""

#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\class-alg-wc-eu-vat-core.php:676
#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\settings\class-alg-wc-eu-vat-settings-general.php:154
msgid "You didn't set your VAT ID. Are you sure you want to continue?"
msgstr ""

#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\class-alg-wc-eu-vat-core.php:774
#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\class-alg-wc-eu-vat-core.php:788
#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\settings\class-alg-wc-eu-vat-settings-general.php:235
msgid "I don't have a VAT ID"
msgstr ""

#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\class-alg-wc-eu-vat-core.php:793
#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\class-alg-wc-eu-vat-core.php:807
#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\settings\class-alg-wc-eu-vat-settings-general.php:251
msgid "I have a valid VAT but not exempted"
msgstr ""

#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\class-alg-wc-eu-vat-core.php:1014
#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\class-alg-wc-eu-vat-core.php:1028
msgid "Customer Decide"
msgstr ""

#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\class-alg-wc-eu-vat-core.php:1298
#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\class-alg-wc-eu-vat-core.php:1340
#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\class-alg-wc-eu-vat-core.php:1312
#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\class-alg-wc-eu-vat-core.php:1354
#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\settings\class-alg-wc-eu-vat-settings-validation.php:70
msgid "<strong>EU VAT Number</strong> is not valid."
msgstr ""

#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\class-alg-wc-eu-vat-core.php:1348
#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\class-alg-wc-eu-vat-core.php:1362
msgid "Error: VAT is not valid (checkout)"
msgstr ""

Expand Down Expand Up @@ -389,41 +393,53 @@ msgstr ""
msgid "Enable if sitepress optimizer dynamic caching plugin not works"
msgstr ""

#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\settings\class-alg-wc-eu-vat-settings-admin.php:129
#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\settings\class-alg-wc-eu-vat-settings-admin.php:122
msgid "VAT shifted text"
msgstr ""

#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\settings\class-alg-wc-eu-vat-settings-admin.php:123
msgid "Please use text for 3rd party PDF invoice plugin."
msgstr ""

#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\settings\class-alg-wc-eu-vat-settings-admin.php:126
msgid "VAT Shifted"
msgstr ""

#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\settings\class-alg-wc-eu-vat-settings-admin.php:137
msgid "Additional Info"
msgstr ""

#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\settings\class-alg-wc-eu-vat-settings-admin.php:133
#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\settings\class-alg-wc-eu-vat-settings-admin.php:141
#, php-format
msgid "Field ID used for EU VAT: %s."
msgstr ""

#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\settings\class-alg-wc-eu-vat-settings-admin.php:134
#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\settings\class-alg-wc-eu-vat-settings-admin.php:142
#, php-format
msgid "Tool for adding EU country standard VAT rates: %s."
msgstr ""

#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\settings\class-alg-wc-eu-vat-settings-admin.php:135
#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\settings\class-alg-wc-eu-vat-settings-admin.php:143
msgid "Tools > EU country VAT Rates"
msgstr ""

#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\settings\class-alg-wc-eu-vat-settings-admin.php:136
#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\settings\class-alg-wc-eu-vat-settings-admin.php:144
#, php-format
msgid "EU VAT report: %s."
msgstr ""

#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\settings\class-alg-wc-eu-vat-settings-admin.php:137
#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\settings\class-alg-wc-eu-vat-settings-admin.php:145
msgid "WooCommerce > Reports > Taxes > EU VAT"
msgstr ""

#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\settings\class-alg-wc-eu-vat-settings-admin.php:138
#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\settings\class-alg-wc-eu-vat-settings-admin.php:146
#, php-format
msgid ""
"You can use shortcodes in field label, placeholder, description and all "
"messages options, e.g.: %s."
msgstr ""

#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\settings\class-alg-wc-eu-vat-settings-admin.php:140
#: E:\xampp_php_8\htdocs\wpfactory-local\wp-content\plugins\eu-vat-for-woocommerce-pro\includes\settings\class-alg-wc-eu-vat-settings-admin.php:148
#, php-format
msgid "Plugin description on %s."
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: woocommerce, eu, uk, vat, eu vat, vat validation
Requires at least: 6.1
Tested up to: 6.4
Stable tag: 2.9.16
Stable tag: 2.9.17
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,9 @@ Once activated, access the plugin's settings by navigating to “WooCommerce > S

== Changelog ==

= 2.9.17 - 01/12/2023 =
* Add - Admin & Advanced > VAT shifted text.

= 2.9.16 - 29/11/2023 =
* Fix - Update API url of VIES curl validation.
* Fix - Update "Add progress messages" to default "yes".
Expand Down

0 comments on commit 46d06d2

Please sign in to comment.