Search

Catalog Visibility Options

Installation ↑ Back to Top

To learn how to install this extension, please see our Installation Guide.

Please note: This plugin does not remove the cart button from your navigation bar.

Options and Configuration ↑ Back to Top

To configure this plugin, go to the WooCommerce > Settings > Visibility Options tab.

Catalog Visibility Settings

 

Purchases:

  • Enabled – No changes to the way your store functions.
  • Disabled – No purchases allowed for anyone. This setting disables all add to cart functionality, and optionally replaces the Add To Cart button text with what you enter a value for Catalog Add to Cart Button Text.
  • Enabled for Logged In Users: Same as Disabled, however, only applies when a user is not authenticated.

Prices:

  • Enabled – No changes to the way your store functions.
  • Disabled – Disables all prices in the store. Disables prices for users who are not authenticated, and optionally displays the contents of the Catalog Price Text in place of the products price.
  • Enabled for Logged in Users – Disables prices for users who are not authenticated, and optionally displays the contents of the Catalog Price Text in place of the products price.
When prices are disabled, or enabled only for authenticated users, add-to-cart functionality is automatically disabled.

Catalog Add to Cart Button Text:

      • Optional text to display in place of the add to cart button when purchases are disabled, or enabled only for logged in users.

You can optionally use the filter catalog_visibility_alternate_add_to_cart_buttonĀ to insert any content you require. Example:

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

function my_alternate_button($content) {

return 'My Alternate Content';

}

Catalog Price Text:

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

You can optionally use the filterĀ catalog_visibility_alternate_price_html to insert any content you require. Filter Example:

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

function my_alternate_price_text($content) {

return 'My Alternate Content';

}

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

Location Filter Options ↑ Back to Top

Location filter options allow you to filter products from your store based on a users country. This is great for users who need to display different products to different users based on their location.

To configure, set the field “Location Filter Functionality” to Enabled. Go to: WooCommerce > Settings > Visibility Options

Next, choose a page where you would like the users to select their location from. The location selector is automatically added to the page you select. The countries available in the location selector will be the same as the countries you have enabled for WooCommerce. Finally, select if selecting a location is optional or required.

Once you have configured your location selector and a user selects their location they will only see products that have been configured for their location. Location settings are available on entire Product Categories and on individual products.

Screenshot on 2014-06-09 at 16-25-45

Product Category Settings ↑ Back to Top

If you view a product category, either as you add a new one or edit an existing one, you have an option of role restrictions on that category and it’s products. You can set to show to everyone, or show to specific roles and then pick those roles. To set the options, go to: WP Dashboard > Products > Categories

Catalog Visibility Product Category Settings

Product Settings ↑ Back to Top

Within a single product you have a few further options. You can set who can view this product, who can purchase this product, and who can view prices. From those options you can choose to use the category settings, show to everyone, or show to specific roles. Specific roles then lets you choose those roles.

Catalog Visibility Product Settings

Shortcodes ↑ Back to Top

Includes shortcodes for use when building alternate catalog prices, alternate add to cart buttons, and additional single product details.

[woocommerce_logon_link]
Uses:
[woocommerce_logon_link]
[woocommerce_logon_link]Custom Login Text[/woocommerce_logon_link]

 

[woocommerce_register_link]
Uses:
[woocommerce_register_link]
[woocommerce_register_link]Custom Registration Text[/woocommerce_register_link]

 

[woocommerce_forgot_password_link]
Uses:
[woocommerce_forgot_password_link]
[woocommerce_forgot_password_link]Custom Registration Text[/woocommerce_forgot_password_link]

 

[woocommerce_logon_form]
Uses:
[woocommerce_logon_form]

Examples ↑ Back to Top

Alternate Catalog Price Text:
[woocommerce_logon_link]Login[/woocommerce_logon_link] or [woocommerce_register_link] Register [/woocommerce_register_link]

Alternate Content:
To add items to your cart and to view your prices please login below. If you do not have account you can [woocommerce_register_link] and start shopping with us.’

[woocommerce_logon_form]

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. This does not 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 – regardless of it you are using alternative text.

  • Example: if you add “read more” as text, AJAX overwrites this and still adds product to 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 when installing still remain visible (like on your sitemap). Do not delete those pages as you might need them in the future.

Back to the top