跳到内容

Koci Currency

v1.1.0

kocimedia · 2026年11月9日 上架

Sell in more than one currency with fixed prices you set per product – no exchange rates, no surprises.

正在使用
10 以下
评分
暂无
累计下载
173
最近更新
2026年11月10日
需要 WordPress 6.5+已测试到 7.1.5PHP 7.4+

贡献者

截图

The currency settings.
The currency settings.
Fixed prices on the product editor.
Fixed prices on the product editor.
The currency switcher and a price in the additional currency on the shop page.
The currency switcher and a price in the additional currency on the shop page.

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

  1. The visitor’s explicit choice (the koci_cur cookie, set by the switcher).
  2. Otherwise the default currency of the page language (when a multilingual plugin is active).
  3. 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_<CODE> and _kcur_sale_price_<CODE> (e.g. _kcur_regular_price_PLN).

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums