Magento 2 Age RestrictionMagento 2 Age Restriction
Live Demo
Buy Now
Support
Live Demo
Buy Now
Support
  • Getting Started

    • Introduction
    • Requirements
    • Installation
    • Activate & Connect
  • Configuration

    • Overview
    • Settings
    • Product & Category Setup
    • GraphQL API
  • Help

    • Troubleshooting
    • FAQ

Admin Settings Reference

To access the configuration options, log in to the Magento Admin Panel and navigate to:
Stores > Configuration > Webkul > Age Verification


1. General Settings

General

FieldTypeDefaultDescription
Enable PluginDropdown (Yes/No)NoMaster switch to enable or disable age verification throughout the store.
ImageFile UploadNoneUpload a custom header image or logo for the popup. Allowed file types: jpg, jpeg, gif, png (Max size: 2MB).

2. Content

ContentContent

FieldTypeDefaultDescription
Popup TitleTextAre you 18 year old?The main headline text displayed at the top of the popup.
Popup Content TitleTextYou must confirm your age...Sub-headline or explanatory description below the title.
Popup Checkbox TitleTextCheckedLabel displayed next to the confirmation checkbox when using the checkbox verification method.
Select Methods to verify users ageDropdownAsk user to enter their Date of BirthVerification method: using_dob, checkbox_option, or yesno_button.
Select Date FormatDropdownDay,Month,YearDate order for DOB dropdowns: dd-mm-yy, mm-yy-dd, or yy-dd-mm (Visible when DOB method is selected).
Required Minimum AgeNumber (1–100)18The minimum age threshold required to access restricted content (Visible when DOB method is selected).
Enter Button TextTextEnterLabel for the positive confirmation button.
Leave Button TextTextLeaveLabel for the cancellation/exit button.
Leave Button URLURLNoneDestination URL where users are redirected upon clicking Leave or failing age verification (e.g. https://google.com or /underage-policy).
Cookie Lifetime (Days)Number1Number of days before the age_verified cookie expires and the user must re-verify.

3. Terms and Conditions

Terms & Conditions Settings

FieldTypeDefaultDescription
Enable Terms and ConditionsDropdown (Yes/No)NoWhen enabled, requires visitors to check an agreement box before entering.
Terms Checkbox LabelTextI agree to thePrefix text displayed before the link (Visible when terms are enabled).
Terms Link TextTextTerms and ConditionsAnchor text for the terms link (Visible when terms are enabled).
Terms Link URLText / URLNoneURL or internal store path to the Terms page (e.g., https://example.com/terms or /privacy-policy).

4. Display Settings

Display Settings

FieldTypeDefaultDescription
Display on CMS PagesDropdown (Yes/No)YesEnable age verification on selected CMS pages.
Select CMS PagesMultiselectNoneChoose specific CMS pages that require age verification (Visible when Display on CMS Pages is Yes).
Display on CategoriesDropdown (Yes/No)YesEnable category-level verification checks for categories marked with the Age Verification attribute.
Display on ProductsDropdown (Yes/No)YesEnable product-level verification checks for products marked with the Age Verification attribute.

5. Design

Design and Color Customization SettingsDesign and Color Customization Settings

FieldTypeDefaultDescription
Width of PopupNumber (200–1000)400Width of the popup modal in pixels.
Background ColorColor Picker (Hex)whiteBackground color for the popup modal container.
Text ColorColor Picker (Hex)blackFont color for titles, labels, and text inside the popup.
Enter Button ColorColor Picker (Hex)#000000Background color for the Enter confirmation button.
Enter Button Text ColorColor Picker (Hex)#FFFFFFText color for the Enter button.
Enter Button Border ColorColor Picker (Hex)#000000Border color for the Enter button.
Enter Button Border RadiusNumber (px)5Border radius in pixels for rounded corners on the Enter button.
Leave Button ColorColor Picker (Hex)#FFFFFFBackground color for the Leave button.
Leave Button Text ColorColor Picker (Hex)#000000Text color for the Leave button.
Leave Button Border ColorColor Picker (Hex)#000000Border color for the Leave button.
Leave Button Border RadiusNumber (px)5Border radius in pixels for rounded corners on the Leave button.
Prev
Overview
Next
Product & Category Setup