=== YeeVisibility - Product Visibility for WooCommerce === Contributors: addonsorg Tags: woocommerce, product visibility, restrict access, hide products, user role Tested up to: 6.9 Stable tag: 1.0.1 WC requires at least: 4.0 WC tested up to: 10.5 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Control WooCommerce product visibility based on user roles, geo location, cart contents, purchase history, and more. == Description == **YeeVisibility - Product Visibility for WooCommerce** gives you complete control over who can see and purchase your products. Create powerful rules to hide products, restrict access, or build exclusive VIP-only areas — all without writing a single line of code. The plugin is designed to be lightweight, easy to use, and fully compatible with **WooCommerce High Performance Order Storage (HPOS)** and modern **Checkout Blocks**. Document: ### Visibility Actions * **Hide Completely**: Remove products from Shop, Category pages, Search results, and Related Products. The product becomes invisible. * **Restrict Access**: Products remain visible in the catalog, but the single product page is blocked. Choose to redirect users or show a custom message. * **Show (Whitelist)**: Only show products to users who match specific conditions. Everyone else is automatically excluded. ### Flexible Targeting Apply rules to exactly what you need: * **All Products** — Global rules that apply store-wide. * **Specific Products** — Target individual products by Name or ID. * **Categories** — Hide or restrict entire product categories. * **Tags** — Target products by tag. * **Brands** — Restrict specific brands (requires a brand taxonomy). * **Attributes** — Target by product attributes (e.g., Color, Size). ### Advanced Conditions Combine multiple conditions to create complex, powerful rules: * **User Role**: Restrict to VIPs, Wholesalers, Administrators, Subscribers, or Guests. * **Geo Location (Country / State)**: Restrict visibility by country or state/province (e.g., "California Residents Only"). * **Cart Total**: Reveal exclusive products when cart value exceeds a threshold (e.g., "Spend $500 to unlock a free gift"). * **Cart Contains Product**: Cross-sell logic (e.g., "Show Lens Kit only when Camera is in cart"). * **Purchase History (Specific Product)**: Loyalty upsells (e.g., "Show Advanced Course only if Basic Course was purchased"). * **Purchase History (Any Product)**: Reward returning customers (e.g., "Reserve low-stock items for previous buyers"). * **Stock Status**: Automatically hide low-stock items from new visitors, reserving them for loyal customers. * **Date & Time**: Schedule product launches or limited-time visibility windows. * **User ID**: Target specific users by their WordPress User ID. * **Login Status**: Differentiate between logged-in users and guests. ### Global Settings * **Hide from Search**: Automatically exclude restricted products from WordPress and WooCommerce search results. * **Hide from Catalog**: Remove restricted products from Shop and Category archive pages. * **Global Redirect URL**: Set a default fallback URL for users who attempt to access restricted content. * **Access Denied Message**: Configure a global message displayed when access is restricted. * **Allow Search Bots**: Optionally let Google/Bing index hidden product pages for SEO while keeping them hidden from normal users. == Installation == 1. Upload the plugin folder to `/wp-content/plugins/` 2. Activate **YeeVisibility - Product Visibility for WooCommerce** 3. Go to **WooCommerce > Settings > Product Visibility** to configure settings and create rules. == Screenshots == 1. **Rule Editor**: Intuitive interface for creating visibility rules with conditions. 2. **Global Settings**: Configure search hiding, redirect URLs, and bot access. == Changelog == = 1.0.0 = * Initial release. * Feature: Hide products completely or restrict access with redirect/message. * Feature: Show (Whitelist) action for exclusive product visibility. * Feature: Target by Product, Category, Tag, Brand, Attribute, or All Products. * Feature: Conditions — User Role, Geo Location, Cart Total, Cart Contains, Purchase History, Stock Status, Date/Time, User ID, Login Status. * Feature: Global Settings — Search/Catalog hiding, Redirect URL, Bot access control. * Feature: Built-in HTML documentation with 6 step-by-step examples.