=== Store Restriction for WooCommerce – Advanced B2B, Wholesale & Content Visibility Control ===
Contributors: woosofts
Tags: woocommerce, restrict products, wholesale, b2b, visibility, hide category, country restriction, private shop, catalog visibility, members only
Requires at least: 5.0
Tested up to: 7.0
Stable tag: 1.4.1
Requires PHP: 7.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Securely hide products and categories by user role or country. Perfect for B2B, wholesale, and private membership stores.

== Description ==

🚀 **Premium Addons for Your Store:**
*   [Conditional Store Restrictions (PRO)](https://woocommerce.com/products/conditional-store-restrictions/) - The ultimate access control engine for WooCommerce.
*   [Price & Cart Hider (PRO)](https://woocommerce.com/products/price-cart-hider/) - Professional Catalog Mode & B2B pricing control.


**Store Restriction for WooCommerce** by [VerseSofts](https://woocommerce.com/vendor/versesofts/) is a high-performance visibility engine designed specifically for serious e-commerce businesses. Whether you are building a Private Wholesale Shop, a dedicated Membership-only Boutique, or a Global Store with regional compliance requirements, this plugin provides the professional architecture needed to hide products and categories with precision.

Unlike basic visibility plugins that only hide links, our robust logic hooks deep into the native WooCommerce query engine. This ensures that restricted products vanish entirely from Search Results, Related Products, Shop Loops, and Category Archives, providing a truly private and secure shopping environment.

[youtube https://youtu.be/TzDIZqcqY6c?si=-hfhHMDKaCwkAO1s] 

### 💼 Optimized B2B & Wholesale Performance

Running a professional B2B store requires more than just hiding a price. You need to securely control the entire catalog flow automatically to protect your dealer margins and proprietary product lines.
*   **Wholesale Catalog Management:** Create a "Wholesale" role and show them bulk items while automatically hiding retail-only products from unauthorized eyes.
*   **Dealer-Only Sections:** Restrict high-value or regulated products to manually verified dealers only, ensuring exclusive access to your most important inventory.
*   **Guest-Hidden Stores:** Automatically hide your entire store catalog from guest users, forcing them to register or login to a "Private Shop" environment before viewing anything.
*   **B2B Catalog Mode:** Use our logic beautifully alongside Price Hiding tools to create a powerful inquiry-only catalog for unauthorized users.

### 🌍 Global Geo-Restriction (Country-Based) Visibility

Scale your ecommerce business seamlessly across borders while staying fully legally compliant with regional laws.
*   **Regional Exclusives:** Show specific products exclusively to customers in the UK, USA, or any other defined region while hiding them elsewhere.
*   **Compliance Control:** Automatically hide restricted items (like alcohol, regulated substances, or electronics with specific regional certifications) from countries where they cannot be legally sold.
*   **IP-Based Accuracy:** Uses ultra-fast IP detection to ensure users are identified correctly instantly without slowing down your page load times.

### 🚀 Key Performance Features for Growth

*   **Native WooCommerce Integration:** No custom database tables or slow queries. It works flawlessly within the native Woo infrastructure for maximum speed.
*   **Universal Compatibility:** Rigorously tested with the most popular themes like Astra, Hello Elementor, Divi, and WoodMart.
*   **Premium Admin UI:** Manage complex visibility rules through a beautiful, streamlined interface inside your WooCommerce settings panel.
*   **Role-Based Category Hiding:** Hide entire departments or nested categories with one click for specific customer groups.

### Why Choose VerseSofts?
As your store grows, managing visibility becomes more complex. Our plugins are built to handle thousands of products and numerous roles without performance degradation. For over a decade, store owners have trusted our architecture to secure their catalogs and grow their B2B operations.

Explore our full range of solutions on our [Official WooCommerce Marketplace Profile](https://woocommerce.com/vendor/versesofts/).

== Installation ==

1. Go to **Plugins > Add New** in your WordPress dashboard.
2. Search for **Store Restriction for WooCommerce**.
3. Click **Install Now** and then **Activate**.
4. Navigate to **WooCommerce > Settings > Store Restriction** to start configuring your access rules.

== Frequently Asked Questions ==

= How do I hide WooCommerce products for specific user roles? =
Navigate to the "Role Based" tab inside the WooCommerce settings. Select the target role (e.g., Guest or Customer), then search and select the exact products or categories you wish to hide.

= Can I hide products from specific countries? =
Yes! Using the "Country Based" tab, you can select any country and define which products or categories should be hidden from visitors in that region.

= Is this compatible with HPOS (High-Performance Order Storage)? =
Yes, the plugin is fully compatible with WooCommerce's latest standards, including HPOS and Blocks.

= Can I hide my whole store and only show it to logged-in users? =
Yes. Simply access the "Global Settings" tab and enable the master toggle to restrict all content for guest users.

== Screenshots ==

1. Professional Dashboard Overview - Monitor your active conditional rules at a glance.
2. Role-Based Rules - Powerful selectors to securely hide products from specific users.
3. Country-Based UI - Manage global geo-restrictions seamlessly.
4. Global Settings - One-click master control over store visibility.

== Changelog ==

= 1.4.1 =
*   Updated: Fully tested and compatible with WordPress 7.0.
*   Improved: Documentation links and official marketplace cross-promotion.

= 1.4.0 =
*   New: Ultra-Premium UI Overhaul with SaaS-grade aesthetics.
*   Improved: Sidebar hierarchy and admin console navigation speed.

== Upgrade Notice ==

Always update to the latest version to enjoy the latest features, security patches, and performance improvements.