diff --git a/JapaneseAddress/view/frontend/templates/account/register.phtml b/JapaneseAddress/view/frontend/templates/account/register.phtml index 17e0608c9..4fa728215 100644 --- a/JapaneseAddress/view/frontend/templates/account/register.phtml +++ b/JapaneseAddress/view/frontend/templates/account/register.phtml @@ -205,18 +205,28 @@ }); getShowAddressFields()): ?> + getRegionProvider(); + $regionJson = /* @noEscape */ $regionProvider->getRegionJson(); + $formData = $block->getFormData(); + $regionId = (int) $formData->getRegionId(); + /** @var \Magento\Directory\Helper\Data $directoryHelper */ + $directoryHelper = $block->getData('directoryHelper'); + $countriesWithOptionalZip = /* @noEscape */ $directoryHelper->getCountriesWithOptionalZip(true); + $displayAll = $block->getConfig('general/region/display_all'); + ?>