Gå til hovedindhold
WooCommerce

Examples

Real-world configuration examples showing how the age gate behaves across different store setups.

Examples

These examples show common store configurations and exactly what you will see in the WordPress admin product and category lists.

The Age gate column in both lists shows a status badge for every item at a glance. The badge types are:

BadgeColourMeaning
Store-wide (N+)BlueAll-products scope active; item uses the store-wide default age
Via category (N+)OrangeItem is gated because of its category setting
Override (N+)GreenA product-level age override is active
Gated (N+)GreenProduct is explicitly marked for verification
GreyNo age requirement on this item

Example 1 — Simple: all products gated at 18

Use case: A wine shop. Every product in the store requires age verification.

Settings:

  • Scope: All products
  • Required Age: 18

Products list

ProductPriceAge gate
Sauvignon Blanc89 krStore-wide (18+)
Cabernet Sauvignon120 krStore-wide (18+)
Rosé75 krStore-wide (18+)
Wine glass set199 krStore-wide (18+)

All products show Store-wide (18+) — no individual product configuration needed.


Example 2 — Mixed store: only some products gated

Use case: A deli that sells wine and food. Only alcohol products require verification.

Settings:

  • Scope: Selected products & categories
  • Required Age: 18
  • Category Wine ticked in the category grid (or age verification enabled on the Wine category edit screen)

Categories list

CategoryCountAge gate
Wine24Gated — store default (18+)
Cheese18
Charcuterie12
Condiments30

Products list

ProductCategoryAge gate
Sauvignon BlancWineVia category (18+)
Cabernet SauvignonWineVia category (18+)
Aged CheddarCheese
ProsciuttoCharcuterie
Dijon MustardCondiments

Wine products are gated via their category. Food products show and pass through checkout without any verification.


Example 3 — Age tiers: different minimum ages per category

Use case: A drinks shop selling both beer (18+) and spirits (21+ in-store policy). One product has a custom override.

Settings:

  • Scope: Selected products & categories
  • Required Age: 18 (store default, used as fallback)
  • Category Beer → Age verification enabled, category age 18
  • Category Spirits → Age verification enabled, category age 21

Categories list

CategoryCountAge gate
Beer40Gated (18+)
Spirits55Gated (21+)
Mixers15
Snacks22

Products list

ProductCategoryPer-product overrideAge gate
Carlsberg 6-packBeerVia category (18+)
Tuborg GoldBeerVia category (18+)
Famous GrouseSpiritsVia category (21+)
Grey Goose VodkaSpiritsVia category (21+)
Aged Armagnac 1990Spirits25Override (25+)
Cola 1.5LMixers
Mixed NutsSnacks

The Armagnac has a product-level override of 25 — this beats the category age of 21. A customer who verified as 22 years old can buy whisky, but cannot buy the Armagnac.

If a product belongs to both Beer and Spirits (unlikely but possible), the highest category age wins — so it would require 21+.


Example 4 — Store-wide with individual product exceptions

Use case: A tobacconist. Everything requires 18+ by default, but premium cigars require 21+ per store policy.

Settings:

  • Scope: All products
  • Required Age: 18
  • Two products have a per-product override of 21

Products list

ProductPer-product overrideAge gate
Marlboro RedStore-wide (18+)
Rolling papersStore-wide (18+)
Cohiba Behike 5421Override (21+)
Romeo y Julieta Churchill21Override (21+)
LighterStore-wide (18+)

The two premium cigars require a verified age of 21. All other products use the store default of 18. No category configuration needed.


Example 5 — Multiple categories, one product in several

Use case: An online spirits shop that also tags products by region.

Settings:

  • Scope: Selected products & categories
  • Category Spirits → gated, age 18
  • Category Whisky → gated, age 18
  • Category Scottish → not gated (used for filtering only)

Categories list

CategoryAge gate
SpiritsGated (18+)
WhiskyGated (18+)
Scottish
Irish

Products list

A whisky tagged in both Spirits and Whisky (two gated categories, both 18+):

ProductCategoriesAge gate
Glenfiddich 12yrSpirits, Whisky, ScottishVia category (18+)

Both Spirits and Whisky are gated at 18 — the plugin takes the highest, which is still 18.

Now if Whisky were raised to 21+:

ProductCategoriesAge gate
Glenfiddich 12yrSpirits (18+), Whisky (21+), ScottishVia category (21+)

The highest category age (21) wins automatically — no change needed on the product itself.


Summary: how the badge is determined

Is scope set to "All products"?
  Yes → badge shows Store-wide (N+)
        unless product has override → Override (N+)
        unless product's category has age override → Via category (N+)

Is scope set to "Selected products & categories"?
  Product not gated, not in gated category → —
  Product in gated category, no override → Via category (N+)
  Product explicitly marked → Gated (N+)
  Product has age override → Override (N+)

For more detail on the resolution order, see Products & Categories.

On this page