Implementation
The VAT ID field must be added to the relevant template. The module provides a block that can be added to the registration and address edit forms.
Registration form
To add the VAT ID field to the registration form, insert the following code into the template at the position where the field should appear.
In your template, for example app/design/frontend/MyVendor/mytheme/Magento_Customer/templates/form/register.phtml, at the position where the field should appear:
<?= $block->getChildHtml('account_create.vat_id') ?>
Address edit form
As above, but for the address edit form in the customer account.
In your template, for example app/design/frontend/MyVendor/mytheme/Magento_Customer/templates/address/edit.phtml, at the position where the field should appear:
<?php if ($addressViewModel->addressIsVatAttributeVisible()): ?>
<?= $block->getChildHtml('customer_address.vat_id') ?>
<?php endif ?>
As of version 1.26.0, the Hyva theme compatibility previously provided by a separate module is now integrated into the main module “Geissweb_Euvat”:
| Separate module | Covered area | Status |
|---|---|---|
hyva-themes/magento2-geissweb-euvat (Hyva_GeisswebEuvat) |
Customer registration, address editing | Deprecated – now integrated |
hyva-themes/magento2-hyva-checkout-geissweb-euvat (Hyva_GeisswebEuvatCheckout) |
Hyva checkout | Still required separately |
This means:
- You no longer need the
hyva-themes/magento2-geissweb-euvatmodule for Hyva theme compatibility - The main module supports the Hyva theme (registration + address editing) natively
- Hyva Checkout users must still install
hyva-themes/magento2-hyva-checkout-geissweb-euvatseparately
Hyvä Checkout compatibility
For Hyvä Checkout compatibility you must install the checkout compatibility module available in the Hyva GitLab instance: Compatibility module for Hyva Checkout
If you receive a 404 error for this page, it means that your Hyva GitLab account does not have the permissions required to access the checkout integrations. In that case, please contact the Hyvä team.
Troubleshooting
Composer conflict error
If during composer update you see:
geissweb/module-euvat conflicts with hyva-themes/magento2-geissweb-euvat
This is expected. First remove the old Hyva theme module (see step 1 above).