[WordPress] 外掛分享: Mad Cow Checkout Notices for WooCommerce

首頁 › 外掛目錄 › Mad Cow Checkout Notices for WooCommerce
WordPress 外掛 Mad Cow Checkout Notices for WooCommerce 的封面圖片
全新外掛
安裝啟用
—
尚無評分
2 天前
最後更新
—
問題解決
WordPress 6.0+ PHP 8.0+ v1.1.0 上架:2026-10-25

外掛標籤

開發者團隊

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

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

原文外掛簡介

Add as many checkout notices as you need, each one an ordinary entry under WooCommerce → MCW Checkout Notices. A notice can be a simple message — an order cutoff, a closure, a delivery delay — or it can ask the customer a question and store their answer on the order.
Each notice is independent. It has its own message, its own schedule, its own targeting rules, and its own question. Nothing is hardcoded and nothing requires a developer to change.
Ordering
Notices appear at checkout in the order they are listed. On the notices list, drag the handle in the Order column to rearrange them, or focus the handle and use the up and down arrow keys. The order saves as soon as you drop a row.
Targeting
A notice can be limited to carts containing particular product categories, particular product IDs, or both. Leave both empty and it shows on every non-empty checkout page. Give it a start date, an end date, or neither.
Appearance
Each notice carries its own styling, so two notices on the same checkout can look completely different. Heading font, size, weight and colour; question label font, size, weight and colour; background colour (or none); border width, style and colour; a thicker left accent bar; corner radius; and padding and margin on all four sides. Every box setting in the Notice Appearance panel starts blank, so a new notice picks up your theme’s styling; fill in only what you want to change.
The message itself is written in the full WordPress editor, so colours, alignment, lists, links and images are set as you write rather than through separate fields.
The optional question
Turn the question on and the notice renders a dropdown or a set of radio buttons underneath its message, built with WooCommerce’s own form-field helper so it inherits your checkout styling.
Each option has two parts:

Display Label — what the customer sees. Leave it blank on a dated option and the date is shown, formatted, for example “Tuesday, December 16”. A blank label follows the date if you change it; a label you type is shown as written.
Auto-Hide On/After — an optional date. That option disappears from checkout on and after that date. Leave it blank for options that should always be available. When every option has a date and all of them have passed, the whole notice hides itself.

Drag the handle beside a row to change the order options appear in at checkout.
What gets stored on the order is worked out for you: a dated option saves its date, anything else saves its label. The order screen and emails show the label the customer chose.
You can require an answer. With that on, nothing is pre-selected, the label carries an asterisk, and an order cannot be placed until the customer picks an option — validated server-side through WooCommerce’s own checkout validation, so the error appears where shoppers already expect checkout errors.
You choose the label used when the answer is shown on the order edit screen and in order emails.
Answers are validated against the options the notice actually offered before anything is written to the order.
Classic and block checkout
Notices appear on both: the classic [woocommerce_checkout] shortcode and the newer Checkout block. The question is classic-only, for the reason given in the FAQ.
Built for WooCommerce

Declares High-Performance Order Storage (HPOS) compatibility. Order meta is read and written through the order CRUD API.
The message field is the full WordPress editor, with both toolbar rows open and the media library available.
Notices are a private post type visible only to users with manage_woocommerce.
No external requests, no tracking, no bundled fonts or icon libraries. The one icon is an inline SVG.

Developer notes
Rows shown on the admin order screen and in order emails pass through a filter:
apply_filters( 'mcwccn_order_meta_rows', $rows, $order )

$rows is an array of `array( 'label' => string, 'value' => string )`. Return the array modified, reordered, or emptied.

延伸相關外掛

文章
Filter
Mastodon