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 strip | Meaning |
|---|---|
| 🟢 Active — Production mode | Gate is on, real MitID verifications |
| 🟡 Active — Test mode | Gate is on, simulated MitID verifications |
| ⚫ Inactive — age verification is disabled | Toggle is off |
| ⚫ Inactive — no API key configured | Toggle is on but no key has been saved |
Scope
Scope controls which products trigger age verification at checkout:
| Option | Behaviour |
|---|---|
| All products | Every cart requires age verification |
| Selected products & categories | Only 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
| Mode | Key prefix used | Real MitID verification | Billed |
|---|---|---|---|
| Test mode | pk_test_ | No — simulated | Never |
| Production mode | pk_live_ | Yes | Yes |
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
| Setting | Description | Default |
|---|---|---|
| Required Age | Minimum age (in years) a customer must have verified. Valid range: 1–120. | 18 |
| Verification Mode | Popup keeps the customer on the page. Full-page redirect navigates away — use this if popups are frequently blocked. | Popup |
| Popup Language | Language 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.