This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Void Woo Cart Restrictor

Description

Void Woo Cart Restrictor lets you restrict a certain type of category products to the only defined user role. It will make the selected category product completely non purchasable other than the chosen user role. It will show a notice saying that user need to login before they can buy the product. User will also be redirected to the product that the user was browsing after successfully logging in.

After installation Void Woo Cart Restrictor will add a submenu ‘Void Woo Cart Restrictor’ Under Settings. It will also add a checkbox field saying ‘Restrict this category?’

Product > Categories > Restrict this category

Note: This plugin is an addon of WooCommerce (https://wordpress.org/plugins/woocommerce/) and will only work with WooCommerce installed.

Workflow:

  1. Activate the plugin.
  2. Browse Product > Categories > Dummy Category > check the Restrict this category box to restrict this product category.
  3. Browse Settings > Void Woo Cart Restrictor > check the roles for which you would like the product of restricted category to show up only. i.e I choose for Customer role

Screenshots

  • /assets/screenshot-1.png
  • /assets/screenshot-2.png
  • /assets/screenshot-3.png
  • /assets/screenshot-4.png

Installation

  1. Upload void-woo-cart-restrictor.zip to the ‘plugins/Add New’
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to Settings>Void Woo Cart Restrictor to choose the desired user role for product visiblity
  4. Go to Product > Categories > Restrict this category

Reviews

སྤྱི་ཟླ་བཞི་པ། 17, 2019 2 replies
Works like a charm. If the following 2 things are added, this plugin will deserve 5 stars, hands down ! 1. When a user is been restricted from buying from a certain category, and is logged in with credentials that are blocked from buying from that specific category, the message says, “you must be logged in to purchase”. Well, in reality the user is already signed in. The generic message should be “you must be logged in with the correct credentials to purchase the item”. This is just wording, it should take a few seconds to edit the wording. 2. The second suggestion, is probably some simple CSS settings that need to be applied, and can be out of the box, or be added to the settings screen. When an item is restricted from purchase, always the price and the different variations are shown. In many cases, I’m guessing especially with wholesale prices, these would preferably not be publicly shown. In this case, only wholesalers should be able to see the prices, and maybe even the variations. At least the few wholesaler clients that I have, all of them don’t want to display their wholesale prices publicly. Thanks, great plugin nevertheless, looking forward to implement my suggestions, and thus me giving this plugin 5 stars, what it actually deserves !
Read all 1 review

Contributors & Developers

“Void Woo Cart Restrictor” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0.0

  • Initial Release