Descripción
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.
Capturas
Instalación
- Upload the
buyguard-for-woocommerce
folder 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
FAQ
-
Will this work with my theme?
-
Yes! BuyGuard for WooCommerce is designed to be compatible with any properly coded WooCommerce theme.
-
Can I restrict access to certain products?
-
Absolutely! You can restrict individual products or entire product categories to specific user roles.
-
How do I set minimum quantities?
-
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.
-
Will this work with other WooCommerce extensions?
-
BuyGuard for WooCommerce is designed to be compatible with most WooCommerce extensions.
-
Is it HPOS compatible?
-
Yes, BuyGuard is fully compatible with WooCommerce High-Performance Order Storage (HPOS).
-
How do I debug issues with the plugin?
-
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.
Reseñas
No hay valoraciones para este plugin.
Colaboradores y desarrolladores
«BuyGuard for WooCommerce» es un software de código abierto. Las siguientes personas han colaborado con este plugin.
ColaboradoresTraduce «BuyGuard for WooCommerce» a tu idioma.
¿Interesado en el desarrollo?
Revisa el código , echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.
Registro de cambios
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