這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

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-2.png
  • /assets/screenshot-3.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

使用者評論

2019 年 4 月 17 日 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 !
閱讀全部 1 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Void Woo Cart Restrictor〉的開發相關工作。

參與者

將〈Void Woo Cart Restrictor〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.0

  • Initial Release