🇩🇰 Webshop · All integrations
Address autocomplete in DanDomain Webshop
One JS snippet in the checkout template gives DanDomain shops Danish address search backed by authoritative DAR addresses.
DanDomain lets you edit the checkout template directly in the admin. Paste the widget script, point it at the address field, and customers get suggestions from all 2.4 million Danish addresses as they type.
How to set it up
- Get an API key
Free account on the dashboard → copydawa_live_…. - Open the checkout template
Design → Templates in the DanDomain admin. Paste the snippet before</body>. - Point at the address field
Check the field'snamein your template (typicallyaddress) and adjust the selector. - Test with a typo
Type “rodovre parkvej 150” — the widget should suggest Rødovre Parkvej with the correct postcode.
# Snippet in DanDomain's checkout template
<!-- Design → Skabeloner → checkout: indsæt før </body> -->
<script src="https://danadresse.dk/static/js/danadresse-widget.js"></script>
<script>
DanadresseAutocomplete.attach('input[name="address"]', {
apiKey: 'dawa_live_…'
});
</script>
Good to know
Webshop 5+ and classic
The snippet approach works in both — it's plain HTML/JS in the template.
No app-store wait
You're live as soon as the template is saved.
Typo-tolerant
“kobenhavn” → København, “aarhus” → Aarhus — Danish folding is built in.
Ready to try it with DanDomain?
Free Hobby key, no credit card — the API answers in under 100 ms.
Get an API key →