catgento / magento2-vatid-country-dependency
Sets whether VAT number is required or not depending on country
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:magento2-module
Requires
- php: ~7.1.3||~7.2.0||~7.3.0||~7.4.0
README
This module allows you to:
- Set VAT ID requirement dependency based on country
- Select the countries for which VAT ID is required
- Hide/Show VAT ID field on checkout depending on the country requirement
Installation
Composer
composer require catgento/magento2-vatid-country-dependency
Configuration
In Stores > Configuration > Customers > Customer Configuration > Name and Address Options > Show Tax/VAT Number, when you select 'Required', two new fields will be displayed:
- Required Countries for VAT (empty for all): you can select here the countries for which VAT ID is required (if no country is selected, VAT ID will be required for all, keeping default Magento functionality)
- Hide VAT field if not required: you can hide VAT field if VAT ID is not required for the selected countries