WooCommerce Docs

Documentation, Reference Materials, and Tutorials for your WooCommerce products

Search

Catalog Visibility Options

Catalog Visibility Options transforms your WooCommerce store into a catalog by giving you the option to disable all eCommerce functionality. This includes changing the “Add to Cart” and “Buy Now” buttons as well as disabling the regular checkout and cart processes.

With this plugin, you’re able to:

  • Showcase your product images and descriptions while finalizing prices, stock or payment gateway setups
  • Toggle product visibility on a product, category, user role or user location basis
  • Change the text used on regular WooCommerce “Add to Cart” buttons when Catalog Visibility is active
  • Easily switch between an active online store and a static product catalog

Installation ↑ Back to Top

For more help on how to install, activate and update this plugin, please refer to our handy guide on how to Install and Activate Plugins / Extensions.

For support and one-click updates, you’ll also need to install our WooThemes Helper plugin.

Options and Configuration ↑ Back to Top

For settings that affect your entire site, go to WooCommerce > Settings > Visibility Options.

CatalogVisibilitySettings

This section should have several options, including:

Purchases:

  • Enabled – Purchases are allowed as expected.
  • Disabled – Purchases are disabled for all users (whether they’re logged in or not). This setting disables all “Add to Cart” functionality. If you’d like to change the text used on the “Add to Cart” buttons, please refer to the section below entitled Catalog Add to Cart Button Text.
  • Enabled for Logged In Users – This is similar to “Disabled” as described above except that the “Add to Cart” functionality will continue to work for logged in users.

Prices:

  • Enabled – Prices are displayed as expected.
  • Disabled – Hides all prices, for all users, across the entire store on the front end. If you’d like to display a custom message or login form, please refer to the section below entitled Catalog Price Text.
  • Enabled for Logged in Users – This is similar to “Disabled” as described above except that the prices will be visible for logged in users.
When prices are disabled, or enabled for logged in users only, all “Add to Cart” functionality is automatically disabled.

Catalog Add to Cart Button Text:

  • Optional text to display in place of “Add to Cart” button when purchases are disabled entirely or when enabled for logged-in users only.

Catalog Price Text:

  • Optional text to display in place of the price when prices are disabled, or enabled only for logged-in users.

Alternate Content:
Optional content that can be used on the single product details page when prices or purchases are disabled or enabled only for logged-in users. Useful for displaying ordering details, or a log-on form if requiring user authentication before sales are allowed.

Location Filter Options ↑ Back to Top

Location filter options allow store owners to display different products based on the users country. To configure this section, got WooCommerce > Settings > Visibility Options

locationfilteroptions
This section should have several options, including:

Location Filter Functionality

  • Enabled – Geolocation is active and catalogue vibility will be based on the users location
  • Disabled – Geolocation is inactive prices will be displayed as per normal

Location Selection Page

  • This is the page where users are able to set / change their location. The page in question is automatically added upon installation of the plugin and should contain the [location_picker] shortcode. The countries available are the same as the countries you enabled for WooCommerce under WooCommerce > Settings > General.

Location Selection Requirements

  • Require users to select a location
  • Location selection is optional

Allow Changes to Location Selection

  • Allow users to change location after selection
  • Users cannot change location after initial selection

Use Geo Location

  • Use geo location – Only relavant for WooCommerce versions that’s older than 2.3
  • Do not use geo location – Used by default for the latest version of WooCommerce

Clear cart when location changes

  • Clear cart when location changes
  • Do not clear cart when location changes

Product Category Settings ↑ Back to Top

With Catalog Visibility Options, you have the ability to restrict the visibility of products based on the user role. To configure visibility on a per product category basis, go to Products > Categories and select Show to Specific Roles. Once selected, a new section should appear that will allow you to select which user roles are able to see the products in that category.

Note: “Guest” is not a considered a role: These are just regular users visiting your website that are not logged in. This plugin can hide for that role, but it isn’t meant to modify their capabilities beyond that.

Catalog Visibility Product Category Settings

Product Settings ↑ Back to Top

Product visibility can also be set on a per-product basis. To configure things, go to Products > All Products > YOUR PRODUCT > Product Restrictions. You should see the following options:

  • Who can view this product
  • Who can purchase this product
  • Who can view prices

For each of these options, you will have the ability to:

  • Use category settings – This will inherit the settings used by the category in which the product is assigned to.
  • Everyone
  • Specific roles – allows you to select which user roles are able to see this product
Note: If the product is assigned to multiple categories, the first category alphabetically will take precedence.

productrestrictionsvisibility

Shortcodes

This extension also includes shortcodes for use when building alternate catalog prices, alternate add to cart buttons, and additional single product details.

Logon Link

This shortcode is used to automatically generate a link to your “My Account” page. To add this link to a page, post or product of your choice, use the following shortcode:

[woocommerce_logon_link]

Register Link

This shortcode is used to automatically generate a link to your “My Account” page. To add this link to a page, post or product of your choice, use the following shortcode:

[woocommerce_register_link]

Password Reset

This shortcode is used to automatically generate a link to your “Lost Password” page. To add this link to a page, post or product of your choice, use the following shortcode:

[woocommerce_forgot_password_link]

Logon Form

This shortcode displays a login form on a page, post or product of your choice. To add this, use the following shortcode:

[woocommerce_logon_form]

Useful Snippets ↑ Back to Top

Note: We are unable to provide support for customizations under our Support Policy. If you cannot get the code to work, consider purchasing the extension or contact a WooExpert.

Change the “Add to Cart” button text using a filter

You can use the filter catalog_visibility_alternate_add_to_cart_button to insert any content you require:

add_filter('catalog_visibility_alternate_add_to_cart_button', 'my_alternate_button', 10, 1);

function my_alternate_button($content) {
  return 'My Alternate Content';
}

Replace the price with custom HTML using a filter

You can use the filter catalog_visibility_alternate_price_html to insert any HTML you require:

add_filter('catalog_visibility_alternate_price_html', 'my_alternate_price_text', 10, 1);

function my_alternate_price_text($content) {
  return 'My Alternate Content';
}

FAQ ↑ Back to Top

Why is my cart icon still in the navigation menu?

This plugin only removes the functionality to purchase items in your store. It does not hide the cart icon; Depending on the theme you’re using, you might have to add some custom CSS to hide the cart icon.

Why can people still add to cart on the main store page?

If AJAX is enabled for the “Add to Cart” button, the product still gets added to the cart. Changing the text does not change its functionality.

  • Example: If you add Read More as text to the button, AJAX still adds a product to the cart.

Turn off AJAX in WooCommerce > Settings > Products > Product Options

Screen Shot 2014-12-05 at 16.54.17

 

Why are store pages still visible on the sitemap, even if I do not have cart functionality?

The pages that WooCommerce creates during installation remain visible (like on your sitemap). Do not delete these pages; you might need them in the future. Instead, you can use a plugin like Yoast SEO to set the page so it won’t appear on your sitemap.

How can I change the prices shown for various roles or logged-out customers?

The Catalog Visibility Options extension only affects the visibility of the product, not the actual prices. To display different prices for different users, you should consider using our Dynamic Pricing extension.

Back to the top