Results 1 to 10 of 90

Hybrid View

  1. #1
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,949
    Plugin Contributions
    96

    Default Re: VAT4EU Support Thread

    Quote Originally Posted by siilike1232 View Post
    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?

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,949
    Plugin Contributions
    96

    Default 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.

  3. #3
    Join Date
    Apr 2011
    Location
    Espoo, Finland
    Posts
    71
    Plugin Contributions
    0

    Default 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'] : '');

  4. #4
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,949
    Plugin Contributions
    96

    Default Re: VAT4EU Support Thread

    Quote Originally Posted by yesaul View Post
    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.

  5. #5
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,949
    Plugin Contributions
    96

    Default 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.

  6. #6
    Join Date
    Apr 2011
    Location
    Espoo, Finland
    Posts
    71
    Plugin Contributions
    0

    Default 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

    ...

    - 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']);

    [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.
    Last edited by yesaul; 19 Mar 2025 at 10:15 AM.

  7. #7
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,949
    Plugin Contributions
    96

    Default Re: VAT4EU Support Thread

    Quote Originally Posted by yesaul View Post
    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']);
    Thanks for the report; I've created a GitHub issue to track the required change: https://github.com/lat9/vat4eu/issues/50

  8. #8
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,949
    Plugin Contributions
    96

    Default Re: VAT4EU Support Thread

    Quote Originally Posted by lat9 View Post
    Thanks for the report; I've created a GitHub issue to track the required change: https://github.com/lat9/vat4eu/issues/50
    Actually, if that field's missing that implies a possible misconfiguration, since VAT4EU's observer should have inserted some jQuery that will add the vat_number entry field to those forms.

    What template is in use and is the configuration setting Customer Details :: Company set to true?

  9. #9
    Join Date
    Apr 2011
    Location
    Espoo, Finland
    Posts
    71
    Plugin Contributions
    0

    Default Re: VAT4EU Support Thread

    What template is in use and is the configuration setting Customer Details :: Company set to true?
    Customer Details :: Company ('ACCOUNT_COMPANY' key) is set to false

    (I do put corporate customers having EU-VAT-# manually from Admin )

    I use my own template (but this does no matter here, I think)

 

 

Similar Threads

  1. Hebrew Support - latest release [Support Thread]
    By eranariel in forum Addon Language Packs
    Replies: 22
    Last Post: 26 Jan 2026, 06:47 AM
  2. v154 ZipShip - Support Thread
    By lat9 in forum Addon Shipping Modules
    Replies: 108
    Last Post: 14 Jan 2025, 05:42 PM
  3. SysCheck [support thread]
    By swguy in forum All Other Contributions/Addons
    Replies: 36
    Last Post: 24 Oct 2020, 05:28 AM
  4. Wordpress On ZC [Support Thread]
    By hira in forum All Other Contributions/Addons
    Replies: 1858
    Last Post: 17 Jan 2014, 01:24 AM
  5. ZJ Silver Support Thread
    By anthonyd in forum Addon Templates
    Replies: 220
    Last Post: 5 Nov 2010, 03:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg