Created
December 6, 2021 14:01
-
-
Save xlplugins/79acf46b16dbea3f335895c04c5b5363 to your computer and use it in GitHub Desktop.
UK sublocality field in checkout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script>(function (){ | |
window.addEventListener('bwf_checkout_load',function(){ | |
wfacp_frontend.hooks.addFilter('wfacp_countries_address_format', function(format){ | |
format.gb._address_1={'keys': {'street_number': 'long_name', 'route': 'long_name', 'sublocality_level_1': 'long_name', 'sublocality_level_2': 'long_name'}, 'separator': ', '}; | |
return format; | |
}); | |
}) | |
})();</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment