Linux 软件免费装
Banner图

Blueforce Age Check for WooCommerce

开发者 worshipper
更新时间 2026年9月24日 20:44
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

age verification woocommerce checkout alcohol age check

下载

1.0.0 1.1.0

详情介绍:

This plugin asks for a date of birth where the order is placed and rejects the order on the server if the customer is below your minimum age. It also covers express payment buttons, which skip the checkout form, and it reports every order that came in without a valid age check. What it is, and what it is not. The plugin checks a date of birth that the customer enters. It assists your shop with its age control. It does not verify identity documents and it does not guarantee legal compliance. You remain responsible for meeting the rules that apply to your products and your country. If you need document verification, use a dedicated identity service. Why another age plugin Most age plugins show a popup when someone opens the shop. A popup is answered with one click and has no connection to the order. This plugin works at the other end: at the moment the order is placed, on the server. Features Supported express payment plugins The plugin asks for the date of birth next to the express buttons of these plugins and rejects their orders without a confirmed age: The date of birth is asked on classic product and cart pages. At checkout, the express buttons above the form stay locked until the date of birth field in the form holds a valid date. In the cart block and the mini cart the buttons are shown without the question, and orders from there are rejected until the age is confirmed elsewhere. Express buttons of other plugins are not unlocked by this plugin. Their orders are rejected where they use the standard WooCommerce order routes, and reported by the safety net otherwise. Developers can add their own adapter with the filter bf_agecheck_express_adapters. A note on honesty: payment plugins are third-party code. One of the supported plugins can create an order on a route of its own that bypasses the standard WooCommerce order routes. For that route the plugin relies on hooks of the payment plugin. If those hooks change, the Site Health test tells you, and the safety net still reports such orders. For developers This plugin is an independent project by Blueforce Digital Solutions. It is not affiliated with Automattic, WooCommerce or any payment provider. Product names are used only to describe compatibility.

安装:

  1. Install and activate WooCommerce 8.9 or newer.
  2. Install and activate this plugin.
  3. Go to WooCommerce, Settings, Advanced, Age check and set your default minimum age.
  4. Optional: go to Products, Categories and set a minimum age per category.
  5. Place a test order to see the date of birth field in your checkout.

屏幕截图:

  • The date of birth next to the express payment buttons on a product page.
  • Minimum age per product category. Child categories inherit it, and categories without a rule fall back to the default.
  • Minimum age on a single product, which overrides its categories.
  • The settings.
  • The age check result on the order screen.
  • The Site Health tests.

升级注意事项:

1.1.0 Minimum age per product category and per product. Nothing changes until you set a rule. 1.0.0 First release.

常见问题:

Does this plugin verify identity documents?

No. It checks a date of birth that the customer enters. If you need document verification, use a dedicated identity service.

Does it make my shop legally compliant?

It assists you with your age control, it cannot guarantee compliance. Which measures are sufficient depends on your products and your country. Please check the rules that apply to you.

Does it show a popup when someone opens the shop?

No. The check happens where the order is placed.

Can I set different ages for different products?

Yes, per product category and per product. Open Products, Categories, edit a category and enter its minimum age. Enter 0 for no minimum age, for example for mineral water. Leave the field empty to inherit from the parent category. If a product is in several categories, the highest age applies, and for a cart the strictest product decides. A 17 year old can then buy beer, but not a cart that also contains whisky. Products whose categories carry no rule use the default minimum age, or no check at all if you prefer. For a single exception, edit the product and set its minimum age under Product data, Advanced. It overrides the categories, in both directions.

A cart needs no age check. What happens?

Nothing: no date of birth field, nothing stored, no notice from the safety net.

Which dates can customers enter?

In the classic checkout and next to express buttons the browser shows a date picker. In the block checkout the field is a text field that accepts 17.05.2001 and 2001-05-17. A date picker is used there automatically once your WooCommerce version supports date fields. Dates with slashes are not accepted by default, because 01/02/2001 means different days in different countries.

What is stored?

By default only the result of the check and the age at the time of the order. You can choose to store the full date of birth with the order. The date of birth is never saved to the customer account.

Where can I see why an order was rejected?

In WooCommerce, Status, Logs, source blueforce-age-check. Every rejected order is listed with the route and the reason, such as a date of birth below the minimum age. Automatic cancellations and notices of the safety net are there too. The log contains no date of birth and no other personal data.

Why do I get an email about an order without a valid age check?

The order reached a binding status, but no valid age check is recorded for it. Usually a payment button skipped the checkout form. The order note names the payment method. Please clarify the age of the customer before you ship. Orders you create yourself in the admin area and subscription renewals are not reported.

The express buttons are greyed out.

They unlock as soon as the customer has entered a valid date of birth: on product and cart pages in the field above the buttons, at checkout in the date of birth field of the form. The confirmation lasts for the shop session, so the customer sees the field once.

What happens to the data when I delete the plugin?

The settings and the age rules on categories and products are removed. The age check data stored with your orders stays, because it belongs to your order history. If you store full dates of birth and want them gone, erase the personal data of the orders with the WooCommerce tools before you delete the plugin.

Which WooCommerce version do I need?

WooCommerce 8.9 or newer. On older versions the plugin stays inactive and tells you so in the admin area.

更新日志:

1.1.0 1.0.0