Table of Contents
View Magento 2 Age Verification Extension Detail Page for Features and Demo
Documentation for Age Verification
Preference
The Magento 2 Age Verification extension helps the store owners in seamlessly prohibiting the customers from browsing the website unless they verify their age to the minimum requirement set by the owner. The owners get to decide which specific pages to lock up behind the Magento 2 age verification pop-up and to easily customize the whole look and feel of the same.
- Allows merchants to verify customer age before granting access to the site.
- Merchants can enforce age restriction for the entire site or just for specific pages.
- Admin manage popup globally or specific page.
- Customizable display of the verification pop-up through colour and content.
- Provision for customizable templates according to different style and purpose.
- Easy and fast setup with no much technical knowledge required.
Installation
There are two ways of installing extension in magento2.
- Using COMMAND LINE.
- Manually Install extension.
Option 1: Magento 2 install extension using COMMAND LINE (Recommended)
Follow below steps to install extension from the command line.
Step 1: Download the extension and unzip it.
Step 2: Upload it to code directory in your magento installation’s app directory If code directory does not exists then create.
Step 3: Disable the cache under System → Cache Management.
Step 4: Enter the following at the command line:
Php bin/magento setup:upgrade
Php bin/magento setup:static-content:deploy
Step 5: Once you complete above steps log out and log in back to the admin panel and switch to Stores → Configuration → Mageants → Ageverification, the module will be displayed in the admin panel.
Option 2: Magento 2 install extension manually
Step 1: Download the extension and unzip it.
Step 2: Upload it to code directory in your magento installation’s app directory If code directory does not exists then create.
Step 3: Disable the cache under System → Cache Management Edit app/etc/config.php file and add one line code: ‘Mageants_Ageverification’ ⇒ 1
Step 4: Disable the cache under System → Cache Management
Step 5: Once you complete above steps log out and log in back to the admin panel and switch to Stores → Configuration → Mageants → Ageverification, the module will be displayed in the admin panel.
Backend Example
- After Installation of Extension login to magento admin panel to set configuration of the extension.
- As per below screen shot you can set all the settings here.
Extension Configuration
Menu
Content → Age Verification → Templates.
All Age Verification Record display using grid
Add new Template using form
Category wise age verify :-
- you can enable age verification for particular category wise,for that you need you enable age verification in selected category.
Frontend Example
- Display popup in home page as well as global as per configuration