Zen Follower
- Join Date:
- Mar 2009
- Location:
- Essex, UK
- Posts:
- 448
- Plugin Contributions:
- 0
VAT4EU Support Thread
Hi lat9
The Netherlands. I ahve since set an account up with a netherlands address and the VAT isn't showing for me either
Views: 25,605
Zen Follower
Hi lat9
The Netherlands. I ahve since set an account up with a netherlands address and the VAT isn't showing for me either
Zen Follower
Hi
We have an issue on our website https://sitstandforbusiness.com/index.php?main_page=create_account where on the login/checkout Belgian customers cannot add thier VAT number.
I have trid with and with out the prefix and followed the instructions and I get the following message:
We were unable to validate the VAT Number that you entered. Please re-enter the value or contact us for assistance.
I am able to add it and give validation override in the back end but that not ideal. Please advise what's going wrong
Administrator
Deb, if you PM me the VAT number and address you tried to use and I'll check it out.
Administrator
I just went to http://ec.europa.eu/taxation_customs/vies/, where the following message is displayed:
Important Disclaimer:
*That's, apparently, the source of the issue.
Zen Follower
Awesome. Thanks Cindy. And I thought our government was a mess :lookaroun
Zen Follower
Bonjour Lat. I installed the VAT plugin but I have two problems one and an error in the Mydebug LOG
[09-Jan-2020 11:27:11 Europe/Brussels] Request URI: /index.php?main_page=checkout_shipping, IP address: ::1
#1 zcObserverVatForEuCountries->formatAddress() called at [/Applications/MAMP/htdocs/zcatemplates/includes/classes/observers/auto.vat_for_eu_countries.php:273]
#2 zcObserverVatForEuCountries->update() called at [/Applications/MAMP/htdocs/zcatemplates/includes/classes/class.base.php:103]
#3 base->notify() called at [/Applications/MAMP/htdocs/zcatemplates/includes/functions/functions_customers.php:96]
#4 zen_address_format() called at [/Applications/MAMP/htdocs/zcatemplates/includes/functions/functions_customers.php:139]
#5 zen_address_label() called at [/Applications/MAMP/htdocs/zcatemplates/includes/templates/bootstrap/templates/tpl_checkout_shipping_default.php:39]
#6 require(/Applications/MAMP/htdocs/zcatemplates/includes/templates/bootstrap/templates/tpl_checkout_shipping_default.php) called at [/Applications/MAMP/htdocs/zcatemplates/includes/templates/bootstrap/common/tpl_main_page.php:188]
#7 require(/Applications/MAMP/htdocs/zcatemplates/includes/templates/bootstrap/common/tpl_main_page.php) called at [/Applications/MAMP/htdocs/zcatemplates/index.php:97]
--> PHP Warning: Use of undefined constant FILENAME_CHECKOUT_ONE_CONFIRMATION - assumed 'FILENAME_CHECKOUT_ONE_CONFIRMATION' (this will throw an Error in a future version of PHP) in /Applications/MAMP/htdocs/zcatemplates/includes/classes/observers/auto.vat_for_eu_countries.php on line 549.
the other is that in the order I have three times written VAT + see image
Thank you.
Administrator
Giovanni, I see (and will correct shortly) the cause of the first issue (the warning log).
For the second, I believe that that might be the base Zen Cart "multiple tax zones" display. How do you have the store's taxes set up? Is there a single VAT entry or are there multiple VAT taxes that could apply to an order?
GitHub issue created to track the change: https://github.com/lat9/vat4eu/issues/4
Administrator
I've just submitted v2.0.1 of VAT4EU to the Zen Cart moderators for review; I'll post back here when it's available for download (https://www.zen-cart.com/downloads.php?do=file&id=2164).
This release contains changes associated with the following GitHub issue (as reported by @diamond1, above):
#4: PHP Warning issued when One-Page Checkout is not also installed.
Zen Follower
Thank you for your good care, the correction that you proposed works and I have more php error. Yes I have only one tax class and several areas but despite everything I have 3 times VAT display, on the other hand I have the store with the prices excluding VAT and I noticed that at the registration of the customer who is in the same country that the store receives a popup warning that it can recover the vat when it has to pay it, for info the store is in an CEE euro zone. but I check again if it is the case.
Zen Follower
Good evening Lat, in fact the 3 times VAT which are printed, it is 3 times the desacription that there is on Tax Rates as I put VAT it prints 3 times.
Administrator
lat9:
I've just submitted v2.0.1 of VAT4EU to the Zen Cart moderators for review; I'll post back here when it's available for download (https://www.zen-cart.com/downloads.php?do=file&id=2164).
This release contains changes associated with the following GitHub issue (as reported by @diamond1, above):#4: PHP Warning issued when One-Page Checkout is not also installed.
Now available for download.
Zen Follower
hello, I have two warnings on admin / Order Total Modules.
--> PHP Warning: Use of undefined constant MODULE_ORDER_TOTAL_VAT_REFUND_SORT_ORDER - assumed 'MODULE_ORDER_TOTAL_VAT_REFUND_SORT_ORDER' (this will throw an Error in a future version of PHP) in //web/includes/modules/order_total/ot_vat_refund.php on line 22.
--> PHP Warning: Use of undefined constant MODULE_ORDER_TOTAL_VAT_REVERSE_CHARGES_SORT_ORDER - assumed 'MODULE_ORDER_TOTAL_VAT_REVERSE_CHARGES_SORT_ORDER' (this will throw an Error in a future version of PHP) in /web/includes/modules/order_total/ot_vat_reverse_charges.php on line 23.
Administrator
diamond1:
hello, I have two warnings on admin / Order Total Modules.
--> PHP Warning: Use of undefined constant MODULE_ORDER_TOTAL_VAT_REFUND_SORT_ORDER - assumed 'MODULE_ORDER_TOTAL_VAT_REFUND_SORT_ORDER' (this will throw an Error in a future version of PHP) in //web/includes/modules/order_total/ot_vat_refund.php on line 22.
--> PHP Warning: Use of undefined constant MODULE_ORDER_TOTAL_VAT_REVERSE_CHARGES_SORT_ORDER - assumed 'MODULE_ORDER_TOTAL_VAT_REVERSE_CHARGES_SORT_ORDER' (this will throw an Error in a future version of PHP) in /web/includes/modules/order_total/ot_vat_reverse_charges.php on line 23.
Thanks for the report. Those warnings are issued when the order-totals are present in the file-system but not enabled. I should have a correction in a couple of days.
Administrator
I've just submitted v2.0.2 of ***VAT4EU ***to the Zen Cart moderators for review; I'll post back here when it's available for download.
This release contains changes associated with the following GitHub issue:
#5: Correct PHP warnings when the order-total files are present, but not installed.
Zen Follower
Good evening Lat9, as usual fast as the wind, the modifications have worked well thank you very much.:hug:
Administrator
lat9:
I've just submitted v2.0.2 of ***VAT4EU ***to the Zen Cart moderators for review; I'll post back here when it's available for download.
This release contains changes associated with the following GitHub issue:#5: Correct PHP warnings when the order-total files are present, but not installed.
Now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2164
Zen Follower
diamond1:
Good evening Lat9, as usual fast as the wind, the modifications have worked well thank you very much.:hug:
Tank you so much :hug:
Zen Follower
Hi
I am currently upgrading our site from 1.5.5e to 1.5.6c. I also have Edit orders installed (which are ocmpatible) However I am getting a broken screen on when I select Order > Edit
The log files displays the following error(s):
[29-Feb-2020 17:02:26 Europe/Berlin] PHP Fatal error: Uncaught Error: Call to undefined function zen_html_quotes() in MyDrive\MyAdmin\includes\classes\observers\Vat4EuAdminObserver.php:305
Stack trace:
#0 MyDrive\includes\classes\class.base.php(103): Vat4EuAdminObserver->update(Object(notifier), 'EDIT_ORDERS_ADD...', Object(order), '', NULL, NULL, NULL, NULL, NULL, NULL, NULL)
#1 MyDrive\MyAdmin\edit_orders.php(968): base->notify('EDIT_ORDERS_ADD...', Object(order), '')
#2 {main}
thrown in MyDrive\MyAdmin\includes\classes\observers\Vat4EuAdminObserver.php on line 305[29-Feb-2020 17:02:26 Europe/Berlin] Request URI: MyDrive\MyAdmin\edit_orders.php?page=1&oID=4&action=edit, IP address: 127.0.0.1
--> PHP Fatal error: Uncaught Error: Call to undefined function zen_html_quotes() in MyDrive\MyAdmin\includes\classes\observers\Vat4EuAdminObserver.php:305
Stack trace:
#0 MyDrive\includes\classes\class.base.php(103): Vat4EuAdminObserver->update(Object(notifier), 'EDIT_ORDERS_ADD...', Object(order), '', NULL, NULL, NULL, NULL, NULL, NULL, NULL)
#1 MyDrive\MyAdmin\edit_orders.php(968): base->notify('EDIT_ORDERS_ADD...', Object(order), '')
#2 {main}
thrown in MyDrive\MyAdmin\includes\classes\observers\Vat4EuAdminObserver.php on line 305.
MyAdmin\includes\classes\observers\Vat4EuAdminObserver.php on line 305 reads (in red and bold)
$vat_info =
'<tr>' . PHP_EOL .
' <td> </td>' . PHP_EOL .
' <td> </td>' . PHP_EOL .
' <td><strong>' . VAT4EU_ENTRY_VAT_NUMBER . '</strong></td>' . PHP_EOL .
[B] ' <td>' . zen_draw_input_field('vat_number', zen_html_quotes($vat_number), 'size="45"') . $valid_indicator . $hidden_fields . '</td>' . PHP_EOL .[/B]
' <td> </td>' . PHP_EOL .
' <td> </td>' . PHP_EOL .
'</tr>' . PHP_EOL .
'<tr>' . PHP_EOL .
' <td> </td>' . PHP_EOL .
' <td> </td>' . PHP_EOL .
' <td><strong>' . VAT4EU_ENTRY_OVERRIDE_VALIDATION . '</strong></td>' . PHP_EOL .
' <td>' . zen_draw_checkbox_field('vat_number_override', '', ($vat_validated == VatValidation::VAT_ADMIN_OVERRIDE)) . '</td>' . PHP_EOL .
' <td> </td>' . PHP_EOL .
' <td> </td>' . PHP_EOL .
'</tr>' . PHP_EOL;
$p2 .= $vat_info;
break;
// -----
MyDrive\MyAdmin\edit_orders.php(968) Reads
$module_name = (EO_ADDRESSES_DISPLAY_ORDER == 'CBS') ? 'eo_addresses_cbs.php' : 'eo_addresses_csb.php';
require DIR_WS_MODULES . 'edit_orders/' . $module_name;
// -----
// Give a watching observer the chance to inject some additional, per-address-type, information.
//
$additional_rows = '';
[B] $zco_notifier->notify('EDIT_ORDERS_ADDITIONAL_ADDRESS_ROWS', $order, $additional_rows);[/B]
echo $additional_rows;
?>
It loads ok when I turn off the vat 4 eu. Please could anyone shed any light?
Many thanks in advance.
Administrator
Hmm, I can't find any instance of that zen_html_quotes function. I'll review the VAT4EU processing and should have an update tomorrow.
Administrator
lat9:
Hmm, I can't find any instance of that zen_html_quotes function. I'll review the VAT4EU processing and should have an update tomorrow.
No ideas ... possibly (?) from an older version of EO?
In any case, you can replace that function call with one to zen_db_output; I'll get the VAT4EU GitHub updated.
Tell staff why this post should be reviewed.