| 开发者 | themealien |
|---|---|
| 更新时间 | 2026年10月28日 14:20 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
Yes. The rules apply on WooCommerce's own available-methods filters, which both the classic checkout and the blocks use.
Add a payment rule: Methods = your invoice or bank transfer method, "Show these methods only when the conditions match", condition "Customer role (B2B groups) is one of: Any wholesale role" (or your trade role).
Yes. Add a shipping rule: Methods = the methods to hide, "Hide these methods when the conditions match", condition "Cart weight is more than 30", or "Shipping classes: cart contains any of: Bulky".
A customer whose order is VAT exempt in WooCommerce (for example after a verified VAT number with AovUp EU & UK VAT Validation), and the customers the AovUp Tax Exemption editions exempt:
aovup_spr_customer_tax_exempt filter.
The amounts in your rules (the cart subtotal limits) are in your store's base currency. WooCommerce has no common way to convert them, so let your currency switcher convert them with the aovup_spr_amount filter. It gets the amount, what it is and the currency to convert to (the order's currency on the "Pay for order" page, otherwise the shop's current currency), and returns the amount in that currency, converted in proportion (amount × exchange rate). An order paid for in your base currency is never converted.
At the whole cart, the same as payment rules: every item (also virtual ones, which don't ship, and items in other shipments), and the cart's subtotal, number of items and weight. So "Cart subtotal is at least 100" means the same in a shipping rule and a payment rule. Only the address is the shipment's own. If your store splits the cart into several shipments (several addresses, vendors or warehouses) and you want each one judged on its own items, return true from the aovup_spr_shipping_rules_use_package filter.
WooCommerce shows its usual "no shipping options" message. Check your rules, or use Pro's checkout messages to tell customers why.
The customers it hides them from can't pay: WooCommerce only tells them that no payment methods are available. This happens with a rule such as "Show bank transfer only to trade customers" when bank transfer is the only method your store has switched on: guests and retail customers are left with nothing. The rule editor warns you when a payment rule covers every payment method that is switched on. Leave at least one method that every customer can use, or use Pro's checkout messages to tell customers what to do.
The checkout keeps working. A rule that can't be checked counts as not matching: a "show only when" rule hides its methods, a "hide when" rule hides nothing, and a Pro fee rule adds nothing. The error is written to WooCommerce > Status > Logs (source "aovup-spr"), at most once an hour per rule, with the plugin or filter it came from.
No. The plugin makes no outside requests.
aovup_spr_shipping_rules_use_package filter keeps the old way for stores that split the cart.aovup_spr_amount filter also gets the currency to convert to. On the "Pay for order" page that is the order's currency, and an order in your base currency is no longer converted.