Ga naar de inhoud
WordPress.org

Nederlands

  • Thema’s
  • Plugins
  • Nieuws
    • Documentatie
    • Forums
  • Over
    • Vertaalproces
    • Stijlgids
    • Onze community
    • Meetups
    • WordCamps
  • Contact
  • WordPress downloaden
WordPress downloaden
WordPress.org

Plugin Directory

Hide Product Prices Until Login – for WooCommerce

  • Dien een plugin in
  • Mijn favorieten
  • Login
  • Dien een plugin in
  • Mijn favorieten
  • Login

Deze plugin is niet getest met de laatste 3 grotere versies van WordPress. Mogelijk wordt het niet meer onderhouden of ondersteund. Ook kunnen er compatibiliteitsproblemen ontstaan wanneer het wordt gebruikt met recentere versies van WordPress.

Hide Product Prices Until Login – for WooCommerce

Door nelegines
Download
  • Details
  • Beoordelingen
  • Installatie
  • Ontwikkeling
Ondersteuning

Beschrijving

WooCommerce Hide Prices Until Login or Region helps store owners control who can see prices and add products to their cart. Useful for wholesale stores, restricted content, or region-specific pricing policies.

Developer Features

This plugin supports integrations with premium extensions via a global override flag and centralized architecture:

  • Set $GLOBALS['hpulr_force_hide'] = true before calling HPULR_Price_Handler::filter_price() to trigger the free plugin’s hidden price message
  • Inject premium settings using hpulr_additional_settings filter
  • Automatically save premium and custom fields via centralized update hook
  • Sanitize both free and premium fields with centralized filter sanitize_all_options

🎯 Key Features:
– Hide prices for non-logged-in users
– Disable Add to Cart for guests
– Geolocation-based visibility (by allowed countries)
– User role-based visibility (NEW in 1.2.0)
– Custom message with {login_url} support
– Redirects users back to the product after login
– Integrated directly into WooCommerce settings
– Per-product custom message override (Lite)
– Test mode for admin previewing behavior
– Supports all product types (simple, variable, etc.)
– Centralized saving and sanitization (NEW in 1.2.1)
– Compatible with premium add-ons (e.g., category-based hiding)

License

This plugin is licensed under the GPLv2 or later.

Installatie

  1. Upload the plugin files to the /wp-content/plugins/hide-product-prices-until-login directory or install through the WordPress plugin screen.
  2. Activate the plugin through the “Plugins” menu.
  3. Go to WooCommerce β†’ Settings β†’ Products β†’ Hide Prices to configure.

FAQ

Can I add a login link in the message?

Yes! Use the {login_url} placeholder in your message. It will be automatically replaced with a clickable link to the login page.

Can I show a different message for individual products?

Yes! Edit a product and use the β€œHide Price Message” field in the sidebar to override the global message.

Will it redirect users back after login?

Yes. After logging in, users are redirected to the product they were viewing.

Can I simulate as a guest while logged in?

Yes. Enable β€œTest Mode” in the plugin settings to preview hidden prices while logged in as an admin.

Beoordelingen

Er zijn geen beoordelingen voor deze plugin.

Bijdragers & ontwikkelaars

“Hide Product Prices Until Login – for WooCommerce” is open source software. De volgende personen hebben bijgedragen aan deze plugin.

Bijdragers
  • nelegines

Vertaal “Hide Product Prices Until Login – for WooCommerce” in je eigen taal.

Interesse in ontwikkeling?

Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.

Changelog

1.2.1

  • βœ… REFACTOR: Centralized settings saving and sanitization for both free and premium fields
  • βœ… NEW: Added filter hpulr_additional_settings to allow premium plugins to register their settings
  • βœ… NEW: Unified sanitize_all_options method for secure value handling
  • βœ… FIX: Prevented fatal error when sanitizing array-based inputs
  • βœ… REFACTOR: JavaScript update logic for role and category tables generalized
  • βœ… Tweak: Updated hidden field support for WooCommerce compatibility

1.2.0

  • βœ… NEW: Hide prices based on user roles
  • βœ… NEW: Dynamic UI to manage restricted roles in admin
  • βœ… FIX: Ensures restricted roles are saved as an array
  • βœ… FIX: Proper handling of empty state in roles table (no-available-data)
  • βœ… FIX: JavaScript updates to restore placeholder row when roles removed
  • βœ… REFACTOR: Moved HTML render logic to template files for better maintainability
  • βœ… Tweak: Minor styling and JS enhancements for settings UI
  • βœ… NEW: Added support for external price hiding override via $GLOBALS['hpulr_force_hide']
  • βœ… NEW: This enables premium add-ons to trigger hidden price logic (e.g., for category-based restrictions)

1.1.0

  • βœ… NEW: Per-product custom message override
  • βœ… NEW: Hide Add to Cart button in product loops
  • βœ… NEW: Login redirect after login back to product
  • βœ… NEW: Admin Test Mode for debugging
  • βœ… Tweak: Global {login_url} placeholder replacement
  • βœ… Updated: Translatable strings and inline documentation

1.0.0

  • Initial release with price hiding and region-based logic

Meta

  • Versie 1.2.2
  • Laatst geΓΌpdatet 10 maanden geleden
  • Actieve installaties 10+
  • WordPress versie 5.8 of nieuwer
  • Getest t/m 6.7.7
  • PHP versie 7.4 of nieuwer
  • Taal
    English (US)
  • Tags
    geolocationhide priceslogin requireduser roleswoocommerce
  • Geavanceerde weergave

Waarderingen

Er zijn nog geen beoordelingen ingediend.

Je beoordeling

Bekijk alle beoordelingen

Bijdragers

  • nelegines

Ondersteuning

Iets te melden? Hulp nodig?

Het supportforum bekijken

  • Over
  • Nieuws
  • Hosting
  • Privacy
  • Showcase
  • Thema's
  • Plugins
  • Patronen
  • Leren
  • Ondersteuning
  • Ontwikkelaars
  • WordPress.tv β†—
  • Raak betrokken
  • Evenementen
  • Doneren β†—
  • Swag β†—
  • WordPress.com β†—
  • Matt β†—
  • bbPress β†—
  • BuddyPress β†—
WordPress.org
WordPress.org

Nederlands

  • Bezoek ons X (voorheen Twitter) account
  • Bezoek ons Bluesky account
  • Bezoek ons Mastodon account
  • Bezoek ons Threads account
  • Onze Facebook pagina bezoeken
  • Bezoek ons Instagram account
  • Bezoek ons LinkedIn account
  • Bezoek ons TikTok account
  • Bezoek ons YouTube kanaal
  • Bezoek ons Tumblr account
Code is poΓ«zie.
The WordPress® trademark is the intellectual property of the WordPress Foundation.