🎁 Webshop · All integrations

Danish address autocomplete in PrestaShop

Attach typo-tolerant address search to PrestaShop's address form — works on 1.7 and 8.x, no module installation needed.

PrestaShop's address form uses the standard address1 field. Drop the widget script into your theme's address-form template (or a displayHeader hook) and the field gets Danish autocomplete with postcode and city.

How to set it up

  1. Get an API key
    Free account on the dashboard → copy dawa_live_….
  2. Add the script to your theme
    Either directly in address-form.tpl or globally via a displayHeader hook in a tiny custom module.
  3. Bind address1
    DanadresseAutocomplete.attach('input[name="address1"]') — the widget suggests complete DAR addresses as the customer types.
  4. Optional: auto-fill postcode/city
    Use the onSelect callback to set the postcode and city fields from the chosen suggestion.
# Widget in PrestaShop's address form
{* themes/<dit-theme>/templates/checkout/_partials/address-form.tpl *}
<script src="https://danadresse.dk/static/js/danadresse-widget.js"></script>
<script>
  DanadresseAutocomplete.attach('input[name="address1"]', {
    apiKey: 'dawa_live_…'
  });
</script>

Good to know

1.7 and 8.x

The widget is theme-agnostic — classic and hummingbird themes both work.

No ZIP install required

It's two script lines in your theme. A packaged module is convenience only.

Fewer failed deliveries

Every suggestion is an authoritative DAR address — not a guess from a global geocoder.

A packaged PrestaShop module (ZIP) is on the roadmap — write to partners@lynbro.dk for early access.

Ready to try it with PrestaShop?

Free Hobby key, no credit card — the API answers in under 100 ms.

Get an API key →

API docs · Code examples · JS widget