5.0.0
Última9 novos7 melhorias5 correções1 removido
Novo
- New condition editor. Rules are grouped, and groups and rules can be combined with AND or OR, e.g. (Country is US AND Cart total more than 100) OR Role is wholesale.
- Conditions list shows what each condition hides and its rules, with an Enabled switch, a Priority column and a Duplicate action.
- Priority (Order) for conditions, and an option to stop checking lower-priority conditions after a match.
- With WooCommerce shipping debug mode on, store managers see at checkout why each condition matched or not.
- Support for the Cart and Checkout blocks, including live condition messages.
- rspw_rule_types filter to register custom rules.
- "Show only when the cart matches" action: a condition can hide its methods or gateways unless the rules match.
- New rules: Day of Week, Date (range), Previous Orders, Product, and Logged In or Guest.
- Postcode rule accepts lists, wildcards (902*) and ranges (90000...90999), like shipping zones. City rule accepts lists.
Melhoria
- "Stop checking lower-priority conditions" now applies when a condition hides something, which for existing conditions is when it matches.
- Only users who can manage WooCommerce (administrators and shop managers) can edit conditions. Editors no longer can.
- Conditions are no longer public posts.
- Requires WordPress 6.2, PHP 7.4 and WooCommerce 7.0.
- Existing conditions are migrated to the new rules format automatically; the old data is kept.
- Billing Country rule: the result was inverted. Check conditions that use "is not" as a workaround.
- Shipping Method rule: matches the selected method instance only, not every method of the same type.
Corrigido
- Payment Gateway and Time of Day rules were ignored when WooCommerce served cached shipping rates.
- Payment conditions ignored Cart Total, City, Postcode, State and Customer rules.
- A payment condition without gateways stopped all later payment conditions.
- Package Weight rule fatal error, Customer rule fatal error for guests, reversed Total Cart Quantity operators.
- Time of Day rule uses the site timezone and supports ranges past midnight.
Removido
- CMB2 library.