Results 1 to 10 of 90

Hybrid View

  1. #1
    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.

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    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

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    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?

  4. #4
    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)

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

    Default Re: VAT4EU Support Thread

    Quote Originally Posted by yesaul View Post
    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)
    OK, that would be why the vat_number isn't getting posted, since the customer's Company field needs to be displayed on the storefront for the VAT number to be included.

  6. #6
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,942
    Plugin Contributions
    96

    Default Re: VAT4EU Support Thread

    v4.0.1 of "VAT4EU" is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2164

    This release contains changes associated with GitHub issue #50 (Correct PHP Warning when VAT Number isn't submitted with address-change form).

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

    Default Re: VAT4EU Support Thread

    v4.0.2 of VAT4EU is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=2164

    This release contains changes associated with these GitHub issues:

    #51: Callback to parent class on install/upgrade/uninstall to prevent potential PHP logs.
    - Note: Also requires core-file changes as described in this (https://gist.github.com/lat9/9deb64d3325081d18bb0db5534bcf142#ensure-core-updates-are-applied") GitHub gist.

    #52: Correct PHP Fatal error when trying to uninstall the plugin.

 

 

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