Gå til hovedindhold
WooCommerce

Configuration

Configure the Aldersverificering plugin settings in WooCommerce.

Configuration

Open the settings at WooCommerce → Settings → Aldersverificering.

Age Verification card

Enable toggle

The toggle enables or disables the age gate across your entire store. With the toggle off, no verification is required regardless of any other settings.

Below the toggle, a status strip shows the current live state:

Status stripMeaning
🟢 Active — Production modeGate is on, real MitID verifications
🟡 Active — Test modeGate is on, simulated MitID verifications
⚫ Inactive — age verification is disabledToggle is off
⚫ Inactive — no API key configuredToggle is on but no key has been saved

Scope

Scope controls which products trigger age verification at checkout:

OptionBehaviour
All productsEvery cart requires age verification
Selected products & categoriesOnly items you have explicitly marked require verification

When Selected products & categories is chosen, a category grid appears. Tick the categories that should require age verification. You can also mark individual products from each product's edit screen — see Products & Categories.

Environment & API Keys card

Environment selector

ModeKey prefix usedReal MitID verificationBilled
Test modepk_test_No — simulatedNever
Production modepk_live_YesYes

Always test in test mode first. See Testing and Going Live.

API key fields

  • Test Public Key — must start with pk_test_
  • Production Public Key — must start with pk_live_

Get your keys at Account → API Keys. Keys are shown only once — copy them immediately after creation.

You cannot save with Production mode selected if no pk_live_ key is entered. A validation error will prevent saving until the key is provided or the mode is switched back to Test.

General Settings card

SettingDescriptionDefault
Required AgeMinimum age (in years) a customer must have verified. Valid range: 1–120.18
Verification ModePopup keeps the customer on the page. Full-page redirect navigates away — use this if popups are frequently blocked.Popup
Popup LanguageLanguage for the verification prompt and cart notices shown to customers. Auto-detect uses the WordPress site language.Auto-detect

Domain Setup card

Your domain must be whitelisted at Account → Domains before production verifications will work. The card shows your current domain — copy it exactly into your account.

See Domains for format requirements and common setups.

Saving settings

Click Save changes at the bottom of the page. If any value is invalid (for example, a key that does not start with the correct prefix) an error banner is shown and nothing is saved.

A "You have unsaved changes" bar slides up from the bottom of the screen whenever you modify a field. Clicking Save changes in that bar submits the form.

On this page