[WordPress] 外掛分享: Smartdisain Conditional Checkout Rules for WooCommerce

首頁 › 外掛目錄 › Smartdisain Conditional Checkout Rules for WooCommerce
WordPress 外掛 Smartdisain Conditional Checkout Rules for WooCommerce 的封面圖片
全新外掛
安裝啟用
—
尚無評分
剛更新
最後更新
—
問題解決
WordPress 6.3+ PHP 7.4+ v1.0.0 上架:2026-10-26

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Smartdisain Conditional Checkout Rules for WooCommerce」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Smartdisain Conditional Checkout Rules for WooCommerce lets you control the WooCommerce checkout by shipping method and shipping class, without code.
1. Checkout fields by shipping method
For each shipping method (e.g. parcel locker, courier, local pickup) you can choose:

fields to hide (e.g. street, city and postcode for a parcel locker);
fields to make required (e.g. phone number).

Fields are hidden or made required instantly when the customer changes the shipping method at checkout. A hidden field is not validated and is never required (hiding takes precedence over requiring).
The settings screen shows one card per shipping method, with a simple Default / Hide / Required choice for every field, a search box, a “configured only” filter and the option to copy rules from another shipping method.
Settings: WooCommerce → Settings → Shipping → Checkout fields.
2. Shipping methods by shipping class
A second screen shows one card per shipping class. For every shipping method choose Default (offered as usual) or Disable: a disabled method is not offered when the cart contains a product of that class. Use it, for example, to hide parcel lockers for bulky goods or to offer a courier only for fragile items.

Works in the classic checkout, the block-based checkout and the cart.
If the cart contains products of several shipping classes, a method disabled for any of them is not offered.
Same card layout, search and “copy rules from” as the checkout fields screen.

Settings: WooCommerce → Settings → Shipping → Shipping class rules.
Features

Per-shipping-method rules for billing, shipping and order fields.
Per-shipping-class rules for shipping methods.
Block-based checkout (Store API) and classic checkout support.
High-Performance Order Storage (HPOS) compatible.
No coding needed, no external services, no tracking.
Translation ready: all strings are in English and use the plugin text domain, so translations can be contributed on translate.wordpress.org.

Compatibility

Requires WooCommerce 9.9 or newer; tested up to WooCommerce 11.2.
Works with the classic checkout (the [woocommerce_checkout] shortcode) and with the block-based Checkout (Store API).
Compatible with High-Performance Order Storage (HPOS).

Block checkout notes
The block checkout has no per-shipping-method API for its core address fields, so the plugin uses WooCommerce’s documented woocommerce_get_country_locale filter (also used for Store API validation) and reloads the checkout when a shipping choice changes the rules. Address field rules apply to the billing and shipping forms together. Email and order notes cannot be changed in the block checkout.
Privacy and licensing
The plugin is completely free, has no locked or paid features, makes no external requests, loads no third-party code and collects no data.
For developers:

ccffw_rules filter – modify the rules ($rules, $type = hide | require).
ccffw_class_rules filter – modify the shipping class rules (class slug => disabled shipping method keys).
ccffw_blocks_support and ccffw_blocks_reload filters – switch block checkout support or the automatic reload off.
A key without an instance ID (e.g. local_pickup) applies to all instances of that shipping method.

延伸相關外掛

文章
Filter
Mastodon