[WordPress] 外掛分享: Koci Currency

首頁 › 外掛目錄 › Koci Currency
WordPress 外掛 Koci Currency 的封面圖片
全新外掛
安裝啟用
—
尚無評分
14 天前
最後更新
—
問題解決
WordPress 6.5+ PHP 7.4+ v1.1.0 上架:2026-11-08

外掛標籤

開發者團隊

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

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

原文外掛簡介

Koci Currency lets a WooCommerce shop sell in additional currencies (for example EUR and PLN next to the base currency) with fixed prices entered per product. There is no exchange rate feed: customers see exactly the price you set, and products without a price in a currency simply cannot be bought in it.
Features

Fixed prices per product and variation – regular and sale price fields for every additional currency, on the General tab of the product editor and in each variation.
Price format per currency – symbol position, decimals, decimal and thousand separators.
Fixed shipping fees per currency – a fee field per currency in every Flat rate shipping method (other flat-rate based methods can opt in), plus a shared fallback fee per currency.
Currency switcher – [koci_currency_switcher] shortcode or kcur_switcher() template function, as a list or a dropdown, showing the code, the symbol or both.
Default currency per language – with Polylang (or a compatible multilingual plugin) each language can start in its own currency; visitors can still switch.
Cart follows the currency – switching recalculates the cart with the prices of the new currency.
Cache friendly – the currency cookie is only set when the visitor explicitly switches, so pages in the default currency remain cacheable.
Admin overview – a product list column shows which products miss a price in an additional currency.
Translation-ready – all texts can be translated on translate.wordpress.org (Hungarian and German translations are on their way).

How the currency is chosen

The visitor’s explicit choice (the koci_cur cookie, set by the switcher).
Otherwise the default currency of the page language (when a multilingual plugin is active).
Otherwise the WooCommerce base currency.

In the admin, the base currency is always used.
Page cache
Pages are rendered in the currency of the visitor. If you use a page cache, configure it to bypass the cache when the koci_cur cookie is present (Koci Cache does this automatically). Visitors without the cookie see the default currency and get cached pages.
Privacy
The plugin sets one functional cookie, koci_cur, only when a visitor uses the currency switcher. It stores the chosen currency code for one year and is not sent anywhere. The plugin does not connect to any external service.
For developers

koci_currency_current – filter the current currency code.
koci_currency_language_default – filter the default currency of a language (currency, language code).
kcur_shipping_method_ids – add flat-rate based shipping method ids that get per-currency fee fields.
koci_currency_switcher_css – return false to skip the default switcher style (assets/switcher.css).
kcur_current(), kcur_switcher( $args ), kcur_product_price_html( $product_id, $currency ) – template functions.
Product meta keys: _kcur_regular_price_ and _kcur_sale_price_ (e.g. _kcur_regular_price_PLN).

延伸相關外掛

文章
Filter
Mastodon