{"id":236255,"date":"2025-06-18T05:32:40","date_gmt":"2025-06-18T05:32:40","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/buyguard-for-woocommerce\/"},"modified":"2025-06-18T05:38:03","modified_gmt":"2025-06-18T05:38:03","slug":"buyguard-for-woocommerce","status":"closed","type":"plugin","link":"https:\/\/ru.wordpress.org\/plugins\/buyguard-for-woocommerce\/","author":14217876,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.1.0","stable_tag":"1.1.0","tested":"6.8.5","requires":"5.6","requires_php":"7.3","requires_plugins":null,"header_name":"BuyGuard for WooCommerce","header_author":"Themology","header_description":"Restrict product purchases based on user roles, product categories, and quantity rules with custom messages.","assets_banners_color":"5c8393","last_updated":"2025-06-18 05:38:03","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/themology.com\/buyguard-for-woocommerce","header_author_uri":"https:\/\/themology.com\/","rating":0,"author_block_rating":0,"active_installs":0,"downloads":282,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.1.0":{"tag":"1.1.0","author":"themology","date":"2025-06-18 05:38:03"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":3313606,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":3313606,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":3313606,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":3313606,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.1.0"],"block_files":[],"assets_screenshots":{"screenshot-1.gif":{"filename":"screenshot-1.gif","revision":3313606,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":3313606,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":3313606,"resolution":"3","location":"assets","locale":""},"screenshot-4.png":{"filename":"screenshot-4.png","revision":3313606,"resolution":"4","location":"assets","locale":""}},"screenshots":{"1":"Rule management interface","2":"Creating a new restriction rule","3":"General settings","4":"Frontend view of restricted product"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[1932,1505,1925,51032,286],"plugin_category":[45,58],"plugin_contributors":[83526],"plugin_business_model":[],"class_list":["post-236255","plugin","type-plugin","status-closed","hentry","plugin_tags-membership","plugin_tags-restriction","plugin_tags-user-role","plugin_tags-wholesale","plugin_tags-woocommerce","plugin_category-ecommerce","plugin_category-user-management","plugin_contributors-themology","plugin_committers-themology"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/buyguard-for-woocommerce_5c8393.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/buyguard-for-woocommerce\/assets\/screenshot-1.gif?rev=3313606","caption":"Rule management interface"},{"src":"https:\/\/ps.w.org\/buyguard-for-woocommerce\/assets\/screenshot-2.png?rev=3313606","caption":"Creating a new restriction rule"},{"src":"https:\/\/ps.w.org\/buyguard-for-woocommerce\/assets\/screenshot-3.png?rev=3313606","caption":"General settings"},{"src":"https:\/\/ps.w.org\/buyguard-for-woocommerce\/assets\/screenshot-4.png?rev=3313606","caption":"Frontend view of restricted product"}],"raw_content":"<!--section=description-->\n<p>BuyGuard for WooCommerce gives store owners powerful control over who can purchase products and in what quantities. Perfect for wholesale, membership, and B2B stores.<\/p>\n\n<h4>Key Features<\/h4>\n\n<ul>\n<li><strong>Role-Based Restrictions<\/strong>: Limit products to specific user roles.<\/li>\n<li><strong>Category-Based Rules<\/strong>: Apply restrictions to entire product categories.<\/li>\n<li><strong>Quantity Rules<\/strong>: Set minimum and maximum purchase quantities.<\/li>\n<li><strong>Customizable Messages<\/strong>: Show custom messages to restricted users.<\/li>\n<li><strong>Visual Controls<\/strong>: Hide product prices and \"Add to Cart\" buttons.<\/li>\n<li><strong>Product Visibility<\/strong>: Optionally hide restricted products completely.<\/li>\n<li><strong>Guest User Controls<\/strong>: Configure permissions for non-logged-in users.<\/li>\n<li><strong>Rule Scheduling<\/strong>: Set start and end dates for restriction rules.<\/li>\n<li><strong>Rule Priority<\/strong>: Control how multiple rules interact.<\/li>\n<li><strong>Easy Management<\/strong>: Intuitive interface for creating and managing rules.<\/li>\n<li><strong>Cart Validation<\/strong>: Server-side validation on cart and checkout pages.<\/li>\n<li><strong>Debug Mode<\/strong>: Optional debug mode for troubleshooting.<\/li>\n<\/ul>\n\n<h4>Perfect For<\/h4>\n\n<ul>\n<li><strong>Wholesale stores<\/strong> that need to restrict regular customers from wholesale pricing.<\/li>\n<li><strong>Membership sites<\/strong> that offer exclusive products to members.<\/li>\n<li><strong>B2B businesses<\/strong> that need to limit certain products to business customers.<\/li>\n<li><strong>Stores with quantity requirements<\/strong> for certain product lines.<\/li>\n<li><strong>Tiered customer programs<\/strong> with different purchasing privileges.<\/li>\n<\/ul>\n\n<h4>Technical Features<\/h4>\n\n<ul>\n<li>HPOS Compatible (High-Performance Order Storage).<\/li>\n<li>Compatible with WooCommerce Blocks.<\/li>\n<li>Clean, well-documented code.<\/li>\n<li>Performance optimized.<\/li>\n<li>Responsive design.<\/li>\n<li>Translation ready.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload the <code>buyguard-for-woocommerce<\/code> folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Go to WooCommerce &gt; Settings &gt; BuyGuard to configure your BuyGuard rules<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"will%20this%20work%20with%20my%20theme%3F\"><h3>Will this work with my theme?<\/h3><\/dt>\n<dd><p>Yes! BuyGuard for WooCommerce is designed to be compatible with any properly coded WooCommerce theme.<\/p><\/dd>\n<dt id=\"can%20i%20restrict%20access%20to%20certain%20products%3F\"><h3>Can I restrict access to certain products?<\/h3><\/dt>\n<dd><p>Absolutely! You can restrict individual products or entire product categories to specific user roles.<\/p><\/dd>\n<dt id=\"how%20do%20i%20set%20minimum%20quantities%3F\"><h3>How do I set minimum quantities?<\/h3><\/dt>\n<dd><p>Create a restriction rule, select your products or categories, specify the minimum quantity, and choose which user roles can purchase those quantities.<\/p><\/dd>\n<dt id=\"can%20i%20hide%20products%20completely%20from%20unauthorized%20users%3F\"><h3>Can I hide products completely from unauthorized users?<\/h3><\/dt>\n<dd><p>Yes, you can choose to hide restricted products entirely from catalog pages for unauthorized users.<\/p><\/dd>\n<dt id=\"will%20this%20work%20with%20other%20woocommerce%20extensions%3F\"><h3>Will this work with other WooCommerce extensions?<\/h3><\/dt>\n<dd><p>BuyGuard for WooCommerce is designed to be compatible with most WooCommerce extensions.<\/p><\/dd>\n<dt id=\"is%20it%20hpos%20compatible%3F\"><h3>Is it HPOS compatible?<\/h3><\/dt>\n<dd><p>Yes, BuyGuard is fully compatible with WooCommerce High-Performance Order Storage (HPOS).<\/p><\/dd>\n<dt id=\"how%20do%20i%20debug%20issues%20with%20the%20plugin%3F\"><h3>How do I debug issues with the plugin?<\/h3><\/dt>\n<dd><p>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 &gt; Logs section.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.1.0<\/h4>\n\n<ul>\n<li><strong>Enhanced Security<\/strong>: Improved nonce verification and user capability checks throughout the plugin<\/li>\n<li><strong>Performance Optimization<\/strong>: Added WordPress object cache flushing to prevent stale data issues<\/li>\n<li><strong>Code Refactoring<\/strong>: Removed direct inline CSS\/JS in favor of proper WordPress enqueuing methods<\/li>\n<li><strong>Improved UI<\/strong>: Better error handling and feedback during rule management<\/li>\n<li><strong>Fixed<\/strong>: Intermittent issue when saving rules where updates would occasionally fail<\/li>\n<li><strong>Fixed<\/strong>: Cache consistency issues when managing multiple rules<\/li>\n<li><strong>Fixed<\/strong>: Error messages now properly escaped for security and translation<\/li>\n<li><strong>Added<\/strong>: Better internationalization support with translator comments for placeholders<\/li>\n<li><strong>Added<\/strong>: Cache buster parameters to admin redirects to prevent browser caching issues<\/li>\n<li><strong>Compliance<\/strong>: Added \"Requires Plugins\" header to explicitly declare WooCommerce dependency<\/li>\n<li><strong>Technical<\/strong>: Added more comprehensive validation for form inputs<\/li>\n<li><strong>Technical<\/strong>: Enhanced error logging for easier troubleshooting<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Restrict WooCommerce product purchases based on user roles, product categories, and quantity rules.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/236255","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=236255"}],"author":[{"embeddable":true,"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/themology"}],"wp:attachment":[{"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=236255"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=236255"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=236255"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=236255"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=236255"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ru.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=236255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}