Age Verification pop up v3.1

Age verification on the Ecomify theme for online stores is a feature designed to ensure that visitors meet a certain age requirement before accessing the website or specific products.

This is particularly important for businesses selling age-restricted items like alcohol, tobacco, or adult content. When a user visits the site, they encounter a pop-up or a dedicated page where they must confirm their age, typically by entering their birth date or agreeing to a statement confirming they meet the minimum age requirement.

The Ecomify theme likely offers customization options for this feature, such as setting the age limit, customizing the appearance of the verification prompt,

This section implements an age verification popup for a Shopify store. Below, I will detail its functionality, settings, and how it operates:

Functionality

The age verification popup ensures that users confirm their age before accessing certain content on the site. It utilizes a modal dialog that prompts users to input their birthdate, and it checks if they meet the minimum age requirement set by the store owner.

Key Features

  1. Age Verification:

    • Users are required to enter their birthdate (month, day, year).

    • The script calculates the user's age based on the input and compares it to the minimum age requirement.

    • If the user's age meets the requirement, they can proceed; otherwise, the continue button remains disabled.

  2. Cookie Handling:

    • Once a user verifies their age, a cookie is created to remember their verification for a specified number of days, preventing the popup from showing up repeatedly.

  3. Modal Customization:

    • The modal's appearance, text alignment, button styling, and image orientation are customizable via the section settings.

  4. Dynamic Content:

    • The section uses Liquid code to dynamically assign values and handle different settings, such as image orientation and modal settings.

Last updated