| 开发者 | woomanagers |
|---|---|
| 更新时间 | 2026年11月24日 16:32 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
/wp-content/plugins/.Go to WooCommerce → Payment & Shipping by Role, find the payment method in the Payment methods table, select the role (or roles) it should be hidden from and click Save Settings. Customers with that role will no longer see the payment method at checkout.
Use the Shipping methods table on the same screen. Each shipping method is listed with its zone, for example "United States — Flat rate". Select the user roles it should be hidden from and save.
Yes. Every list includes "Guest (not logged in)". Select it to hide a method from visitors who are not logged in, while logged-in customers still see it.
Find Cash on delivery in the Payment methods table and select "Guest (not logged in)", or the user role, in its hidden list. Cash on delivery is then no longer offered to them at checkout, and everyone else still sees it.
Find the payment method, for example Direct bank transfer, and select every role except your wholesale role, plus "Guest (not logged in)". Only wholesale customers are then offered that payment method.
Yes. The plugin uses WooCommerce's standard payment gateway and shipping rate filters, which the block-based Cart & Checkout respects through the Store API. The classic checkout and the block checkout behave the same way, and the plugin declares compatibility with block-based Cart & Checkout.
It works with any payment gateway that is enabled in WooCommerce, including Stripe, PayPal, Square, bank transfer, cheque, cash on delivery and purchase order gateways. Only enabled gateways are listed. If a payment gateway is missing, enable it under WooCommerce → Settings → Payments first.
Yes. Rules are stored per shipping method instance, so each method in each zone has its own setting. The same "Flat rate" can be visible in one zone and hidden in another.
Yes. Free shipping, local pickup and flat rate are listed like any other shipping method, once for each zone they are in. Select the roles each one should be hidden from.
The free plugin has one condition: the customer's user role, with guests as their own option. Conditional payments and conditional shipping based on cart value, country or basket contents are part of Payment & Shipping by Role Pro.
Yes. The settings screen lists every role registered on your site, including roles added by wholesale, membership or B2B plugins.
If any of the customer's roles is in a method's hidden list, the method is hidden for that customer.
Customers with that role will not be able to place an order, because WooCommerce has no payment method to offer them. Make sure each role and guests always keep at least one payment method and, for orders that need shipping, at least one shipping method.
Yes. The rules only apply on the storefront. In the WordPress admin every enabled payment method stays available, so you can still create manual orders with any method.
Log in with a test account that has that role, or open your store in a private browser window to see what guests see. As an administrator you see the checkout for the Administrator role.
Yes. Payment methods are checked every time the checkout loads, and saving the settings tells WooCommerce to work out shipping rates again, so customers see the new rules on their next page load. Shipping rates are also worked out again when a customer's role changes, for example when you approve them as a wholesale customer.
No. A newly added method is visible to everyone until you select roles for it on the settings screen.
No. It only shows or hides payment and shipping methods. Payment method surcharges and discounts are available in Payment & Shipping by Role Pro.
Yes. Payment & Shipping by Role Pro for WooCommerce adds conditions on cart value, country and basket contents, rules for named customers, "show only here" rules, payment surcharges and discounts, and scheduled rules. Everything described on this page is included in the free plugin.
Yes. The plugin does not read or write order data and declares compatibility with WooCommerce High-Performance Order Storage.
Deleting the plugin from the Plugins screen removes its single option (wmpsr_settings) from the database. If Payment & Shipping by Role Pro or the B2B Managers Suite is installed, the option is kept because they use it. Deactivating the plugin keeps your settings.