Age Validation Per Product for WooCommerce
WooCommerce Age Validation Per Product gives you fine-grained control over who can purchase restricted items in your WooCommerce store based on date-of-birth (DOB) settings. Shop owners can: * Set a minimum or maximum DOB on simple products. * Globally define DOB restrictions for variable products, or set them per variation. * Prompt users for DOB at checkout only if restricted items are in the cart. * Block checkout if the entered DOB does not satisfy the product(s) restrictions.
Key Features: * Per-product or per-variation DOB range (e.g., only allow customers with birthdates in 01-01-1980 to 31-12-2005). * Global fields for variable products that override each variation’s settings. * Conditional DOB field at checkout (shown only if restricted items are in the cart). * Client-side datepicker in the admin (so store managers can pick min/max dates) and in the checkout for users. * Automatic validation to block purchase if the DOB is outside the allowed range. * Optionally show notices on the product page or in the cart for restricted items.
Use Cases: * Alcohol, tobacco, vaping, or adult content requiring age gating. * Specialty products requiring a specific DOB range (e.g., child tickets vs. adult tickets). * Special subscription products that require age segmentation (i.e. summer camps for children of different ages). * Any scenario needing a user’s date-of-birth for compliance.
Usage
- Activate the plugin.
- For Simple Products:
- Go to the “General” tab in “Product Data,” fill in DOB Minimum or DOB Maximum in
dd-mm-yyyyformat.
- Go to the “General” tab in “Product Data,” fill in DOB Minimum or DOB Maximum in
- For Variable Products:
- In the “General” tab, fill in Global DOB Minimum or Global DOB Maximum.
- (Optionally) Edit each variation to set specific DOB fields if the global fields are empty or need overriding.
- Optionally adjust JavaScript to handle date format or display if your store uses different date formats.
If you have any questions, see the “FAQ” section or contact us at https://socialmind.gr/contact.
