[WordPress] 外掛分享: F4 Salutation Fields for WooCommerce

首頁外掛目錄 › F4 Salutation Fields for WooCommerce
WordPress 外掛 F4 Salutation Fields for WooCommerce 的封面圖片
200+
安裝啟用
★★★★★
5/5 分(3 則評價)
92 天前
最後更新
問題解決
WordPress 5.0+ PHP 7.0+ v1.0.20 上架:2018-12-04

內容簡介

F4 Salutation Fields for WooCommerce 增加一個下拉式選單(更多欄位類型即將推出),以選擇帳單或送貨地址的稱呼。
該外掛程式自動在每個格式化地址輸出的名字前添加稱呼。這是該外掛進行的其他一些操作:

在帳單和/或送貨地址結帳表單中添加稱呼欄位
在編輯帳單和/或送貨地址儀錶板和表單中添加稱呼欄位
在編輯訂單後台頁面上添加稱呼欄位
顯示隱私數據匯出中的稱呼欄位
如果在隱私清除時請求,則擦除稱呼數據
在訂單(感謝您頁面、電子郵件等)中顯示稱呼欄位

目前稱呼欄位僅顯示Mr.和Mrs.。如果您想要添加更多或翻譯這些值,請參見下面的代碼片段。

使用方法

此外掛可即插即用。預設情況下,帳單和運輸的稱呼欄位均已啟用並標記為必填。
您可以在 WooCommerce 設置中的帳戶和隱私屏幕上更改兩個欄位的設置。您可以隱藏或將兩個欄位設置為可選/必填。

如果您想添加更多的稱呼,更改標籤或添加自己的翻譯,可以使用以下鉤子

add_filter('F4/WCSF/get_salutation_options', function($options, $settings) {
// 更改標籤
$options['mr'] = '先生';

// 新增標籤
$options['dr'] = '博士';
$options['prof'] = '教授';

return $options;
}, 10, 2);

功能總覽

添加稱呼欄位
無需進行配置即可運行
可為兩個領域進行配置
易於使用
輕量且經過優化
100%免費!

計劃中的功能

完全集成到API和REST中
比選擇更多欄位類型
易於配置和添加自己的選項

外掛標籤

開發者團隊

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

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

原文外掛簡介

F4 Salutation Fields for WooCommerce adds a dropdown menu (more field types coming soon) to select the address salutation to the billing and/or shipping address.
The plugin prepends the salutation automatically before the name in every formatted address output. Here are a few more things the plugin does:

Adds salutation fields to the billing and/or shipping address checkout form
Adds salutation fields to the edit billing and/or shipping address dashboard and form
Adds salutation fields to the edit order backend page
Shows salutation fields in privacy data export
Erases salutation data if privacy erase is requested
Shows salutation field in orders (thank you page, email etc.)

Currently only Mr. and Mrs. are shown in the salutation field. If you want to add more or translate this values, see the code snippet below.
Usage
This plugin works out-of-the-box. By default, both salutation fields for billing and shipping are enabled and marked as required.
You can change the settings for both fields on the Accounts & Privacy screen in your WooCommerce settings. Both fields you can hide or set to optional/required.
If you want to add more salutations, change the labels or add your own translations, you can use this hook:
add_filter('F4/WCSF/get_salutation_options', function($options, $settings) {
// Change label
$options['mr'] = 'Mister';

// Add new labels
$options['dr'] = 'Dr.';
$options['prof'] = 'Prof.';

return $options;
}, 10, 2);

Features overview

Adds salutation fields
Works without configuration
Can be configurated for both fields
Easy to use
Lightweight and optimized
100% free!

Planned features

Full integration into API and REST
More field types than select
Easy to configure and add own options

延伸相關外掛

文章
Filter
Mastodon