Get Plugin
DocsBuyGuardConfiguration

Configuration

Configure BuyGuard restrictions on your WooCommerce products.

This guide explains how to set up product restrictions with BuyGuard.

Global settings

Navigate to WooCommerce > Settings > BuyGuard to configure:

Default behavior

OptionDescription
Default AccessAllow or deny access by default
Hide RestrictedWhether to hide or show disabled products
Message DisplayWhere to show restriction messages
Scroll to see all columns →

Restriction messages

Customize messages shown to customers when they cannot purchase:

  • Product not available message
  • Quantity limit message
  • Role restriction message

Creating restrictions

Product-level restrictions

  • Edit any WooCommerce product
  • Find the BuyGuard panel
  • Enable restrictions
  • Configure rules

Category-level restrictions

  • Go to Products > Categories
  • Edit a category
  • Configure BuyGuard settings for the entire category

Rule types

Role-based access

Restrict products to specific user roles:

Allowed Roles: wholesale_customer, administrator
Action: Hide from others

Quantity limits

Set minimum and maximum purchase quantities:

Minimum: 10
Maximum: 100
Per Order / Per Day / Per Week

User-specific rules

Create rules for individual users:

User: john@example.com
Can Purchase: Yes
Maximum: 50 per month

Priority and conflicts

When multiple rules apply:

  • User-specific rules take highest priority
  • Product rules override category rules
  • Deny rules override allow rules

Testing

Always test your restrictions:

  • Log out or use an incognito window
  • Switch between different user roles
  • Verify products show/hide correctly
  • Test purchase limits at checkout