How to hide price in WooCommerce till login (+ video)

WooCommerce hide price until login

Want to only show product prices to members?

One way to do this is by hiding the price until login. This lets you create a sense of exclusivity and restrict access to premium products for specific user roles on your website.

Hiding price till login is great for WordPress membership sites enabling them to offer exclusive content or products based on the user’s member role. For instance, “Gold Members” will have access to the “Gold Members Area” while “Silver Members” can access the “Silver Members Area” only.

Hiding the price until login also lets you create a private online store where you can display wholesale prices to only wholesale customers and not everyone who visits your store. This is also a great way to sell specific products to wholesale customers only on your WooCommerce website.

Affiliate marketing websites can offer exclusive content to specific clients only by hiding the price until login. This helps enhance the user experience on your website by offering content that’s most relevant to the user. 

In this tutorial, we’ll show you how to hide the price in WooCommerce till login by using a WooCommerce hide price until login plugin.

How to hide price in WooCommerce

WooCommerce by default lets you hide product prices on your e-commerce store. This way, you can hide the price of all WooCommerce products at once for all user roles on your website. 

However, the only way to hide WooCommerce product prices without a plugin is by using code. This is not very user-friendly and applies to all products on your WooCommerce store, even the ones you don’t want to hide the prices of. In addition to this, it doesn’t hide price till users log in on your WooCommerce site.

How to hide price in WooCommerce using a plugin

You will need a WooCommerce hide price until login plugin to hide prices for specific WooCommerce products. We recommend using the WooCommerce Members Only plugin to do this.

WooCommerce Members Only featured image

WooCommerce Members Only

Protect your content and sell members-only products

Find Out More

WooCommerce Members Only is a membership plugin for WooCommerce which allows you to protect or restrict individual posts and products or even the entire site using a password form or based on user role or user ID. This lets you customise your WooCommerce products and offer a personalised shopping experience to users based on their user role on your website.

The WooCommerce Members Only plugin lets you hide product prices either across the whole site or for specific products. You can choose to hide the price until login via password, user role, or user ID. 

Let’s jump into the tutorial to see how this plugin lets you customise WooCommerce product prices on your online store. We’ll assume you have the WooCommerce plugin installed and activated on your website.

How to install the WooCommerce Members Only plugin

To get started, the first thing you’ll need to do is download and install the WooCommerce Members Only plugin on your WooCommerce site.

Here’s how you can do this:

  1. After purchasing a copy of the WooCommerce Members Only plugin, you will receive an email containing a link to the zip file and the license key. Download the zip file to your device.
  2. Navigate to Plugins → Add New → Upload Plugin and install the plugin on your WooCommerce site.
  1. After installing the plugin, navigate to WooCommerce → Settings → Members Only and click on the License link from the top of the screen. Enter your license key in the text field.
  2. Click on the Save changes button to continue.

How to hide prices across all products

The WooCommerce Members Only plugin lets you hide prices across all WooCommerce single product pages. This way, users need to log in to their account before they can see the price.

Here’s how you can do this:

Members Only settings page
  1. Navigate to WooCommerce → Settings → Members Only and set the Restriction Method to Log In Status.
  1. Using the Restrict Content dropdown menu, select All Product Pages and tick the Hide Price checkbox. Click on the Save changes button when you’re done.
  2. Users on your WooCommerce site won’t be able to view product prices until they log in to their accounts.

Here’s how that looks:

WooCommerce hide price until login preview

How to hide prices for specific products 

You can also hide WooCommerce prices for specific categories on your WooCommerce store using the WooCommerce Members Only plugin.

Here’s how you can do this:

Hide prices settings
  1. Navigate to WooCommerce → Settings → Members Only and set the Restriction Method to Log In Status
  1. Similar to what we did previously, select Log In Status from the Restriction Method dropdown menu.
  2. Select Specified Categories using the Restricted Content dropdown menu and enter the categories in the Restricted Categories text field.
  3. Select the Hide Price checkbox and click on the Save Changes button to continue. 
  4. This will hide prices from specified products in certain categories on your WooCommerce site.

Here’s how that looks on the front-end:

Hide prices preview

The WooCommerce prices will be hidden on the shop page and category pages.

Also, check out our tutorial on how to hide a category in WooCommerce.

How to apply conditions regarding user roles

Using the WooCommerce Members Only plugin, you can also create new user roles, duplicate existing roles, and edit user role capabilities.

Here’s how you can do this:

Create new user role
  1. Navigate to WooCommerce → Settings → Members Only and click on the User Roles link from the top.
  1. Select the user role you want to duplicate and enter a new name for the user role using the text field below. Once you’re ready, click on the Duplicate role button to continue. 
  2. You can also edit user role capabilities on your site using the Edit Role section.
  1. Simply select the user role you want to edit using the dropdown menu and edit the capabilities. Once you’re done, click on the Save changes button to continue.

The WooCommerce Members Only plugin also lets you restrict or enable payment gateways and shipping methods by user role on your WooCommerce site.

To do this:

Payment method settings
  1. Navigate to WooCommerce → Settings → Members Only and click on the Payment Methods link.
  1. Select the user roles you want to hide specific payment methods from using the Restricted Roles text field and enter the user roles who can access the payment method using the Permitted User roles text field.
  2. Click on the Save changes button to continue.

Now we also want to hide shipping methods from specific user roles. Here’s how:

Shipping method settings
  1. Click on the Shipping Methods link.
  2. Select the user you want to display specific shipping methods to using the Permitted User roles text field and restrict users using the Restricted Roles text field.
  3. Click on the Save changes button once you’re done.

The WooCommerce Members Only plugin lets you set expirations for memberships on your WooCommerce site. For instance, you can set an expiration date for a user role that is assigned to the buyer after they purchase the membership product.

Here’s how you can do this using the plugin:

Set expiration date
  1. Navigate to the membership product’s edit page and scroll down to the Product data metabox and click on the Members Only tab.
  1. Select the user role you want to assign users to who purchase the Bronze Membership product and set an expiry date using the date selector below. Once you’re done, click on the Save changes button to continue.

How to create user-specific products by restricting access to specified products to specific user IDs

The WooCommerce Members Only plugin also allows you to create user-specific products on your online store to show prices to. This way, only users with specific user IDs will be able to access the exclusive products, add them to cart, and proceed to the checkout page.

Here’s how you can do this:

User specific products WooCommerce
  1. Navigate to Product → Add New and add your product details.
  1. Using the Product data metabox, click on the Members Only tab to access the customisation options.
  2. Select By User using the Restriction Method dropdown menu and enter the specific user IDs in the text field below. Click on the Publish button to create the user-specific product on your WooCommerce site.

This is perfect for wholesale stores that want to show wholesales prices to their B2B customers only.

Check out our tutorial on how to hide products by user roles for more information.

How to hide add to cart button

The WooCommerce Members Only plugin also lets you replace the default “Add to Cart” text on your WooCommerce store with a fully customised one.

Here’s how you can do this easily in WooCommerce:

Hide add to cart button
  1. Navigate to WooCommerce → Settings → Members Only and scroll down to the Archive Settings section. 
  1. Enter custom text to replace the default add to cart button using the Add to Cart Text text field. Click on the Save changes button once you’re done.

Logged out users will see a “Please Login to view product price” message instead of the add to cart button.

Hide add to cart button preview

You can use this option to display prices without letting customers add the products to their cart.

How to hide WooCommerce product prices till login – video

Conclusion

You can hide price in WooCommerce until login to encourage guest users to register with you and offer exclusive products on your WooCommerce site. This way, you can create user-specific products and only let certain user roles on your website access the exclusive products.

However, WordPress by default offers limited functionality for customising how product prices are shown on the front-end. Instead, you can use a WooCommerce hide price until login plugin such as WooCommerce Members Only to easily customise product prices for specific user roles on your WordPress website.

WooCommerce Members Only featured image

WooCommerce Members Only

Protect your content and sell members-only products

Find Out More

Ready to start hiding prices in WooCommerce until login? Get WooCommerce Members Only today!

Leave a Reply

Your email address will not be published. All fields are required.