title | issue |
---|---|
Add VAT id required to each country setting |
NEXT-14118 |
- Added new property
vatIdRequired
in classShopware\Core\System\Country\CountryEntity
. - Added
requiredVatIdField
function toShopware\Core\Checkout\Customer\SalesChannel\RegisterRoute
to validatevatIds
field.
- Added block
sw_settings_country_detail_content_field_vat_id_required
inmodule/sw-settings-country/page/sw-settings-country-detail/sw-settings-country-detail.html.twig
- Changed plugin class
CountryStateSelectPlugin
insrc/Storefront/Resources/app/storefront/src/plugin/forms/form-country-state-select.plugin.js
to add or removerequired
attribute to VAT id field when user changes the country.