Title: Void Woo Cart Restrictor
Author: voidcoders
Published: <strong>2019 年 4 月 17 日</strong>
Last modified: 2020 年 11 月 24 日

---

搜索插件

![](https://ps.w.org/void-woo-cart-restrictor/assets/banner-772x250.png?rev=2069857)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/void-woo-cart-restrictor/assets/icon-128x128.png?rev=2069857)

# Void Woo Cart Restrictor

 作者：[voidcoders](https://profiles.wordpress.org/voidcoders/)

[下载](https://downloads.wordpress.org/plugin/void-woo-cart-restrictor.1.0.0.zip)

 * [详情](https://cn.wordpress.org/plugins/void-woo-cart-restrictor/#description)
 * [评价](https://cn.wordpress.org/plugins/void-woo-cart-restrictor/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/void-woo-cart-restrictor/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/void-woo-cart-restrictor/#developers)

 [支持](https://wordpress.org/support/plugin/void-woo-cart-restrictor/)

## 描述

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

## 屏幕截图

[⌊/assets/screenshot-1.png⌉⌊/assets/screenshot-1.png⌉[

/assets/screenshot-1.png

[⌊/assets/screenshot-2.png⌉⌊/assets/screenshot-2.png⌉[

/assets/screenshot-2.png

[⌊/assets/screenshot-3.png⌉⌊/assets/screenshot-3.png⌉[

/assets/screenshot-3.png

[⌊/assets/screenshot-4.png⌉⌊/assets/screenshot-4.png⌉[

/assets/screenshot-4.png

## 安装

 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

## 评价

![](https://secure.gravatar.com/avatar/8c0ced2ad5a0c50ec3a0903b1d1946b4309a9b5e4ed01ff7f8d40bc710f49e3e?
s=60&d=retro&r=g)

### 󠀁[Really good !](https://wordpress.org/support/topic/really-good-284/)󠁿

 [nick6352683](https://profiles.wordpress.org/nick6352683/) 2019 年 4 月 17 日 2
回复

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 !

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/void-woo-cart-restrictor/reviews/)

## 贡献者及开发者

「Void Woo Cart Restrictor」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ voidcoders ](https://profiles.wordpress.org/voidcoders/)
 *   [ voidthemes ](https://profiles.wordpress.org/voidthemes/)

[帮助将「Void Woo Cart Restrictor」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/void-woo-cart-restrictor)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/void-woo-cart-restrictor/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/void-woo-cart-restrictor/)，或通过
[RSS](https://plugins.trac.wordpress.org/log/void-woo-cart-restrictor/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/void-woo-cart-restrictor/)。

## 更新日志

#### 1.0.0

 * Initial Release

## 额外信息

 *  版本 **1.0.0**
 *  最后更新：**6 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 4.4 或更高版本 **
 *  已测试的最高版本为 **5.5.23**
 *  语言
 * [English (US)](https://wordpress.org/plugins/void-woo-cart-restrictor/)
 * 标签
 * [category](https://cn.wordpress.org/plugins/tags/category/)[product](https://cn.wordpress.org/plugins/tags/product/)
   [restrict](https://cn.wordpress.org/plugins/tags/restrict/)[visbility](https://cn.wordpress.org/plugins/tags/visbility/)
   [woocommerce](https://cn.wordpress.org/plugins/tags/woocommerce/)
 *  [高级视图](https://cn.wordpress.org/plugins/void-woo-cart-restrictor/advanced/)

## 评级

 4 星（最高 5 星）。

 *  [  0 条 5 星评价     ](https://wordpress.org/support/plugin/void-woo-cart-restrictor/reviews/?filter=5)
 *  [  1 条 4 星评价     ](https://wordpress.org/support/plugin/void-woo-cart-restrictor/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/void-woo-cart-restrictor/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/void-woo-cart-restrictor/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/void-woo-cart-restrictor/reviews/?filter=1)

[您的评价](https://wordpress.org/support/plugin/void-woo-cart-restrictor/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/void-woo-cart-restrictor/reviews/)

## 贡献者

 *   [ voidcoders ](https://profiles.wordpress.org/voidcoders/)
 *   [ voidthemes ](https://profiles.wordpress.org/voidthemes/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/void-woo-cart-restrictor/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.paypal.me/voidcoder)