=== CodeAtoZ Hide Prices for WooCommerce ===
Contributors: codeatoz
Tags: woocommerce, hide price, hide add to cart, b2b, wholesale, catalog mode, price visibility
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.2.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

== Short Description ==
Hide WooCommerce product prices and Add to Cart buttons using flexible rule-based conditions — ideal for B2B, wholesale, and catalog-mode stores.

== Description ==

CodeAtoZ – Hide Price for Stores gives WooCommerce store owners complete control over product price visibility.

Whether you're running a B2B store, wholesale platform, members-only shop, or catalog-mode website, this plugin allows you to hide product prices and Add to Cart buttons based on flexible rule conditions — without breaking WooCommerce functionality.

Unlike CSS-based hiding methods, this plugin applies server-side logic to securely remove prices across:

• Shop pages  
• Product pages  
• Category pages  
• WooCommerce REST API  
• WooCommerce Store API  

Perfect for:

• B2B & wholesale stores  
• Member-only pricing models  
• Catalog-only WooCommerce stores  
• Quote-based businesses  
• Private or restricted pricing models  

Lightweight. Secure. Clean integration.

---

== Features ==

= Flexible Rule Engine =
Create multiple rules with priority control.

= Hide Prices by User Type =
• Guests  
• Logged-in users  
• Specific user roles  

= Product & Category Targeting =
Apply rules to:
• Specific products  
• Selected categories  
• Entire store  

= Hide Add to Cart Button =
Remove purchasing capability when prices are hidden.

= Custom Replacement Text =
Display a custom message instead of price:
• "Login to view price"
• "Request a quote"
• "Contact us for pricing"

= Secure Server-Side Enforcement =
Prevents price exposure via inspection tools.

= WooCommerce API Safe =
Fully compatible with REST API and headless setups.

---

== Rule Configuration Guide ==

= Rule Name =
Internal reference name visible in admin.

= Enable Rule =
Activate or deactivate the rule.

= Priority =
Lower number = higher priority.
Rules are evaluated in ascending order.

= User Condition =
Apply rule to guests or logged-in users.

= User Roles =
Select specific WordPress roles.
Supports custom roles created by other plugins.

= Product IDs =
Comma-separated product IDs.
Leave empty to apply globally.

= Product Categories =
Select categories to restrict rule scope.

= Hide Add to Cart Button =
Removes purchase button when enabled.

= Replacement Text =
Custom message shown instead of price.

Rules are evaluated server-side during WooCommerce price rendering.

---

== Installation ==

1. Install via WordPress Plugin Directory or upload manually.
2. Activate the plugin.
3. Navigate to WooCommerce → Hide Price.
4. Create and configure rules.
5. Save and test on frontend.

---

== Frequently Asked Questions ==

= Does this work with variable products? =
Yes.

= Does this hide prices in WooCommerce REST API? =
Yes.

= Can I create a catalog-only store? =
Yes. Enable a global rule hiding price and Add to Cart.

= Does it use CSS to hide prices? =
No. It uses secure server-side logic.

= Will it slow down my store? =
No. It is lightweight and optimized.

---

== Support ==

Need assistance?

Please use the WordPress.org support forum for this plugin.

Before requesting support:

• Ensure WordPress and WooCommerce are updated  
• Verify no theme conflicts  
• Confirm latest plugin version  

We actively maintain and improve this plugin.

---

== Future Roadmap ==

Upcoming improvements may include:

• Advanced AND/OR rule logic  
• Scheduled visibility rules  
• Rule export/import  
• Enhanced UI improvements  
• Additional compatibility enhancements  

User feedback helps shape development.

---

== Screenshots ==

1. Rule list – Manage multiple visibility rules with priority.
2. Rule editor – Configure user roles, products, and categories.
3. Guest pricing restriction – Example frontend view.
4. Category-based hiding – Target specific product groups.
5. Admin menu integration – WooCommerce → Hide Price.

---
 
== Changelog ==

= 1.0.0 =
* Initial stable release
* Flexible rule engine
* Role-based visibility
* Category & product targeting
* REST API compatibility
