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:
- /includes/classes/VatValidation.php
- /includes/classes/observers/auto.vat_for_eu_countries.php
- /includes/extra_datafiles/vat4eu_filenames.php
- /includes/languages/english/extra_definitions/lang.vat4eu_extra_definitions.php (also remove in any template-override directories)
- /includes/languages/english/extra_definitions/vat4eu_extra_definitions.php (also remove in any template-override directories)
- /includes/languages/english/modules/order_total/lang.ot_vat_refund.php (also remove in any template-override directories)
- /includes/languages/english/modules/order_total/ot_vat_refund.php (also remove in any template-override directories)
- /includes/languages/english/modules/order_total/lang.ot_vat_reverse_charges.php (also remove in any template-override directories)
- /includes/languages/english/modules/order_total/ot_vat_reverse_charges.php (also remove in any template-override directories)
- /includes/modules/order_total/ot_vat_refund.php
- /includes/modules/order_total/ot_vat_reverse_charges.php
- /includes/modules/pages/popup_vat4eu_format/header_php.php
- /includes/modules/pages/popup_vat4eu_format/jscript_main.php
- /includes/templates/template_default/popup_vat4eu_format/tpl_main_page.php
- /includes/templates/template_default/templates/tpl_modules_vat4eu_display.php (also remove in any template-override directories)
- /YOUR_ADMIN/includes/auto_loaders/config.vat4eu.php
- /YOUR_ADMIN/includes/classes/observers/Vat4EuTrackerAdminObserver.php
- /YOUR_ADMIN/includes/init_includes/init_vat4eu_admin.php
- /YOUR_ADMIN/includes/languages/english/extra_definitions/lang.vat4eu_extra_definitions_admin.php
- /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:
- tpl_modules_address_book_details.php (non-bootstrap only)
- tpl_modules_checkout_new_address.php (non-boostrap only)
- tpl_modules_common_address_format.php (bootstrap only)
- tpl_modules_create_account.php
- 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 ***