Customers may only visit particular store pages after verifying their age, thanks to the Age Verification for Magento 2 extension. By inserting a predefined code, you can create an unlimited number of age verification popups, which will appear on the home,category, and product pages.
Table of Content
Features
- The Admin can enable or disable the module.
- You can create an unlimited number of age verifications Pop-ups
- Support for inserting predefined code to display age verification on any other pages or positions.
- Set up and manage age verification from the admin interface
- Support for mobile devices
- Why you need Age verification for Magento 2 ?
- The extension enables store merchants to enable the age verification process in a few simple steps. It essentially allows store owners to restrict customers under a certain age from browsing the website’s content.
- The extension allows website administrators to choose which products/pages should display the verification pop-up. If a user arrives at a page restricted by the website administrator for verification while browsing the store, a window will immediately pop up asking them to verify their age.
Steps:
- Configuration
- Popup
- How to Install
- Configuration:
- Configuration Login to the Admin Magento,Choose Stores > Configuration > VDCSTORE.
- General Configuration :
- Enable You can Enable/Disable the module
- Verification Pages You can choose the pages where you want to prohibit underage visitors.
- Verification Age You can add age for prohibit underage visitors.
- Cookie Interval You can change the cookie timing.
- What to Show :
- Popup Title > You can change popup title.
- Text Color > You can change color of the texts.
- Submit Button Text Color > You can Change submit button Text color.
- Popup Content > You can change popup content.
- Popup Width > You can set Popup Width.
- Cancle Button Background Color > You can Change cancle button background color.
- Background Color > You can change the color of popup.
- Submit Button Background Color > You can Change submit button background color.
- Popup Height > You can set Popup Height.
- Cancle Button Text Color > You can Change cancle button Text color.
- Select Image > You can select image for popup.
- Popup
- If the admin enables the VDC store Age Verification extension, then the below image will be displayed in the frontend. Visitors of your website then need to verify their age before viewing specific pages of your website.
- oIf the age is equal to or greater than the admin configured verification age, then the visitor will be allowed to enter the website; otherwise, the customer will be redirected to the home URL.
- Age Verification Default Popup :
- How to Install
Step 1 : Download the zip file
Step 2 : Extract it and put into /app/code/
Step 3 : Open Cli in magento directory and follow the below commands:
CLI Commands :
- php bin/magento module:enable Vdcstore_AgeVerification
- php bin/magento setup:upgrade
- php bin/magento setup:di:compile
- php bin/magento setup:static-content:deploy
- php bin/magento cache:clean
- php bin/magento cache:flush