{"id":174766,"date":"2019-07-01T14:07:54","date_gmt":"2019-07-01T14:07:54","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=174766"},"modified":"2026-02-06T11:01:18","modified_gmt":"2026-02-06T11:01:18","slug":"magento2-age-verification-extension","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/magento2-age-verification-extension\/","title":{"rendered":"Guide of Magento 2 Age Verification Extension"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">Magento 2 Age Verification extension<strong>,<\/strong> is a must-needed module for the store owner who wants to sell the products to a particular age group of customers.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">With the help of <a href=\"https:\/\/store.webkul.com\/magento2-age-verification.html\">Magento 2 Age Verification extension<\/a>, the admin can restrict the users to access the store from the store category, cms pages, and the product page. Then a<\/span>\u00a0pop-up will show to the user to confirm the age.<\/p>\n<p>Now, the users can easily confirm the age by providing the date of birth then access the restricted page easily.<\/p>\n<p>Check the plugin overview in the video mentioned below &#8211;<\/p>\n<div class=\"wp-block-wk-block-youtube-video wk-block--yt-video wk-block-yt-classic components-placeholder\">\n<div class=\"wk-block--yt-video-frame\">\n<div class=\"wk-block--yt-video-frame-request\" data-plyr-provider=\"youtube\" data-plyr-embed-id=\"SXJi663yXQc\">\n<div class=\"components-placeholder__instructions\">SXJi663yXQc<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"panel panel-primary\">\n<div class=\"panel-heading\">\n<div>\n<h3 class=\"panel-title\">Features<\/h3>\n<\/div>\n<\/div>\n<div class=\"panel-body\">\n<div>\n<div class=\"preset-wrapper\">\n<ul>\n<li>The admin can upload custom image for the pop-up.<\/li>\n<li>The admin can manage the pop-up contents.<\/li>\n<li>The admin can choose from various methods to verify users\u2019 age, such as a checkbox, date of birth input, or yes\/no button.<\/li>\n<li>The admin can enter the custom text for Enter and Leave buttons.<\/li>\n<li>The admin can set the Leave button URL.<\/li>\n<li>The admin can enable or disable the display of the age verification popup on products, categories, or CMS pages globally.<\/li>\n<li>The admin can select or deselect CMS pages where the age verification popup will be displayed.<\/li>\n<li>The admin has option to enable or disable the display of the age verification popup on individual products, categories, or CMS pages.<\/li>\n<li>Customizable design &#8211; width, button color, background color, text color.<\/li>\n<li>This Extension is\u00a0<a href=\"https:\/\/webkul.com\/hyva-theme-development\/\" target=\"_blank\" rel=\"noopener\" data-wpel-link=\"internal\">Hyva storefront<\/a>\u00a0compatible.<\/li>\n<li>The extension also supports GraphQL APIs.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"panel panel-primary\">\n<div class=\"panel-heading\">\n<div>\n<h3 class=\"panel-title\">Installation<\/h3>\n<\/div>\n<\/div>\n<div class=\"panel-body\">\n<div>\n<p>Customers will get a\u00a0<strong>zip folder<\/strong> then they have to extract the contents of this zip folder on their system. Then, the extracted folder has an <strong>src<\/strong>\u00a0folder, inside the src folder you have the\u00a0<strong>app<\/strong>\u00a0folder.<\/p>\n<p>You need to transfer this\u00a0<strong>app<\/strong>\u00a0folder\u00a0into the Magento2 root directory on the server as shown below.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-171452\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/04\/Installation-1.png\" alt=\"Installation-1\" width=\"800\" height=\"278\" loading=\"lazy\" \/><\/p>\n<p>After the successful installation, then you have to run these commands in the Magento2 root directory.<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">php bin\/magento setup:upgrade<\/pre>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">php bin\/magento setup:di:compile<\/pre>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">php bin\/magento setup:static-content:deploy<\/pre>\n<p>After running the commands, you have to <b>flush<\/b> the cache from the <b>Magento admin panel<\/b> by navigating through <b>System<\/b>&gt;<b>Cache management<\/b> as shown below in the snapshot-<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-171457\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/04\/cache-management.png\" alt=\"age verification cache management\" width=\"800\" height=\"678\" loading=\"lazy\" \/><\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"panel panel-primary\">\n<div class=\"panel-heading\">\n<div>\n<h3 class=\"panel-title\">Language Translation<\/h3>\n<\/div>\n<\/div>\n<div class=\"panel-body\">\n<div>\n<p>For translating the module language, navigate through <strong>src\/app\/code\/Webkul\/AgeRestriction\/i18n\u00a0<\/strong>then edit the <strong>en_US.csv<\/strong> file.<\/p>\n<p>Now rename the CSV as \u201cen_SA.csv\u201d and translate all right side content after the comma in the Arabic language. Then after editing the CSV, save it.<\/p>\n<p>Now upload the file to the path <strong>src\/app\/code\/Webkul\/AgeRestriction\/i18n <\/strong>which already have Magento2 installed, on the server.<\/p>\n<p>Now the module will be translate into the Arabic Language which supports <strong>RTL<\/strong> &amp; <strong>LTR\u00a0<\/strong>languages.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-174800\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/05\/webkul-magento2-language.png\" alt=\"age verification webkul-magento2-language\" width=\"800\" height=\"345\" loading=\"lazy\" \/><\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"panel panel-primary\">\n<div class=\"panel-heading\">\n<div>\n<h3 class=\"panel-title\">Module Configuration<\/h3>\n<\/div>\n<\/div>\n<div class=\"panel-body\">\n<div>\n<p>The admin can configure the module from the back-end easily. To configure the module, the admin can navigate to\u00a0<strong>Stores&gt; Configuration&gt; Age Verification<\/strong><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-432552\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/module-initial-configuration.webp\" alt=\"module-initial-configuration\" width=\"1120\" height=\"880\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/module-initial-configuration.webp 1120w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/module-initial-configuration-300x236.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/module-initial-configuration-250x196.webp 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/module-initial-configuration-768x603.webp 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" loading=\"lazy\" \/><\/p>\n<p>You can also access the initial configuration by navigating Age Verification-&gt;Configuration Settings<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-432554\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/initial-configuration-2.webp\" alt=\"initial-configuration (2)\" width=\"1120\" height=\"880\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/initial-configuration-2.webp 1120w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/initial-configuration-2-300x236.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/initial-configuration-2-250x196.webp 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/initial-configuration-2-768x603.webp 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" loading=\"lazy\" \/><\/p>\n<p>Here, the admin can-<\/p>\n<ul>\n<li><strong>Enable<\/strong> or <strong>Disable<\/strong> the module from the back-end.<\/li>\n<li><strong>Upload<\/strong> the <strong>image<\/strong> to show on the front end on the pop-up screen.<\/li>\n<\/ul>\n<h5><strong>Content:\u00a0<\/strong><\/h5>\n<p>In the content section, the admin can-<\/p>\n<ul>\n<li>Enter the <strong>title<\/strong> for the pop-up<\/li>\n<li>Enter the<strong> pop-up<\/strong> content <strong>title\/ Description<\/strong><\/li>\n<li>Select the <strong>method<\/strong> to verify user age-<br \/>\nThe admin can select the different type of method to verify the user age as: <strong>Date of Birth<\/strong>, <strong>Checkbox Option<\/strong>, and <strong>Yes\/No button\u00a0<\/strong><\/li>\n<\/ul>\n<ul>\n<li>Select the format of <strong>date of birth<\/strong>.<\/li>\n<li>The will enter the <strong>age required<\/strong> for the age confirmation<\/li>\n<li>The text which will be <strong>shown on the button<\/strong><\/li>\n<li>Enter the <strong>text<\/strong> for the <strong>leave<\/strong> <strong>button<\/strong>.<\/li>\n<li>Enter the <strong>url<\/strong> for the <strong>leave button.<\/strong><\/li>\n<\/ul>\n<p><strong>Display Setting: <\/strong>In the display section, the admin can configure the module where the age restriction should be applied then-<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-204584\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/Display-settings.png\" alt=\"Display settings\" width=\"800\" height=\"561\" loading=\"lazy\" \/><\/p>\n<ul>\n<li>Select yes, if you want to apply age restriction on <strong>CMS Pages\u00a0<\/strong>and after that, the admin can select the CMS pages where he want to apply age restriction.<\/li>\n<li>The admin can select if, the age verification should be applied on the <strong>Categories<\/strong><\/li>\n<li>The admin can decide if, the age verification should be applied to the <strong>Products.<\/strong><\/li>\n<\/ul>\n<p><strong>Design: <\/strong>The admin can set the design for the pop-up. Here, the admin can-<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-204587\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/Design-settings.png\" alt=\"Design settings\" width=\"800\" height=\"500\" loading=\"lazy\" \/><\/p>\n<ul>\n<li>Set the <strong>pop-up width<\/strong> by entering the pop-up <strong>width value<\/strong> between the <strong>range 200-1000<\/strong><\/li>\n<li>Enter the <strong>color<\/strong> for the <strong>pop-up background<\/strong>.<\/li>\n<li>Enter the color for the <strong>text<\/strong>.<\/li>\n<li>The admin can set what should be the <strong>button color<\/strong>.<\/li>\n<li>the admin can enter the <strong>text color for the button<\/strong>.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"panel panel-primary\">\n<div class=\"panel-heading\">\n<div>\n<div class=\"panel panel-primary\">\n<div class=\"panel-heading\">\n<div>\n<h3 class=\"panel-title\">Configure Store View<\/h3>\n<\/div>\n<\/div>\n<div class=\"panel-body\">\n<div>\n<p>Similarly, the admin can configure particular store view by navigating through <strong>Stores&gt; Configuration&gt; Store View.\u00a0<\/strong><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-432557\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/age-restriction-store-view.webp\" alt=\"age-restriction-store-view\" width=\"1120\" height=\"880\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/age-restriction-store-view.webp 1120w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/age-restriction-store-view-300x236.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/age-restriction-store-view-250x196.webp 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/age-restriction-store-view-768x603.webp 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" loading=\"lazy\" \/><\/p>\n<p>By using the <strong>Store<\/strong> <strong>View<\/strong> the admin can select the particular store view that he wants to configure.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-204600\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/Store-view-settings.png\" alt=\"Store view settings\" width=\"800\" height=\"1006\" loading=\"lazy\" \/><\/p>\n<p><strong>Note: After selecting a particular store view the admin can configure only the Content and Design settings for that store view.\u00a0<\/strong><\/p>\n<\/div>\n<\/div>\n<\/div>\n<h3 class=\"panel-title\">Age verification on the product page<\/h3>\n<\/div>\n<\/div>\n<div class=\"panel-body\">\n<div>\n<p>The admin can enable or disable the age verification on the product page. To manage the age verification on the product page the admin can navigate to<strong> catalog&gt; products<\/strong><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-432559\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/navigating-products.webp\" alt=\"navigating-products\" width=\"1120\" height=\"880\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/navigating-products.webp 1120w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/navigating-products-300x236.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/navigating-products-250x196.webp 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/navigating-products-768x603.webp 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" loading=\"lazy\" \/><\/p>\n<p>Now select the product for which the admin wants to enable the age verification then click on the edit button as shown in the image below-<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-432560\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/selecting-product-for-age-verification.webp\" alt=\"selecting-product-for-age-verification\" width=\"1120\" height=\"880\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/selecting-product-for-age-verification.webp 1120w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/selecting-product-for-age-verification-300x236.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/selecting-product-for-age-verification-250x196.webp 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/selecting-product-for-age-verification-768x603.webp 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" loading=\"lazy\" \/><\/p>\n<p>Now the admin can enable or disable the age verification then click on the save button as shown in the image below-<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-432561\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/enabling-age-verification-for-product-1.webp\" alt=\"enabling-age-verification-for -product\" width=\"1120\" height=\"880\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/enabling-age-verification-for-product-1.webp 1120w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/enabling-age-verification-for-product-1-300x236.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/enabling-age-verification-for-product-1-250x196.webp 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/enabling-age-verification-for-product-1-768x603.webp 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" loading=\"lazy\" \/><\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"panel panel-primary\">\n<div class=\"panel-heading\">\n<div>\n<h3 class=\"panel-title\">Age verification on the category page<\/h3>\n<\/div>\n<\/div>\n<div class=\"panel-body\">\n<div>\n<p>The admin can enable or disable the age verification on the category page. To manage the age verification on the category page, the admin can navigate to <strong>catalog&gt; categories<\/strong><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-432562\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/category-navigation-for-age-verification.webp\" alt=\"category-navigation-for-age-verification\" width=\"1120\" height=\"880\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/category-navigation-for-age-verification.webp 1120w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/category-navigation-for-age-verification-300x236.webp 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/category-navigation-for-age-verification-250x196.webp 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/category-navigation-for-age-verification-768x603.webp 768w\" sizes=\"(max-width: 1120px) 100vw, 1120px\" loading=\"lazy\" \/><\/p>\n<p>Now the admin can select the category for which the admin wants to enable or disable the module as shown in the image below-<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-183206\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/06\/28113945\/age-verification.png\" alt=\"age-verification\" width=\"800\" height=\"373\" loading=\"lazy\" \/><\/p>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"panel panel-primary\">\n<div class=\"panel-heading\">\n<div>\n<h3 class=\"panel-title\">Front-end view<\/h3>\n<\/div>\n<\/div>\n<div class=\"panel-body\">\n<div>\n<p><span style=\"text-decoration: underline;\"><strong>Age Verification on the Product Page-<\/strong><\/span> When age verification is applied to the product page, the customer can&#8217;t access to that product page until the customer verifies the age according to the applied age restriction.<\/p>\n<p><img decoding=\"async\" class=\"size-full wp-image-204619 aligncenter\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/example-store-view.png\" alt=\"Verification\" width=\"606\" height=\"424\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/example-store-view.png 606w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/example-store-view.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/example-store-view.png 300w\" sizes=\"(max-width: 606px) 100vw, 606px\" loading=\"lazy\" \/><\/p>\n<p>After verifying the age, the customer can access that product page then shop for that particular product too.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-175178\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/05\/product-page-after-verifying-age.png\" alt=\"access product page\" width=\"800\" height=\"455\" loading=\"lazy\" \/><\/p>\n<p>If the customer clicks on the <strong>Leave<\/strong> button, then the customer will be redirected to the URL which is set by the admin.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-183596\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/01131428\/webkul.png\" alt=\"webkul.com\" width=\"800\" height=\"460\" loading=\"lazy\" \/><\/p>\n<p><strong>Note: The layout of the age verification pop-up will change in terms of Content and Design, according to the select Store View but the method will remain same.<\/strong><\/p>\n<p><img decoding=\"async\" class=\"size-full wp-image-204614 aligncenter\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/Default-store-view.png\" alt=\"store view popup\" width=\"602\" height=\"435\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/Default-store-view.png 602w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/Default-store-view.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/Default-store-view.png 300w\" sizes=\"(max-width: 602px) 100vw, 602px\" loading=\"lazy\" \/><\/p>\n<h5><span style=\"text-decoration: underline;\"><strong>Age Verification on the Cateogy Page<\/strong><\/span><\/h5>\n<p>Now, when the age verification is apply to the category page then the customers will not be able to access that category page until the customer verify the age-<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-183578\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/01125416\/collection-page-restriction.png\" alt=\"age verification on category page\" width=\"800\" height=\"498\" loading=\"lazy\" \/><\/p>\n<p>After verifying the age according to the set by the admin, the customer can access to that particular category-<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-183585\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/01130042\/verify-category.png\" alt=\"age verification access category page\" width=\"800\" height=\"456\" loading=\"lazy\" \/><\/p>\n<p>If the customer clicks on the <strong>Leave<\/strong> button, the customer will be redirect to the URL which is set by the admin.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-183596\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/01131428\/webkul.png\" alt=\"age verification webkul.com\" width=\"800\" height=\"460\" loading=\"lazy\" \/><\/p>\n<h5><span style=\"text-decoration: underline;\"><strong>Age Verification on the CMS Pages<\/strong><\/span><\/h5>\n<p>Not only category, product, but also cms pages can be restrict using this module. The admin can apply the age verification for the cms pages too.<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-183618\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/01134644\/cms-page.png\" alt=\"age verification on the cms page\" width=\"800\" height=\"441\" loading=\"lazy\" \/><\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>That\u2019s all for <strong>Age Verification For Magento2<\/strong><strong>.\u00a0<\/strong>Still, have any issues please raise a ticket or get back to us at <a href=\"mailto:support@webkul.com\"><strong>support@webkul.com<\/strong><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Magento 2 Age Verification extension, is a must-needed module for the store owner who wants to sell the products to a particular age group of customers. With the help of Magento 2 Age Verification extension, the admin can restrict the users to access the store from the store category, cms pages, and the product page. <a href=\"https:\/\/webkul.com\/blog\/magento2-age-verification-extension\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":239,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[302],"tags":[8557,8558,8559],"class_list":["post-174766","post","type-post","status-publish","format-standard","hentry","category-magento2","tag-age-verification","tag-age-verification-for-magento2","tag-magento-2-age-verification-module"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Guide of Magento 2 Age Verification Extension<\/title>\n<meta name=\"description\" content=\"Age verification for magento 2, helps the admin to hide their online store from the customers who are not from the appropriate age group.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/magento2-age-verification-extension\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Guide of Magento 2 Age Verification Extension\" \/>\n<meta property=\"og:description\" content=\"Age verification for magento 2, helps the admin to hide their online store from the customers who are not from the appropriate age group.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/magento2-age-verification-extension\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-07-01T14:07:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-06T11:01:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/02132442\/Age-verification-for-magento-2-facebook-banner.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Rajan Dimri\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/02132507\/Age-verification-for-magento-2-Twitter-banner.png\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Rajan Dimri\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/magento2-age-verification-extension\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento2-age-verification-extension\/\"},\"author\":{\"name\":\"Rajan Dimri\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/84179204d8799af72b256809667b9c81\"},\"headline\":\"Guide of Magento 2 Age Verification Extension\",\"datePublished\":\"2019-07-01T14:07:54+00:00\",\"dateModified\":\"2026-02-06T11:01:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento2-age-verification-extension\/\"},\"wordCount\":1169,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento2-age-verification-extension\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2019\/04\/Installation-1.png\",\"keywords\":[\"age verification\",\"age verification for magento2\",\"magento 2 age verification module\"],\"articleSection\":[\"Magento2\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/magento2-age-verification-extension\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/magento2-age-verification-extension\/\",\"url\":\"https:\/\/webkul.com\/blog\/magento2-age-verification-extension\/\",\"name\":\"Guide of Magento 2 Age Verification Extension\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento2-age-verification-extension\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento2-age-verification-extension\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2019\/04\/Installation-1.png\",\"datePublished\":\"2019-07-01T14:07:54+00:00\",\"dateModified\":\"2026-02-06T11:01:18+00:00\",\"description\":\"Age verification for magento 2, helps the admin to hide their online store from the customers who are not from the appropriate age group.\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/magento2-age-verification-extension\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/magento2-age-verification-extension\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/magento2-age-verification-extension\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/04\/Installation-1.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/04\/Installation-1.png\",\"width\":1302,\"height\":411,\"caption\":\"Installation-1\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/magento2-age-verification-extension\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Guide of Magento 2 Age Verification Extension\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/84179204d8799af72b256809667b9c81\",\"name\":\"Rajan Dimri\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/bd29c0f3a2885bbbeb97c830d846534f69fe6069cfa296720fcd15d33bc31938?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/bd29c0f3a2885bbbeb97c830d846534f69fe6069cfa296720fcd15d33bc31938?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Rajan Dimri\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/rajan-dimri348\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Guide of Magento 2 Age Verification Extension","description":"Age verification for magento 2, helps the admin to hide their online store from the customers who are not from the appropriate age group.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/webkul.com\/blog\/magento2-age-verification-extension\/","og_locale":"en_US","og_type":"article","og_title":"Guide of Magento 2 Age Verification Extension","og_description":"Age verification for magento 2, helps the admin to hide their online store from the customers who are not from the appropriate age group.","og_url":"https:\/\/webkul.com\/blog\/magento2-age-verification-extension\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2019-07-01T14:07:54+00:00","article_modified_time":"2026-02-06T11:01:18+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/02132442\/Age-verification-for-magento-2-facebook-banner.png","type":"image\/png"}],"author":"Rajan Dimri","twitter_card":"summary_large_image","twitter_image":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/07\/02132507\/Age-verification-for-magento-2-Twitter-banner.png","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Rajan Dimri","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/magento2-age-verification-extension\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/magento2-age-verification-extension\/"},"author":{"name":"Rajan Dimri","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/84179204d8799af72b256809667b9c81"},"headline":"Guide of Magento 2 Age Verification Extension","datePublished":"2019-07-01T14:07:54+00:00","dateModified":"2026-02-06T11:01:18+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/magento2-age-verification-extension\/"},"wordCount":1169,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/magento2-age-verification-extension\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2019\/04\/Installation-1.png","keywords":["age verification","age verification for magento2","magento 2 age verification module"],"articleSection":["Magento2"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/magento2-age-verification-extension\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/magento2-age-verification-extension\/","url":"https:\/\/webkul.com\/blog\/magento2-age-verification-extension\/","name":"Guide of Magento 2 Age Verification Extension","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/magento2-age-verification-extension\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/magento2-age-verification-extension\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2019\/04\/Installation-1.png","datePublished":"2019-07-01T14:07:54+00:00","dateModified":"2026-02-06T11:01:18+00:00","description":"Age verification for magento 2, helps the admin to hide their online store from the customers who are not from the appropriate age group.","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/magento2-age-verification-extension\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/magento2-age-verification-extension\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/magento2-age-verification-extension\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/04\/Installation-1.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2019\/04\/Installation-1.png","width":1302,"height":411,"caption":"Installation-1"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/magento2-age-verification-extension\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Guide of Magento 2 Age Verification Extension"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/84179204d8799af72b256809667b9c81","name":"Rajan Dimri","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/bd29c0f3a2885bbbeb97c830d846534f69fe6069cfa296720fcd15d33bc31938?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/bd29c0f3a2885bbbeb97c830d846534f69fe6069cfa296720fcd15d33bc31938?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Rajan Dimri"},"url":"https:\/\/webkul.com\/blog\/author\/rajan-dimri348\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/174766","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/239"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=174766"}],"version-history":[{"count":58,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/174766\/revisions"}],"predecessor-version":[{"id":510566,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/174766\/revisions\/510566"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=174766"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=174766"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=174766"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}