BuyGuard for WooCommerce
Restrict WooCommerce product purchases based on user roles, product categories, and quantity rules.
Plugin info
Maintenance & Compatibility
Maintenance score
Stale • Last updated 196 days ago
Is BuyGuard for WooCommerce abandoned?
Likely maintained (last update 196 days ago).
Compatibility
Similar & Alternatives
Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.
Description
BuyGuard for WooCommerce gives store owners powerful control over who can purchase products and in what quantities. Perfect for wholesale, membership, and B2B stores.
Key Features
- Role-Based Restrictions: Limit products to specific user roles.
- Category-Based Rules: Apply restrictions to entire product categories.
- Quantity Rules: Set minimum and maximum purchase quantities.
- Customizable Messages: Show custom messages to restricted users.
- Visual Controls: Hide product prices and “Add to Cart” buttons.
- Product Visibility: Optionally hide restricted products completely.
- Guest User Controls: Configure permissions for non-logged-in users.
- Rule Scheduling: Set start and end dates for restriction rules.
- Rule Priority: Control how multiple rules interact.
- Easy Management: Intuitive interface for creating and managing rules.
- Cart Validation: Server-side validation on cart and checkout pages.
- Debug Mode: Optional debug mode for troubleshooting.
Perfect For
- Wholesale stores that need to restrict regular customers from wholesale pricing.
- Membership sites that offer exclusive products to members.
- B2B businesses that need to limit certain products to business customers.
- Stores with quantity requirements for certain product lines.
- Tiered customer programs with different purchasing privileges.
Technical Features
- HPOS Compatible (High-Performance Order Storage).
- Compatible with WooCommerce Blocks.
- Clean, well-documented code.
- Performance optimized.
- Responsive design.
- Translation ready.
Installation
- Upload the
buyguard-for-woocommercefolder to the/wp-content/plugins/directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- Go to WooCommerce > Settings > BuyGuard to configure your BuyGuard rules
Frequently Asked Questions
Yes! BuyGuard for WooCommerce is designed to be compatible with any properly coded WooCommerce theme.
Absolutely! You can restrict individual products or entire product categories to specific user roles.
Create a restriction rule, select your products or categories, specify the minimum quantity, and choose which user roles can purchase those quantities.
Yes, you can choose to hide restricted products entirely from catalog pages for unauthorized users.
BuyGuard for WooCommerce is designed to be compatible with most WooCommerce extensions.
Yes, BuyGuard is fully compatible with WooCommerce High-Performance Order Storage (HPOS).
The plugin includes a debug mode that can be enabled in the settings. When enabled, it will log detailed information about rule processing and restrictions, which can be viewed in the WooCommerce Status > Logs section.
Review feed
Changelog
1.1.0
- Enhanced Security: Improved nonce verification and user capability checks throughout the plugin
- Performance Optimization: Added WordPress object cache flushing to prevent stale data issues
- Code Refactoring: Removed direct inline CSS/JS in favor of proper WordPress enqueuing methods
- Improved UI: Better error handling and feedback during rule management
- Fixed: Intermittent issue when saving rules where updates would occasionally fail
- Fixed: Cache consistency issues when managing multiple rules
- Fixed: Error messages now properly escaped for security and translation
- Added: Better internationalization support with translator comments for placeholders
- Added: Cache buster parameters to admin redirects to prevent browser caching issues
- Compliance: Added “Requires Plugins” header to explicitly declare WooCommerce dependency
- Technical: Added more comprehensive validation for form inputs
- Technical: Enhanced error logging for easier troubleshooting
1.0.0
- Initial release



