Opis
Add a checkout question for the customer’s date of birth, and enforce a minimum age. The customer cannot checkout if their given date of birth means they are younger than the minimum age.
Requirements
- WooCommerce 3.0 or greater
- PHP 5.6 or greater
Translations
If you’d like to help out by translating this plugin, please sign up for an account and dig in.
Contributions
Privacy
The customer’s date of birth is recorded, so that transactions can be audited for compliance with minimum age legislation. The customer’s date of birth is transmitted in order confirmation and notification emails. This information is not shared with any other parties.
Snimke zaslona
ČPP
-
How can I set the minimum age?
-
The default minimum age is 18. You can change it the WooCommerce settings:
WooCommerce > Settings > Minimum Age > Minimum age
-
How can I change the order of the date fields?
-
The default order of the birth date fields is day, month, year. You can choose a different layout in the settings:
WooCommerce > Settings > Minimum Age > Date layout
-
Can I show the date of birth question conditionally?
-
There is a filter hook
minimum_age_woo_show_question
that allows developers to hide the date of birth question if it isn’t required, e.g. only show for products in certain categories. It accepts a single boolean parameter, and returns a boolean: true to show the question, otherwise false.
Recenzije
Suradnici i Programeri
“Minimum Age for WooCommerce” je softver otvorenog koda. Sljedeće osobe su doprinijele ovom dodatku.
Suradnici“Minimum Age for WooCommerce” je preveden na 7 jezika. Zahvala prevoditeljima za njihov doprinos.
Prevedite “Minimum Age for WooCommerce” na svoj jezik.
Zainteresirani ste za razvoj?
Pregledajte kôd, pogledajte SVN spremišteili se pretplatite na dnevnik razvoja od RSS.
Dnevnik promjena
The full changelog can be found on GitHub. Recent entries:
1.1.0
Released 2023-10-31
- fixed: support for WooCommerce HPOS (high performance order storage)
- added: filter hook
minimum_age_woo_show_question
allowing hookers to conditionally suppress the age question - changed: marked as tested up to WooCommerce 8.2