[WordPress] 外掛分享: ByticsLab Age Restrictions for WooCommerce

首頁外掛目錄 › ByticsLab Age Restrictions for WooCommerce
WordPress 外掛 ByticsLab Age Restrictions for WooCommerce 的封面圖片
全新外掛
安裝啟用
尚無評分
5 天前
最後更新
問題解決
WordPress 6.0+ PHP 7.4+ v1.0.0 上架:2026-08-25

內容簡介

ByticsLab Age Restrictions for WooCommerce 讓您可以為個別產品(如酒精、煙草、成人內容等)設置年齡限制,並配置年齡驗證的呈現方式,確保合規性與安全性。

【主要功能】
• 標記任何簡單或變數產品為年齡限制
• 可配置的最低年齡設定
• 響應式年齡驗證彈窗顯示
• 可選的年齡限制徽章顯示
• 記住訪客確認狀態的輕量級 Cookie
• 可自定義顏色與文字大小

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「ByticsLab Age Restrictions for WooCommerce」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

ByticsLab Age Restrictions for WooCommerce lets you mark individual products (alcohol, tobacco, adult content, age-restricted supplements, etc.) as age-restricted and configure exactly how age verification is presented to visitors.
Features

Mark any simple or variable product as age-restricted from the standard product edit screen — no new post type, no extra database tables.
Configurable minimum age (18, 21, or any custom value).
A responsive, accessible age-verification modal shown on restricted product pages before the content is visible, with a configurable title, message, minimum age, confirm button, and exit button.
Exit button can redirect to the homepage, a custom URL, or any WordPress page.
Visitor confirmation is remembered via a lightweight cookie for a configurable number of days (or just the current browser session), so the modal doesn’t repeat on every page view.
Optional age-restriction badge on shop/archive listing pages (e.g. “18+ Age Restricted”).
Optional warning message below the Add to Cart button on restricted product pages.
Optional warning notice on the Cart and Checkout pages when a restricted product is in the cart — works with both the classic Cart/Checkout pages and the block-based Cart/Checkout.
Configurable colors (badge, warning messages, modal accent) and text size, using the native WordPress color picker — no CSS editing required.
Translation-ready: every string is wrapped for translation, a .pot file is included, and translations are bundled for German, French, Spanish, Swedish, Danish, Norwegian, and Hindi.
Built with the WordPress Settings API, nonces on all form submissions, sanitized/escaped input and output throughout, and WooCommerce hooks only (no template overrides).
Cache-friendly: the modal is rendered identically for every visitor and toggled purely client-side, so it will not break full-page caching.

How it works

Edit any product and check “Age-restricted product” in the Product Data → General tab.
Configure your minimum age, modal copy, and display options under WooCommerce → Age Restriction.
Visitors who open a restricted product page see the age-verification modal first. Confirming lets them view the page (remembered via cookie); exiting redirects them away.
Optional badges and warning messages reinforce the restriction on listing pages, the product page, and cart/checkout.

文章
Filter
Mastodon