Upgrading to v4.0.0 From a Version Prior to v4.0.0 - lat9/vat4eu GitHub Wiki

Version 4.0.0 and later of VAT for EU Countries (VAT4EU) is released as a Zen Cart encapsulated plugin, making it easier (going forward) to install, upgrade and remove the plugin from your site.

If you're upgrading from a version prior to 4.0.0, you'll need to remove the files provided in that previous version before installing v4.0.0 of VAT4EU. Due to the number of edits required to remove hand-edits from a couple of template files, you might want to place your site into Maintenance Mode before performing this upgrade.

Upgrading From v3.x.x

Files to Remove

The files listed below should be removed (or deleted) from the store's file-system; v4.0.0 of VAT4EU will disallow its installation if any are found:

  1. /includes/classes/VatValidation.php
  2. /includes/classes/observers/auto.vat_for_eu_countries.php
  3. /includes/extra_datafiles/vat4eu_filenames.php
  4. /includes/languages/english/extra_definitions/lang.vat4eu_extra_definitions.php (also remove in any template-override directories)
  5. /includes/languages/english/extra_definitions/vat4eu_extra_definitions.php (also remove in any template-override directories)
  6. /includes/languages/english/modules/order_total/lang.ot_vat_refund.php (also remove in any template-override directories)
  7. /includes/languages/english/modules/order_total/ot_vat_refund.php (also remove in any template-override directories)
  8. /includes/languages/english/modules/order_total/lang.ot_vat_reverse_charges.php (also remove in any template-override directories)
  9. /includes/languages/english/modules/order_total/ot_vat_reverse_charges.php (also remove in any template-override directories)
  10. /includes/modules/order_total/ot_vat_refund.php
  11. /includes/modules/order_total/ot_vat_reverse_charges.php
  12. /includes/modules/pages/popup_vat4eu_format/header_php.php
  13. /includes/modules/pages/popup_vat4eu_format/jscript_main.php
  14. /includes/templates/template_default/popup_vat4eu_format/tpl_main_page.php
  15. /includes/templates/template_default/templates/tpl_modules_vat4eu_display.php (also remove in any template-override directories)
  16. /YOUR_ADMIN/includes/auto_loaders/config.vat4eu.php
  17. /YOUR_ADMIN/includes/classes/observers/Vat4EuTrackerAdminObserver.php
  18. /YOUR_ADMIN/includes/init_includes/init_vat4eu_admin.php
  19. /YOUR_ADMIN/includes/languages/english/extra_definitions/lang.vat4eu_extra_definitions_admin.php
  20. /YOUR_ADMIN/includes/languages/english/extra_definitions/vat4eu_extra_definitions_admin.php

Storefront Changes to Remove

There was one template-related edit required by versions of VAT4EU v3.x.x. In each of these template files:

  1. tpl_modules_address_book_details.php (non-bootstrap only)
  2. tpl_modules_checkout_new_address.php (non-boostrap only)
  3. tpl_modules_common_address_format.php (bootstrap only)
  4. tpl_modules_create_account.php
  5. tpl_modules_opc_address_block.php

Find this section and remove it.

//-bof-vat4eu-lat9  *** 1 of 1 ***
    include $template->get_template_dir('tpl_modules_vat4eu_display.php', DIR_WS_TEMPLATE, $current_page_base, 'templates') . '/tpl_modules_vat4eu_display.php'; 
//-eof-vat4eu-lat9  *** 1 of 1 ***