=== Hide Price Button Lite for WooCommerce ===
Contributors: wpkoders
Tags: woocommerce, hide price, b2b, wholesale, catalog mode
Requires at least: 5.0
Tested up to: 7.0
Stable tag: 1.0.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Hide WooCommerce prices and the Add to Cart button for guests or a chosen user role. Show custom replacement text. HPOS and Blocks ready.

== Description ==

**Hide Price Button Lite for WooCommerce** is the simple, fast way to require login before customers see prices on your WooCommerce store. Flip one toggle and every product price is replaced with text of your choosing (for example, "Login to see price"), and the Add to Cart button is hidden until the visitor logs in. Optionally apply the same rules to one extra user role on top of guests, so wholesale or member tiers stay protected too.

Built by [WPKoders](https://woocommerce.com/vendor/wpkoders/), a WooCommerce Marketplace vendor. No tracking, no calls home, no account required.

= Perfect for these scenarios =

* **Wholesale and B2B stores** that require customer login before showing trade prices
* **Members-only shops** where prices are part of the membership benefit
* **Trade and contractor stores** where retail visitors should not see cost-level pricing
* **Distributors with NDA or contract pricing** on customer-specific catalogs
* **Catalog-mode storefronts** that show products as a brochure without checkout
* **Consultation-driven stores** where guests should reach out for a quote before seeing pricing

= Key features =

* **Hide prices for guests** — single toggle, applies site-wide
* **Hide Add to Cart for guests** — separate toggle so you can hide the price, the button, or both
* **Customisable replacement text** shown in place of the price (e.g., "Login to see price", "Members only", "Contact for pricing")
* **One additional user role** can be added to the hide rule, picked from a dropdown of your non-admin roles
* Applies everywhere WooCommerce renders a price using its **standard filters** — category pages, single product pages, related products, cross-sells, upsells, search results, widgets, blocks
* **Administrators are never affected** so you can keep managing your shop normally
* Compatible with the WooCommerce **Cart & Checkout Blocks**
* Compatible with WooCommerce **High-Performance Order Storage (HPOS)**
* Lightweight, no bloat, loads only what is needed
* No tracking, no analytics, no external calls

= How it works =

1. Install and activate the plugin from **Plugins → Add New**
2. Make sure WooCommerce is installed and active
3. Go to **WooCommerce → Hide Price** in your WordPress admin
4. Tick **Hide prices for guests** and / or **Hide Add to Cart button for guests**
5. Set the **Replacement text** that customers will see in place of the price
6. Optionally pick one **additional user role** that should see the same restriction
7. Save changes — the settings apply immediately across your shop

Done. The rules are live on both the classic WooCommerce checkout and the new Cart & Checkout Blocks.

= Upgrade to Hide Price Pro =

Need more power? **[Hide Price Pro](https://woocommerce.com/products/hide-price-button/)** on the WooCommerce Marketplace (listed there as "Hide Price & Show Custom Button") adds:

* **Per-product, per-category, or global rules** — hide prices on specific items only
* **Multiple user roles or specific customers** at once, not just one extra role
* **Restrict by country** using WooCommerce's geolocation
* **Replace Add to Cart with a custom button, link, or Request a Quote popup**
* **Custom HTML and inline enquiry popups** for lead capture
* **Multiple custom replacement messages**, configured per rule
* **Conditional cart-total logic** and **priority-based rule ordering** for advanced scenarios
* Priority email support from the WPKoders team

[Upgrade to Hide Price Pro on WooCommerce.com →](https://woocommerce.com/products/hide-price-button/)

= About WPKoders =

WPKoders is a WooCommerce Marketplace vendor with a portfolio of WordPress and WooCommerce plugins for serious store owners. See all of our plugins on the [WooCommerce vendor page](https://woocommerce.com/vendor/wpkoders/) or at [wpkoders.com](https://wpkoders.com).

== Installation ==

= From the WordPress admin =

1. Go to **Plugins → Add New** in your WordPress admin
2. Search for **Hide Price Button Lite**
3. Click **Install Now**, then **Activate**
4. Make sure WooCommerce is installed and active
5. Go to **WooCommerce → Hide Price** to configure

= Manual installation =

1. Download the plugin .zip file
2. Upload the `hide-price-button-lite` folder to `/wp-content/plugins/`
3. Activate the plugin through the **Plugins** screen in WordPress
4. Make sure WooCommerce is installed and active
5. Go to **WooCommerce → Hide Price** to configure

== Frequently Asked Questions ==

= Does this plugin require WooCommerce? =

Yes. WooCommerce must be installed and active. An admin notice will appear if WooCommerce is not detected.

= Where do prices and the Add to Cart button get hidden? =

Everywhere WooCommerce renders them using its standard filters: category pages, single product pages, related products, cross-sells, upsells, search results, widgets, and Cart & Checkout Blocks. There are no templates to override and no custom CSS to write.

= Does it hide prices for administrators too? =

No. Administrators always see prices and the Add to Cart button so you can keep managing your shop normally. Lite affects guests and (optionally) one chosen user role.

= Can I hide prices for more than one extra role at a time? =

Lite supports guests plus one additional role. For multiple roles, specific customers, or country-based rules, upgrade to [Hide Price Pro](https://woocommerce.com/products/hide-price-button/).

= Can I hide prices only on specific products or categories? =

Not in Lite — Lite applies to the whole shop. Per-product, per-category, and country-scoped control is available in the Pro version at https://woocommerce.com/products/hide-price-button/.

= Can I replace the Add to Cart button with a "Request a Quote" or custom button? =

Not in Lite. Lite hides the Add to Cart button entirely. Replacing it with a custom-URL button, a custom HTML block, or an inline Request a Quote popup is available in [Hide Price Pro](https://woocommerce.com/products/hide-price-button/).

= Does it work with the WooCommerce Cart & Checkout Blocks? =

Yes. Cart & Checkout Blocks compatibility is declared and the plugin hooks into the standard WooCommerce price and purchasability filters that the blocks themselves rely on.

= Is it compatible with High-Performance Order Storage (HPOS)? =

Yes. HPOS compatibility is declared.

= Is this plugin GDPR compliant? =

Yes. The plugin does not collect, store, or transmit any personal data. All settings are stored locally in your WordPress database. No cookies, no analytics, no calls home.

= Can I use this plugin for a wholesale or B2B store? =

Yes — that is exactly what Lite is designed for. Set the "Hide prices for guests" toggle, optionally pick the user role that represents your "Pending wholesale" or "Subscriber" tier as the extra role, and only logged-in approved customers will see prices and the Add to Cart button. For separate price tiers for different customer groups or per-product control, upgrade to Pro.

= Does the plugin send any data to external servers? =

No. Hide Price Button Lite does not phone home, does not require an account, and does not include any tracking or analytics. See the External Services section below for full transparency.

== Screenshots ==

1. Admin settings — Visibility settings page showing hide-for-guests toggles, replacement text, and role selector.
2. User role selector — extra role dropdown listing Editor, Author, Contributor, Subscriber, Customer, Shop manager.
3. Shop archive as guest — product grid showing replacement text in place of price, Add to Cart hidden.
4. Single product page as guest — replacement text on product detail with breadcrumbs, SKU, and category intact.

== External Services ==

This plugin does not connect to any external services and does not send any data outside of your WordPress site.

The only external links inside the plugin are:

* A link to the Pro version product page on the WooCommerce Marketplace (https://woocommerce.com/products/hide-price-button/), shown in the admin sidebar and the dismissible Pro notice on the settings screen.
* A link to the WPKoders vendor page (https://woocommerce.com/vendor/wpkoders/).

These links are only clicked by you (the site admin) and only when you choose to click them. No data is sent.

== Privacy Policy ==

Hide Price Button Lite for WooCommerce does not collect, store, or transmit any personal data. All settings (the toggles, the replacement text, the optional extra user role) are stored locally in your WordPress database. The plugin does not use cookies, does not include analytics, and does not call home.

== Changelog ==

= 1.0.0 =
* Initial release on WordPress.org.

== Upgrade Notice ==

= 1.0.0 =
Initial release.
