Re: VAT4EU Support Thread
Weird. You can create that missing page key by navigating to the admin's Admins :: Admin Page Registration tool. From there, enter
Page Key ............ configVat4Eu
Page Name ........... BOX_CONFIG_VAT4EU
Page File Name ...... FILENAME_CONFIGURATION
Page Parameters .... gID=xx (where xx is the configuration_group_id you see for item 1, above)
Menu ................... Choose "Configuration"
Display on Menu? ... Tick the box
Then click the "Insert" button.
Re: VAT4EU Support Thread
Quote:
Originally Posted by
lat9
Weird. You can create that missing page key by navigating to the admin's Admins :: Admin Page Registration tool. From there, enter
Page Key ............ configVat4Eu
Page Name ........... BOX_CONFIG_VAT4EU
Page File Name ...... FILENAME_CONFIGURATION
Page Parameters .... gID=xx (where xx is the configuration_group_id you see for item 1, above)
Menu ................... Choose "Configuration"
Display on Menu? ... Tick the box
Then click the "Insert" button.
The Admin page is not working, but on the store page no VAT no field is displayd :( Company field is present.
As I enable the Vat debug, I now have the first log file:
2024-06-16 16:02:36: checkVatIsRefundable(, )
Returning ()
2024-06-16 16:05:13: checkVatIsRefundable(, )
Returning ()
2024-06-16 16:05:29: checkVatIsRefundable(, )
Returning ()
Re: VAT4EU Support Thread
Quote:
Originally Posted by
siilike1232
The Admin page is not working, but on the store page no VAT no field is displayd :( Company field is present.
As I enable the Vat debug, I now have the first log file:
2024-06-16 16:02:36: checkVatIsRefundable(, )
Returning ()
2024-06-16 16:05:13: checkVatIsRefundable(, )
Returning ()
2024-06-16 16:05:29: checkVatIsRefundable(, )
Returning ()
Sorry, Admin page is now working
Re: VAT4EU Support Thread
I gave it a new try with a fresh install and now I have everything working at the Admin side, but the VAT field is not displayed on the Store side, Company field is set to TRUE and is shown.
Re: VAT4EU Support Thread
Quote:
Originally Posted by
siilike1232
I gave it a new try with a fresh install and now I have everything working at the Admin side, but the VAT field is not displayed on the Store side, Company field is set to TRUE and is shown.
Not displayed for entry on addresses or not displayed after being entered?
Re: VAT4EU Support Thread
v3.2.1 of VAT for EU Countries is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2164
This version corrects the vat_number sorting in the admin's Customers :: Customers tool.
Re: VAT4EU Support Thread
In order to avoid 'Undefined array key' warnings in includes/classes/observers/auto.vat_for_eu_countries.php
- on line 403
Code:
$vat_number = strtoupper(zen_db_prepare_input(!empty($_POST['vat_number']) ? $_POST['vat_number'] : ''));
- on line 290
Code:
$vat_number = zen_db_prepare_input(!empty($_POST['vat_number']) ? $_POST['vat_number'] : '');
Re: VAT4EU Support Thread
Quote:
Originally Posted by
yesaul
In order to avoid 'Undefined array key' warnings in
includes/classes/observers/auto.vat_for_eu_countries.php
- on line 403
Code:
$vat_number = strtoupper(zen_db_prepare_input(!empty($_POST['vat_number']) ? $_POST['vat_number'] : ''));
- on line 290
Code:
$vat_number = zen_db_prepare_input(!empty($_POST['vat_number']) ? $_POST['vat_number'] : '');
Could you post the full PHP Warning logged? That way, I can see the backtrace to understand where this issue is sourced.
Re: VAT4EU Support Thread
v4.0.0 of VAT4EU is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2164
This version of VAT4EU is released as a Zen Cart encapsulated plugin for zc210+, supporting Edit Orders5.
Re: VAT4EU Support Thread
Quote:
In order to avoid 'Undefined array key' warnings in includes/classes/observers/auto.vat_for_eu_countries.php
- on line 403
...
- on line 290
...
in validateVatNumber method this issue is now solved (line #516 in current version ):
Code:
$vat_number = strtoupper(zen_db_prepare_input($_POST['vat_number'] ?? ''));
but in update the unnecessary warnings are still being generated (line # 325 in current version)
Code:
$vat_number = zen_db_prepare_input($_POST['vat_number']);
Quote:
[19-Mar-2025 10:31:02 Europe/Helsinki] Request URI: /index.php?main_page=create_account, IP address: ..., Language id 1
#0 .../public_html/zc_plugins/VAT4EU/v4.0.0/catalog/includes/classes/observers/auto.vat_for_eu_countries.php(325): zen_debug_error_handler()
#1 ..../public_html/includes/classes/traits/NotifierManager.php(106): zcObserverVatForEuCountries->update()
#2 ....public_html/includes/classes/Customer.php(919): base->notify()
#3 ....public_html/includes/modules/.../create_account.php(294): Customer->create()
#4 ....public_html/includes/modules/pages/create_account/header_php.php(16): include('/home/...')
#5 .../public_html/index.php(35): require('/home/...')
--> PHP Warning: Undefined array key "vat_number" in ...../public_html/zc_plugins/VAT4EU/v4.0.0/catalog/includes/classes/observers/auto.vat_for_eu_countries.php on line 325.