Address autocomplete at checkout: postal code and city fill in automatically
Six of the built-in themes can now suggest Danish addresses while the customer types. The customer picks their address from the Danish Address Register, and the postal code and city fill in automatically. That means fewer errors in your orders, and if you use your own theme, you can add it with a few lines of code.
A typo in the street name, two digits swapped in the postal code, a forgotten floor. Small errors in the address end up as returned parcels, shipping you pay for twice, and customers who wait. Now checkout can help the customer enter the address correctly the first time: the customer types the first few letters, picks their address from the list, and the address, postal code, and city are filled in.

How it works for the customer
The suggestions follow the address step by step. If the customer types "Rådhuspladsen 1", Rådhuspladsen 1 is shown in every city that has one. When the customer picks "Rådhuspladsen 1, 1550 København V", the postal code and city are filled in right away. If the building has several floors or apartments, they are shown next, so the customer can pick theirs. If the customer has already typed the floor and door, such as "4 tv" (4th floor, left), the apartment is selected directly when they pick the building, if it exists.

- The suggestions come from the Danish Address Register (Danmarks Adresseregister), the official list of all Danish addresses, via the address service of the Danish Agency for Climate Data (Klimadatastyrelsen).
- The address is written the way it appears in the register, with floor and door in the Danish format, such as "st. tv" (ground floor, left) or "1. 101" (1st floor, door 101).
- The customer can still type the address themselves, for example with c/o or a company name. The suggestions are a help, not a requirement.
- It works with the keyboard (arrow keys and Enter), with the mouse, and on mobile.
- The suggestions only appear when the country is Denmark. For other countries, the address field works exactly as before.
- The browser's own autofill works as before.
- If the address service is down, the customer simply types the address as usual.
Why it's worth turning on
Every wrong address costs something, either as a parcel that comes back or as time you spend correcting the order before it ships. Address suggestions prevent the most common errors: typos in the street name, a wrong postal code, and a forgotten floor. On mobile, the customer also saves keystrokes, because three fields are filled in at once.
How to turn it on
- Go to Design → Theme settings.
- Find the group Checkout: Address. In Montana and MontanaB2B, click the group to expand it.
- Check Enable address suggestions (Denmark), and click Save.

It works in the built-in themes Montana, MontanaB2B, Delaware, DelawareDK, California, and Alaska2. In DelawareDK, the field is called Aktiver adresseforslag (Danmark), and in the English Delaware theme, it's called Enable Address Suggestions (Denmark). The setting is off until you turn it on yourself.
If you can't find the field, your store is running a theme without address suggestions: one of the older themes, its own custom theme, or a copy of one of the themes. A copy doesn't get new features automatically, so the address suggestions need to be built into the theme. The developer section below shows how, and if you're unsure, write to support@shoporama.dk.
The replacement for DAWA
Until October 1, 2026, many online stores looked up addresses and postal codes in DAWA (Danmarks Adressers Web API), the Danish public address API. DAWA has been shut down, and the Danish Agency for Climate Data has created Adressevælger (the Address Picker) as its replacement. The address suggestions at checkout are built on Adressevælger. Where the themes fill in the city from the postal code, they now look it up in a list hosted by Shoporama instead of in DAWA.
For developers: add address suggestions to your own theme
This section is for you if you build or maintain a theme. If the store is running one of the six themes above, and not a copy of one, you don't need to do any of this.
The built-in themes use a shared component that Shoporama serves on every store's domain: /javascript/dk-address.js. It shows the list, looks up addresses in Adressevælger, and fills in the fields. You can use it in your own theme in three steps.
1. Add the setting to theme_settings.json
Put the field in the checkout_address group, so it has the same name as in the built-in themes. Without default, it is off until the store owner turns it on. If your theme already has the checkout_address group, for example because it's a copy of Montana or Delaware, just add the field under fields.
{
"path": "checkout_address",
"name": "Checkout: Address",
"description": "The address form in checkout.",
"fields": [
{
"path": "enable_address_autocomplete",
"name": "Enable Address Suggestions (Denmark)",
"description": "Suggests addresses from the Danish Address Register while the customer types their address.",
"type": "bool"
}
]
}
2. Give the country fields a country code
The suggestions are only shown when the country is Denmark. The component reads the country from data-countrycode on the selected option in the country field, so add it to the options for both the billing and the delivery country in address.html:
<{* Billing country (order_country_id) *}>
<option value="<{$countries[i]->getCountryId()}>" data-countrycode="<{$countries[i]->getCode()|escape}>">...</option>
<{* Delivery country (del_country_id) *}>
<option value="<{$delivery_countries[i]->getCountryId()}>" data-countrycode="<{$delivery_countries[i]->getCode()|escape}>">...</option>
Keep your own conditions for selected. Only the attribute is new.
3. Load the component in address.html
Put the block at the bottom of address.html. The loop finds the store's default country, which is used when there is no country field, typically in a store with a single country.
<{if $settings.checkout_address.enable_address_autocomplete}>
<{assign var="default_country_code" value=""}>
<{section name="i" loop=$countries}>
<{if !$default_country_code || $countries[i]->getIsDefault()}>
<{assign var="default_country_code" value=$countries[i]->getCode()}>
<{/if}>
<{/section}>
<script src="/javascript/dk-address.js?v=4" defer></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
if (!window.ShoporamaDkAddress) {
return;
}
ShoporamaDkAddress.attachCheckout({
countryCode: '<{$default_country_code|escape:"javascript"}>',
label: '<{"Adresseforslag"|t|escape:"javascript"}>'
});
});
</script>
<{/if}>
attachCheckout() finds the fields order_address, order_zipcode, order_city, and order_country_id on its own, along with the matching fields prefixed with del_ for the delivery address. It finds them by id or name, so the same names that Shoporama receives in the form are enough. The delivery address uses the billing country when no delivery country is selected.
Other field names
If your fields have different names, or you want to use the suggestions somewhere else, call attach() for each address field:
ShoporamaDkAddress.attach({
input: 'billing_street', // id or element: the address field
zip: 'billing_zip', // the postal code field
city: 'billing_city', // the city field
countries: ['billing_country'], // country fields (select) in order of priority
countryCode: 'DK', // the country when no country field has a value
label: 'Address suggestions' // read aloud by screen readers
});
Customize the look
The list has its own simple styling, so it looks good without extra CSS. If you want it to match the rest of your theme, set the CSS variables, for example in your stylesheet:
.dk-address-list {
--dk-address-bg: #ffffff; /* background */
--dk-address-text: #1f2937; /* text */
--dk-address-border: #e5e7eb; /* border */
--dk-address-active-bg: #eff6ff; /* highlighted suggestion */
--dk-address-radius: 0; /* corners */
}
Good to know
- When the component fills in the fields, it dispatches input and change events. Alpine.js (x-model) and your own scripts are therefore updated as if the customer had typed it themselves.
- The address field gets role="combobox" and the list gets role="listbox", so the suggestions also work with screen readers.
- Don't call Adressevælger directly from your theme. The Danish Agency for Climate Data is introducing an access key around the turn of the year, and Shoporama will then switch the key in the component. Use the address with ?v=4 as in the example. Browsers cache the file for a long time, so if the theme developer documentation lists a new version number, change it in your theme too.
- You can also find the example in the theme developer documentation.
Get started
Turn on Enable address suggestions (Denmark) under Design → Theme settings, and try it yourself in your own checkout with your own address. You can read more in the support article Address autocomplete at checkout. If you have questions, write to support@shoporama.dk.
Related articles
Shoporama themes: an overview of all free store themes
A complete overview of all free themes in Shoporama: Delaware, DelawareDK, California, Alaska 2, Washington, Montana, and the classic Smarty 2...
Delaware theme: settings and customization
A complete guide to Delaware and DelawareDK in your Shoporama store: theme settings, footer menus, mega menu, colors, payment icons, Trustpilot,...
Address autocomplete at checkout with the Danish Address Register
Turn on address suggestions at checkout so customers pick their address from the Danish Address Register, and the postcode and city are filled in....
More from the blog
Gift cards with your own design and custom amounts
You can now give your customers a real gift card with your logo, the recipient's name, and a personal message instead of just a code in an email....
01. December 2026
Edit your emails without code with the new email editor
You can now edit the order confirmation and your other customer emails yourself under Design → Emails. Build the email from blocks, add your logo...
30. November 2026
ChatGPT can now find products and fill the cart in your online store
Some customers already ask an AI assistant to find products for them. Now ChatGPT can search your Shoporama online store, add products to the...
29. November 2026