🇩🇰 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

  1. Get an API key
    Free account on the dashboard → copy dawa_live_….
  2. Open the checkout template
    Design → Templates in the DanDomain admin. Paste the snippet before </body>.
  3. Point at the address field
    Check the field's name in your template (typically address) and adjust the selector.
  4. 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 →

API docs · Code examples · JS widget