The gate does not appear
- Is it switched on? Ask visitors to confirm their age is off after installing.
- Is anything restricted? In the default scope, Only on restricted products, nothing is gated until a product is set to Always ask (full edition: or is in a restricted category, or has its own age).
- Have you already confirmed? The cookie
gmav_oklasts 30 days (full edition: your setting). Test in a private window. - Is your browser's user agent a crawler's? Some testing tools send a bot user agent, which is exempt.
- Full edition: is your role in Roles that are never asked?
I see the gate, but I am the shop owner
Free edition: everybody except search engines is asked, administrators included. Confirm once; your browser remembers. Full edition: add administrator, shop_manager to Roles that are never asked.
Does it work with page caching?
Yes. The gate's markup is identical for everybody, so a cached page is correct, and the head snippet hides the gate for a visitor whose cookie already covers the page. Answering the gate posts a form, which page caches do not serve from cache. If a cache plugin minifies or delays inline scripts, exclude the small gmav_ok snippet so it still runs in the <head>.
Will it hide my shop from Google?
No. Search-engine crawlers are exempt in every scope: no gate, and products behave normally.
Can somebody buy a restricted product by crafting a URL?
No. Until the visitor has confirmed, the product is not purchasable and add-to-cart is refused on the server.
Does it work with the Cart and Checkout blocks?
Enforcement does: the blocks and the Store API use WooCommerce's "purchasable" answer and cart checks, so an unconfirmed visitor cannot buy a restricted product there.
The order record is written on both: on the classic checkout (woocommerce_checkout_create_order) and on the Checkout block (woocommerce_store_api_checkout_update_order_from_request).
Full edition: the checkout tick box (Ask again at the checkout) is on both. On the classic checkout it is printed above Place order; on the Checkout block it is a WooCommerce additional checkout field in the order section, shown and required only while the cart holds a restricted product, and an order placed without it ticked is refused on the server. The block shows one sentence for every cart, so it names no age: "I confirm I am old enough to buy the age-restricted products in my order.", or your own wording when it contains no {age}. That sentence is what the order records.
Does it work with HPOS?
Yes. The record is written and read through WooCommerce's order API.
A visitor said "No" by mistake
They press Try again and answer again. Saying no only removes their cookie.
I raised the minimum age and everyone is asked again
That is intended. The cookie stores the age the visitor confirmed; a confirmation for 18 does not cover 21.
Does it store a date of birth?
No. Full edition: the date-of-birth gate works out the age on the server and discards the date. Only the confirmed age goes into the cookie.
Is this an identity check?
No — no age gate is. It records what a visitor declared and when.
I am moving from the free edition to the full edition
Install and activate the full edition. Both editions use the same gmav_settings option, the same _gmav_mode product meta, the same gmav_ok cookie and the same order meta, so your configuration, every product switch, every visitor's confirmation and every order record carry over. The free edition stands down while the full edition is active.
What happens when I uninstall?
- Full edition: deleting it removes
gmav_settings,gmav_license, the cached update data, the licence cron event, and the_gmav_modeand_gmav_min_agemeta on products and categories. - Free edition: deleting it removes
gmav_settingsand the_gmav_modeproduct meta — but only if the full edition has never been licensed on the site. It never removes a full-edition age.
Neither edition ever removes the age record on an order. Visitors' cookies expire on their own.
Does it contact any external service?
The free edition makes no requests. The full edition contacts gatemi.com for licence checks and updates once a licence key is entered.
